Hi all,
I need to include a WYSIWYG editor in a website I'm working on, and FCKeditor looks like it's going to be the best bet. Unfortunately I can't figure out if it's possible to restrict the formatting available to only a handful of allowed styles.
The editor will be used to enter titles of scientific publications, so we'll need basics like italics, superscript and subscript, but pretty much everything else should be disabled. This especially means if someone copies the title from an MSWord document, none of the font or other styles should come across (except ideally the sub/superscript, but it's no biggie if that's lost during the paste.)
I know I can hide all the extra toolbar buttons, but the copy and paste from MSWord always seems to be the problem area. Is FCKeditor capable of this sort of restriction?
I need to include a WYSIWYG editor in a website I'm working on, and FCKeditor looks like it's going to be the best bet. Unfortunately I can't figure out if it's possible to restrict the formatting available to only a handful of allowed styles.
The editor will be used to enter titles of scientific publications, so we'll need basics like italics, superscript and subscript, but pretty much everything else should be disabled. This especially means if someone copies the title from an MSWord document, none of the font or other styles should come across (except ideally the sub/superscript, but it's no biggie if that's lost during the paste.)
I know I can hide all the extra toolbar buttons, but the copy and paste from MSWord always seems to be the problem area. Is FCKeditor capable of this sort of restriction?
Re: Can you limit the available formatting?
Re: Can you limit the available formatting?
Thanks for the suggestion. I'm already using CustomStyles on another site, but unfortunately that only lets you predefine some preferred styles, it doesn't actually stop you from pasting in some text with whatever code you want in it. (e.g. if you copy and paste some red text from MSWord, there seems to be no way to prevent the colour red from ending up in the FCKeditor control.)
Any other ideas?
Re: Can you limit the available formatting?
We don't have support for totally shield the editor from certain styles right now, especially with clipboard. Please open a dedicate ticket at our dev site if you're requesting this feature. And currently you may perform specific filtering on the output data as a work around, I hope it helps.