Hi,
there is a way to add a custom piece of HTML between BODY tag and editor text, and between the end of editor text and </BODY> tag?
The problem is this: Into the editor I have to use the same css file of final website and I can't modify the css.
The final site html structure is:
The css file don't work into fckeditor because <DIV class="article"> and </DIV> are missing.
With BodyId and BodyClass I can't resolve the problem.
Thanks
there is a way to add a custom piece of HTML between BODY tag and editor text, and between the end of editor text and </BODY> tag?
The problem is this: Into the editor I have to use the same css file of final website and I can't modify the css.
The final site html structure is:
<BODY> [....] <DIV class="article">Article text</DIV> </BODY>
The css file don't work into fckeditor because <DIV class="article"> and </DIV> are missing.
With BodyId and BodyClass I can't resolve the problem.
Thanks
Re: Header and footer HTML
Also, have a look in fckeditor\editor\css, there are styles for the editor which you can overwrite. For the preview, do the fck_editorarea.css file.
Hope this helps a bit...but let us know a bit more (ie. source example) of what you want.
Re: Header and footer HTML
If the webpage template DOM is:
And I have a CSS like:
Into the webpage, article text will be blue and size 3em;
into fckeditor, article text will be red and size 1em, because <div class="left_column"> and <div class="article"> will missing. In fact fckeditor iframe add only <body> tag (or full html)
What I want is a way to add some invisible and protected tags before and after user text.
Thanks
Re: Header and footer HTML
If they should be able to edit the entire page, set the initial value of the editor to:
Then hide the source button if it is for clients so that they cannot remove the columns...almost like the templates...and then add your css to the \fckeditor\editor\css\fck_editorarea.css file.
If this does not help, maybe try and get and simple example file up so I can get a better idea of what you want.