Does anyone know how to select specific html tags for output formatting? Or maybe even set a list of the only accepted tags to be used?
For example say I don't want to allow bold text, I would need to have the output formatting change <b> & <strong> tags into blanks. I can't find any examples for this. (this is just for example sake, I'm not some anti-bold sadist)
I understand that it would be somewhere along the lines of using writer.setRules. But I couldn't really find a clear explanation of what to do with setRules other than handling broken tags and paragraph formatting.
I am also interested if there was a way to only allow certain tags to be used. So, say your toolbar lists only Italics, underline, and bold, the output formatting could then reflect a similar list allowing only these options. (This might be great for a blog's user-interface). The problem is that users would still have the ability to paste from HTML and bypass your toolbar's limits.
-thanks in advance for any help.
P.S. The documentation area is very small. I would love to help out with it (obviously once I figure this editor out a little better)
For example say I don't want to allow bold text, I would need to have the output formatting change <b> & <strong> tags into blanks. I can't find any examples for this. (this is just for example sake, I'm not some anti-bold sadist)
I understand that it would be somewhere along the lines of using writer.setRules. But I couldn't really find a clear explanation of what to do with setRules other than handling broken tags and paragraph formatting.
I am also interested if there was a way to only allow certain tags to be used. So, say your toolbar lists only Italics, underline, and bold, the output formatting could then reflect a similar list allowing only these options. (This might be great for a blog's user-interface). The problem is that users would still have the ability to paste from HTML and bypass your toolbar's limits.
-thanks in advance for any help.
P.S. The documentation area is very small. I would love to help out with it (obviously once I figure this editor out a little better)
Re: Advanced Output Formatting Help
Re: Advanced Output Formatting Help
Re: Advanced Output Formatting Help
Hey guys, I think I found a decent solution.
CKEDITOR.config.forcePasteAsPlainText
Whether to force all pasting operations to insert on plain text into the editor, loosing any formatting information possibly available in the source text.
Defined in: plugins/pastetext/plugin.js.