mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix tables being pasted as image in CKEditor
https://xetown.com/questions/1823902
This commit is contained in:
parent
f3323ebec1
commit
fda3bf939b
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ CKEDITOR.plugins.add('rx_paste', {
|
|||
}
|
||||
|
||||
// Check if the pasted data contains any files.
|
||||
if (filesCount) {
|
||||
if (filesCount && dataTransfer.isFileTransfer()) {
|
||||
event.stop();
|
||||
for (let i = 0; i < filesCount; i++) {
|
||||
uploadFile(dataTransfer.getFile(i));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue