I want to prevent fck from editing HTML code in the source.
I tried protecting the code using regexes in the config file, the code was protected but it didn't appear in the editing area.
is there any other solution?
I tried protecting the code using regexes in the config file, the code was protected but it didn't appear in the editing area.
is there any other solution?
Re: How to disable fck source editing?
If your problem is that you don't like how the original source code is changed automatically by loading it in a browser, then you should write that protection so it can be added to the editor. I mean: you must find a way to load any html into a browser, allow it to edit the contents, but afterwards return your original formatting.
Good luck with that!
Re: How to disable fck source editing?
I'm trying to generate HTML string using some code. when adding the generated HTML string to the FCK it process the HTML string and add some unneeded tags like <thtml> ,<tbody>,....
so i'm trying to find a way to prevent FCK from processing my HTML.
Re: How to disable fck source editing?
If you are talking about <html> and <body>, then you must not use the Full Page setting unless you really want to get them.
If you are talking about <tbody>, my previous reply applies here: it's the browser the one that generates them. If you don't like it, you're welcome to provide the code to be able to provide html to a browser and get back only the exact source code that was provided and the changes done by the user, excluding anything changed by the browser.