Page 1 of 1
editor less options
Posted: Wed Dec 07, 2005 12:48 pm
by Pj
Hi,
I would want to have less options in the FCKeditorX, so that my users won't mess up the design, can this be done?
I would also like to extend the list in the stylebox so that there is not only heading 1 etc but also my own special classes.
Somehow I don't get the correct backgroundcolor. I left default in the options of fckeditorx, but it doesn't seem to take the style sheet, which is associated to the template.
Now I use standard grey, but it would be nice to have the color of the actualpage.
Thanks
Pj
Re: editor less options
Posted: Wed Dec 07, 2005 1:08 pm
by westis
Hi Pj,
What version of CMSMS are you using? In 0.11.1 the default body tag css for FCKeditor is
text-align: left; background: #fff; which gives the textarea a white background and left-aligns the text. You can set this in the FCKeditor admin interface in Extensions->FCKeditor in the admin panel.
About your other questions I would suggest you post them as feature requests in the forge, and MegaBob can look at how they can somehow be implemented in the FCKeditor admin interface. As for now though, you can make these changes in the files.
Select what toolbar buttons to use in the file
fckconfig.js (/modules/FCKeditorX/FCKeditor/). Look for
FCKConfig.ToolbarSets["Default"] . There comment out the buttons you don't want (better to comment out than delete, as you may have to use them later).
About extending the stylebox I am not sure what file that is in. MegaBob or someone else can most likely answer that question.
Hope that helps.

Re: editor less options
Posted: Wed Dec 07, 2005 1:52 pm
by Pj
Hi westis,
Yes, I am using 0.11.1.
I was hoping to get the backgroundcolor from the assigned stylesheet so it looks in the cms like it does on the site.
Thanks for the other tips, I'll check them out.
Pj
Re: editor less options
Posted: Wed Dec 07, 2005 2:07 pm
by westis
Pj wrote:
Hi westis,
Yes, I am using 0.11.1.
I was hoping to get the backgroundcolor from the assigned stylesheet so it looks in the cms like it does on the site.
Before 0.11.1 FCKeditor took the css from the body element in the stylesheet. In the default templates that come with CMSMS that meant the background was the same grey as is outside the centered page and that the text was center-aligned.
Instead these elements should be taken from the DIV tag for the content area of the page, but there is no way for FCKeditor to know what DIV to take that CSS info from. That is why MegaBob has added the body css tag for the FCKeditor admin interface and made text-align: left; background: #fff the default. But you can override this with any css you want, so that it becomes the same as you are using for the content area of your page.
On a note to MegaBob: it would be good if the text in the body tag css field would be text-align: left; background: #fff; so that people more easily know what the default setting is and can see how that field is meant to be used.

Re: editor less options
Posted: Wed Dec 07, 2005 2:19 pm
by Pj
ok thanks,
that's why i had seen it working before

But as I understand in 0.11.1 it doesn't anymore.
I use different templates with different classes assigned to the body like:
But a single backgroundcolor in the cms for all templates isn't too hard to live with.
So thanks for the help.
Re: editor less options
Posted: Wed Dec 07, 2005 2:36 pm
by westis
Pj wrote:
But as I understand in 0.11.1 it doesn't anymore.
I use different templates with different classes assigned to the body like:
But a single backgroundcolor in the cms for all templates isn't too hard to live with.
Yes, that's why I've now suggested to MegaBob (posted a feature request in the forge for the FCKeditor project) that the field for the body tag css is filled with text-align: center; background: #fff; by default, but if this is removed then the body tag of the stylesheet for the page should be used like before.
That way you could still have different background colors for your pages (using the background-color in the body element), but still the default pages that come with CMSMS 0.11 would have white background in the textarea. The best of both worlds.

Re: editor less options
Posted: Wed Jan 11, 2006 3:45 pm
by cyberman
Hi Daniel,
westis wrote:
But you can override this with any css you want, so that it becomes the same as you are using for the content area of your page.
Perhaps the area for {content} input should get a special id/class so text centering and other options can be easily destroyed

. I tried with TinyMCE-module and the content was also centered.
So I found styles.css for admin was a little bit confusing I can't make a quick look. I made a little bit ordered version. Also changed such things - background: #ececec; to background-color: #ececec;. Perhaps you would include it to version 0.12

.
[attachment deleted by admin]