Before I was using WYSIWYG editor on my site and I remember some where I changed a setting to make all pasted content text only. Today I installed SCEditor, but I canĀ“t find how to do the same. The problem is that some users copy and paste code from other sites and it comes with all html and looks bad. Note: I'm using SCEditor not CKEditor
Thanks for your help.
then another answer for this editor. The previous one is still available for CkEditor
look for enablePasteFiltering in www.sceditor.com/documentation/options/
enablePasteFiltering bool Defaults to false With the BBCode plugin this will cause any HTML without a valid BBCode to be stripped.
you must add a line to the ckeditor configuration file
open qa-wysiwyg-editor.php and just before :
// Set language to Q2A site language, falling back to English if not available. " defaultLanguage: 'en',",
insert this line
" forcePasteAsPlainText: true,",
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.