git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6147c8
)
edit: force paste as plain text
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 20 Jul 2014 15:12:08 +0000
(17:12 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 23 Jul 2014 07:50:52 +0000
(09:50 +0200)
Rich paste contains too much unwanted styling.
edit.js
patch
|
blob
|
history
diff --git
a/edit.js
b/edit.js
index 2e44c28d3ac9c2f1a84359860d9306c6181a1c3b..573f3cd0f97a1570b19d67216bcd1e622852008b 100644
(file)
--- a/
edit.js
+++ b/
edit.js
@@
-46,6
+46,7
@@
CKEDITOR.on('instanceCreated', function (event) {
config.allowedContent = true;
config.entities = false; // keep unicode
config.filebrowserImageUploadUrl = '/edit.php?type=img';
+ config.forcePasteAsPlainText = true;
config.toolbar = [
['Inlinesave', '-', 'ShowBlocks', 'Sourcedialog', '-', 'Undo', 'Redo'],
['Format'],