Hi,
I'would like to use the "style" pulldown box with images. So I've defined in fckstyles.xml new styles with element="img". The only attribute with these new styles are classes, which I defined in fck_editorarea.css.
However, if I select an image in the editor and I choose a style from the pulldown box, the page does not refresh. If I look at the source using the "source" option of the editor, I can see that the style (<img class="...) has been inserted correctly in the text. Pushing the "source" button again, forces the editor to refresh the page and then the image is displayed correctly.
My question is, why doesn't the editor refresh after applying a style (with attribute "class") on an image? How do I get it to refresh immmediately?
Thanks for your remarks.
Cheers,
Kenz
I'would like to use the "style" pulldown box with images. So I've defined in fckstyles.xml new styles with element="img". The only attribute with these new styles are classes, which I defined in fck_editorarea.css.
However, if I select an image in the editor and I choose a style from the pulldown box, the page does not refresh. If I look at the source using the "source" option of the editor, I can see that the style (<img class="...) has been inserted correctly in the text. Pushing the "source" button again, forces the editor to refresh the page and then the image is displayed correctly.
My question is, why doesn't the editor refresh after applying a style (with attribute "class") on an image? How do I get it to refresh immmediately?
Thanks for your remarks.
Cheers,
Kenz

RE: refresh view after applying image style
https://sourceforge.net/tracker/index.p ... tid=543655
RE: refresh view after applying image style
I've inserted the patch and it works! Excellent.
I changed the compacted file: "fckeditorcode_ie_2.js", so I dont have to do the compacting again. Although it is working now, do you think it is also necessary to change the "fckeditorcode_gecko_2.js" file?
Thanks again for your help!
Kenz
RE: refresh view after applying image style
You don't need to touch the gecko file as it works directly with "class" as parameter for the setAttribute method.