Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKEditor - how to disable pastefromword

Tags:

ckeditor

This one is killing me. I have not been able to find the solution for one hour. The question is - how do I completely disable pastefromword in CKEditor? I want the pasted text to be plain - not edited at all.

Thanks in advance.

like image 244
Timur Gafforov Avatar asked Dec 12 '22 07:12

Timur Gafforov


1 Answers

In ckeditor/config.js, use:

config.forcePasteAsPlainText = true;

For more details: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html

like image 94
J.B. Avatar answered Jan 26 '23 00:01

J.B.