Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
6.x-1.4-rc1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2009 at 16:54 UTC
Updated:
1 Nov 2009 at 20:06 UTC
Comments
Comment #1
dgarciad commentedSorry. Filter HTML removed the code.
Let's try again
I have noticed that the problem happens when I resize the image using the mouse in the editor. When I change the size in the image properties window, it works fine.
If I resize the image using the mouse, the HTML code changes from:
to this:
and after I save it, it changes to:
Any idea why this "style" tag is removed?
Does it have to do with "Filtered HTML"? How could it be solved?
Regards
Comment #2
Jorrit commentedYes, it could be a filter. In what field are you editing?
Comment #3
dgarciad commentedHi
In what field are you editing?
I am sorry but I am not quite sure if I understand your question. I am editing the body content of the post using the fckeditor.
The
<img>tag is one of the HTML tags allowed.Regards
Comment #4
Jorrit commentedThe
<img>tag may be allowed, but the style attribute might be filtered out. Try to change the filter settings and the FCKeditor security filter settings.Comment #5
jasonabc commented@dgarciad - I was getting the exact same issue but solved it by right-clicking on the newly resized image in the FCKEditor window, selecting "Image Properties" and then clicking the little "lock ratio" padlock icon. That seemed to lock the image down to the new size dimensions so when you save out the size is preserved. Not sure how well documented this feature is as I haven't seen anything and was literally blind luck that I tried clicking the padlock icon and found that it worked.
Comment #6
dgarciad commentedThanks for your answer, jasonabc
I knew that modifying the image size using the properties window works fine. Nevertheless people is used to adapt the image size directly in the editor so that caused me a lot of problems.
Nevertheless, I have solved the issue using a different approach.
I have set "Full HTML" as default format. Initially I did not like this option because people usually copy and paste information in the editor coming from differente sources and very often the presentation (font type and size) varied between posts. However, I have force the option "Paste as text" in the editor, which filters all the HTML code. This way, I avoid troubles.
Thanks
Comment #7
Jorrit commented