Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.8k views
in Q2A Core by
When a user copy and past something on the web into the text editor, it copy the formats as well, i.e. different font and font-size. How can I ensure the font output are the same for all entries without having the user changing that in the editor by themselves?

2 Answers

+2 votes
by

if I understand the question right.. there may be an option in the editor?.. 

Link on Ckeditor docs site

 

ForcePasteAsPlainText

Setting it to true forces the editor to discard all formatting when pasting text. It will also disable the Paste from Word operation. 


Example:

FCKConfig.ForcePasteAsPlainText = true ;

By default the option is set to false.

+1 vote
by

Using the answer from Case42 (Thanks Case!), paste the following in the config.js file in the wysiwyg folder:

CKEDITOR.editorConfig = function( config )
{
    config.forcePasteAsPlainText = 'true';
};

Works here with Q2A 1.4.1.

...