[xwiki-users] Cannot Configure WYSIWYG Editor in standalone installation of XE3.1
Hi, folks. I’m experimenting with a standalone installation of XE3.1 and trying to increase the control that users would have over the appearance of the pages they add. I’d love to do this primarily with the WYSIWYG editor, since that would be the most user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and then make the associated changes in the tool bar, but nothing I do seems to have any effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then return, my changes are still there… they just don’t appear in the editor itself. I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not locate any of the lines the WYSIWYG Editor Configuration page said I should see. Can someone help me out? Thanks.
Hi, On 07/26/2011 07:49 PM, Campbell, John wrote:
Hi, folks.
I’m experimenting with a standalone installation of XE3.1 and trying to increase the control that users would have over the appearance of the pages they add.
I’d love to do this primarily with the WYSIWYG editor, since that would be the most user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and then make the associated changes in the tool bar, but nothing I do seems to have any effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then return, my changes are still there… they just don’t appear in the editor itself.
I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not locate any of the lines the WYSIWYG Editor Configuration page said I should see.
Can someone help me out?
For enabling the font name and the font size you have to add "font" to the list of plugins and add "fontname" and "fontsize" to the tool bar. For enabling custom styles you have to add "style" to the list of plugins, "stylename" to the tool bar and then configure the styles at the bottom of the configuration section. XWiki Enterprise doesn't provide any default styles so you have to add some. The style name is a CSS class name from your skin and the style label is the text that appears in the styles list box on the WYSIWYG editor tool bar. Don't forget to save after updating the configuration. Hope this helps, Marius
Thanks.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi,
On 07/26/2011 07:49 PM, Campbell, John wrote: Hi, folks. I’m experimenting with a standalone installation of XE3.1 and trying to increase the control that users would have over the appearance of the pages they add. I’d love to do this primarily with the WYSIWYG editor, since that would be the most user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and then make the associated changes in the tool bar, but nothing I do seems to have any effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then return, my changes are still there… they just don’t appear in the editor itself. I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not locate any of the lines the WYSIWYG Editor Configuration page said I should see. Can someone help me out?
For enabling the font name and the font size you have to add "font" to the list of plugins and add "fontname" and "fontsize" to the tool bar. For enabling custom styles you have to add "style" to the list of plugins, "stylename" to the tool bar and then configure the styles at the bottom of the configuration section. XWiki Enterprise doesn't provide any default styles so you have to add some. The style name is a CSS class name from your skin and the style label is the text that appears in the styles list box on the WYSIWYG editor tool bar.
Don't forget to save after updating the configuration.
Hope this helps, Marius
Thanks, Marius. I was able to get the changes to appear in the editor... that's fantastic. You mentioned that I would have to add some styles - what is the most efficient process to do that? Can it be done from the global administration interface? I really appreciate the help. John
On 07/26/2011 08:32 PM, Campbell, John wrote:
Hi,
On 07/26/2011 07:49 PM, Campbell, John wrote: Hi, folks. I’m experimenting with a standalone installation of XE3.1 and trying to increase the control that users would have over the appearance of the pages they add. I’d love to do this primarily with the WYSIWYG editor, since that would be the most user-friendly avenue in my opinion. So I tried to add the “font” and “style” plugins and then make the associated changes in the tool bar, but nothing I do seems to have any effect on the WYSIWYG editor. When I leave the WYSIWYG Editor administration page and then return, my changes are still there… they just don’t appear in the editor itself. I’ve reviewed the WYSIWYG Editor Configuration page in the documentation, but nothing there has helped me. I’ve even taken a look in the templates/macros.vm file, but could not locate any of the lines the WYSIWYG Editor Configuration page said I should see. Can someone help me out?
For enabling the font name and the font size you have to add "font" to the list of plugins and add "fontname" and "fontsize" to the tool bar. For enabling custom styles you have to add "style" to the list of plugins, "stylename" to the tool bar and then configure the styles at the bottom of the configuration section. XWiki Enterprise doesn't provide any default styles so you have to add some. The style name is a CSS class name from your skin and the style label is the text that appears in the styles list box on the WYSIWYG editor tool bar.
Don't forget to save after updating the configuration.
Hope this helps, Marius
Thanks, Marius. I was able to get the changes to appear in the editor... that's fantastic.
You mentioned that I would have to add some styles - what is the most efficient process to do that? Can it be done from the global administration interface? I really appreciate the help.
In order to add a new style to the "Styles" list box from the WYSIWYG editor tool bar you have to: (1) Define the style in your skin: .important { color: red; font-size: larger; } I think the best option is to create a wiki page with a StyleSheetExtension object that is applied to the entire wiki, I'm not a skin expert though :) . (2) Register the style in the WYSIWYG editor administration section: Style name: important Style label: Important Inline style: whether the style should be applied only to the selected text (true) or to the entire block of text (e.g. paragraph) that contains the selected text (false) Hope this helps, Marius
John _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
In order to add a new style to the "Styles" list box from the WYSIWYG editor tool bar you have to:
(1) Define the style in your skin:
.important { color: red; font-size: larger; }
I think the best option is to create a wiki page with a StyleSheetExtension object that is applied to the entire wiki, I'm not a skin expert though :) .
(2) Register the style in the WYSIWYG editor administration section:
Style name: important Style label: Important Inline style: whether the style should be applied only to the selected text (true) or to the entire block of text (e.g. paragraph) that contains the selected text (false)
Hope this helps, Marius
----------- Hi, Marius. I created a StyleSheetExtension object called "MPStyle" and added a few style definitions in there, then applied it to the entire wiki. I've listed the style definitions below: .title { font-family:"Arial","sans-serif"; font-size:20.0pt; text-align:center; color:rgb(20,54,135); } .h1 { font-family:"Arial","sans-serif"; font-size:17.0pt; color:rgb(20,54,135); } .h2 { font-family:"Arial","sans-serif"; font-size:14.0pt; } .body { font-family:"Arial","sans-serif"; font-size:10.0pt } .cmd ( font-family:"Courier New","serif"; font-size:10.0pt; color:rgb(202,20,6); } .important { color: red; font-size: larger; } I was then able to register the styles in the format you indicated. An example follows: Style name: cmd Style label: CommandLine Inline style: true Now all the styles show up in the WYSIWYG editor, which is wonderful. But they don't seem to do anything. The title, h1, and h2 styles change the color/size of the text, but the alignment change does not seem to apply. And the other styles don't seem to do anything at all. Does the Style name field in the WYSIWYG editor configuration page need to include the name of the StyleSheetExtension object as well? Thanks, John
On 07/27/2011 06:09 PM, Campbell, John wrote:
In order to add a new style to the "Styles" list box from the WYSIWYG editor tool bar you have to:
(1) Define the style in your skin:
.important { color: red; font-size: larger; }
I think the best option is to create a wiki page with a StyleSheetExtension object that is applied to the entire wiki, I'm not a skin expert though :) .
(2) Register the style in the WYSIWYG editor administration section:
Style name: important Style label: Important Inline style: whether the style should be applied only to the selected text (true) or to the entire block of text (e.g. paragraph) that contains the selected text (false)
Hope this helps, Marius
-----------
Hi, Marius.
I created a StyleSheetExtension object called "MPStyle" and added a few style definitions in there, then applied it to the entire wiki. I've listed the style definitions below:
.title { font-family:"Arial","sans-serif"; font-size:20.0pt; text-align:center; color:rgb(20,54,135); }
.h1 { font-family:"Arial","sans-serif"; font-size:17.0pt; color:rgb(20,54,135); }
.h2 { font-family:"Arial","sans-serif"; font-size:14.0pt; }
.body { font-family:"Arial","sans-serif"; font-size:10.0pt }
.cmd ( font-family:"Courier New","serif"; font-size:10.0pt; color:rgb(202,20,6); }
.important { color: red; font-size: larger; }
I was then able to register the styles in the format you indicated. An example follows:
Style name: cmd Style label: CommandLine Inline style: true
Now all the styles show up in the WYSIWYG editor, which is wonderful. But they don't seem to do anything. The title, h1, and h2 styles change the color/size of the text, but the alignment change does not seem to apply. And the other styles don't seem to do anything at all. Does the Style name field in the WYSIWYG editor configuration page need to include the name of the StyleSheetExtension object as well?
If some of the styles are applied (e.g. color, font name, font size) then the feature works fine. The issue is that some styles are used in the wrong context. For instance text-align has effect only on block level elements so you have to uncheck "Inline style" so that the style is applied to the entire block (e.g. paragraph) and not just to the selected text. Hope this helps, Marius
Thanks, John
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
You've been a great help so far, Marius. I do have one last question that I've just come across, though. I have tried to go back and modify those styles in the WYSIWYG Editor Configuration page, and I have attempted to add the "color" plugin as well. Yet when I click "Save" to save my changes, the changes disappear and no updates are made. I am logged in as Administrator and have stopped/restarted the application, yet nothing seems to make a difference. I cannot add, modify, or delete anything in that page now, for some reason. Any ideas? John -----Original Message----- If some of the styles are applied (e.g. color, font name, font size) then the feature works fine. The issue is that some styles are used in the wrong context. For instance text-align has effect only on block level elements so you have to uncheck "Inline style" so that the style is applied to the entire block (e.g. paragraph) and not just to the selected text. Hope this helps, Marius
Thanks, John
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
John Campbell wrote:
You've been a great help so far, Marius. I do have one last question that I've just come across, though.
I have tried to go back and modify those styles in the WYSIWYG Editor Configuration page, and I have attempted to add the "color" plugin as well. Yet when I click "Save" to save my changes, the changes disappear and no updates are made. I am logged in as Administrator and have stopped/restarted the application, yet nothing seems to make a difference. I cannot add, modify, or delete anything in that page now, for some reason. Any ideas?
John
As I've continued to explore this issue, I thought I should update with some more information. It seems that when I attempt to save changes, something DOES happen... the version history increases and it says that I've "Imported from XAR." However, nothing else has changed, and I have no idea why a process that worked for me this morning stopped working in the afternoon. Hopefully, that added information will help identify what the issue is. Thanks, John -- View this message in context: http://xwiki.475771.n2.nabble.com/Cannot-Configure-WYSIWYG-Editor-in-standal... Sent from the XWiki- Users mailing list archive at Nabble.com.
On 07/27/2011 07:26 PM, John Campbell wrote:
John Campbell wrote:
You've been a great help so far, Marius. I do have one last question that I've just come across, though.
I have tried to go back and modify those styles in the WYSIWYG Editor Configuration page, and I have attempted to add the "color" plugin as well. Yet when I click "Save" to save my changes, the changes disappear and no updates are made. I am logged in as Administrator and have stopped/restarted the application, yet nothing seems to make a difference. I cannot add, modify, or delete anything in that page now, for some reason. Any ideas?
John
As I've continued to explore this issue, I thought I should update with some more information.
It seems that when I attempt to save changes, something DOES happen... the version history increases and it says that I've "Imported from XAR." However, nothing else has changed, and I have no idea why a process that worked for me this morning stopped working in the afternoon. Hopefully, that added information will help identify what the issue is.
Can you check the logs of the server? My guess is that there is too much data in one of the fields and the database rejects the new version. -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi Hi, Sergiu. Can you explain to me where I'd need to go to check those logs? I'm a technical writer trying to develop a document management system for my group, but my experience and expertise is more on the document content side than it is on the highly technical side. I'm trying to learn, but I'm still a novice in a lot of areas. Thanks, John -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Sergiu Dumitriu Sent: Wednesday, July 27, 2011 11:06 PM To: XWiki Users Subject: Re: [xwiki-users] Cannot Configure WYSIWYG Editor in standalone installation of XE3.1 On 07/27/2011 07:26 PM, John Campbell wrote:
John Campbell wrote:
You've been a great help so far, Marius. I do have one last question that I've just come across, though.
I have tried to go back and modify those styles in the WYSIWYG Editor Configuration page, and I have attempted to add the "color" plugin as well. Yet when I click "Save" to save my changes, the changes disappear and no updates are made. I am logged in as Administrator and have stopped/restarted the application, yet nothing seems to make a difference. I cannot add, modify, or delete anything in that page now, for some reason. Any ideas?
John
As I've continued to explore this issue, I thought I should update with some more information.
It seems that when I attempt to save changes, something DOES happen... the version history increases and it says that I've "Imported from XAR." However, nothing else has changed, and I have no idea why a process that worked for me this morning stopped working in the afternoon. Hopefully, that added information will help identify what the issue is.
Can you check the logs of the server? My guess is that there is too much data in one of the fields and the database rejects the new version. -- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (4)
-
Campbell, John -
John Campbell -
Marius Dumitru Florea -
Sergiu Dumitriu