Having issue with FCK Editor converting HTML tags into their entities. I need to disable this feature, or modify it to prevent specific HTML tags from being converted. Currently when a user pastes a URL or image tag from another location, the < and > are converted and then the links and images do not work. I have tried changing the settings for ProcessHTMLEntities and ForcePasteAsPlainText without success. Anyone have any suggestions on how to get this to work?
Thanks much!
--ScareCrowe
Thanks much!
--ScareCrowe
RE: Preventing HTML Conversion
You could also write a plugin that gets the clipboard content (it will only work in IE, for Firefox you'll need to open a window) and then insert that content using FCK.InsertHtml
RE: Preventing HTML Conversion
I commented out the lines:
text = text.replace(/</g, "<") ;
text = text.replace(/>/g, ">") ;
in the fckeditor.js file, but even this did not work. I would much rather disable the character encoding feature altogether, and handle any conversions with my own scripts. Is it possible to completely disable the HTML Entities conversion?
Thanks,
--ScareCrowe
RE: Preventing HTML Conversion
You could try to catch the onpaste event of FCKeditor and then do an InsertHtml of the text, but for me the best solution would be to either change the location of the admin so the users can take direct advantage of the built in file manager or modify your file manager so it works cross-server and it's linked to the dialogs of the editor and this way they don't have to copy text in one place and paste it in another.