PDA

View Full Version : Custom style does not show in editor


olle189996
06-23-2009, 01:30 AM
Hi
I cant get the custom styles to show in the editor. All I get is default plain text.
I have read in other post about same problem. But the answer is pointing to fck supportsite.

I think it would be nice to know how to edit iRite to show custom styles in the editor also.
The default one shows up just nice if I don't include my own stylesheet.

Example can be seen at.
http://www.soulkompetens.se/irite.php

Regards
olle

olle189996
06-23-2009, 06:49 AM
Hi
I got it to function now. But it is a very akward way of doing it.

First I have to remove the custom style in the properties window in Dreamweaver.
Then in the DW page I have to change.
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("text", "../WA_iRite/", "700px", "210px", "Default", ""../custom/rapporter_Update.js"", "".$row_WADAutbildning['text'] ."");
?>
To:
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("text", "../WA_iRite/", "700px", "210px", "Default", "../fckconfig.js", "".$row_WADAutbildning['text'] ."");
?>

path to js file is the only changed thing ""../fckconfig.js"

Then nex step is to change the default xml styles "fckstyles.xml" to include my custom styles that I want.
Somthing like:
<Style name="brodtext" element="span" >
<Attribute name="class" value="brodtext" />
</Style>
For each style I want.

Then in /editor/css/ fck_editorarea.css
I have to include the styles I want.

Now it should show up in the editor like i should from the first place.

Maybe its a simpler way. I really hope it is!

This should be fixed soon if it is a bug in iRite.

Thanks
Olle