mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
Rename rx_upload CKEditor plugin to rx_paste, and move paste handler from editor.app.js to it
This commit is contained in:
parent
3e5951174e
commit
e15c913b21
3 changed files with 18 additions and 20 deletions
|
|
@ -162,14 +162,6 @@ function getAutoSavedSrl(ret_obj) {
|
|||
}
|
||||
});
|
||||
|
||||
instance.on('paste', function(e) {
|
||||
if (e.data && e.data.dataValue && e.data.dataValue.replace) {
|
||||
e.data.dataValue = e.data.dataValue.replace(/<(iframe|object)\s[^<>]+<\/\1>/g, function(m) {
|
||||
return String(m).unescape() + '<p> </p>';
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$containerEl.data('cke_instance', instance);
|
||||
|
||||
window.editorRelKeys[data.editorSequence] = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue