-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hey! |
Beta Was this translation helpful? Give feedback.
-
Okay so Tailwind is the issue
|
Beta Was this translation helpful? Give feedback.
-
Since I have you here. I'd like to ask one more question. I read this issue but Im failing to follow your solution. Could you please elaborate ? |
Beta Was this translation helpful? Give feedback.
-
Maybe try a plugin like that: (function ($) {
'use strict';
$.extend(true, $.trumbowyg, {
plugins: {
preventImagePaste: {
init: function (trumbowyg) {
trumbowyg.pasteHandlers.push(function (pasteEvent) {
try {
var items = (pasteEvent.originalEvent || pasteEvent).clipboardData.items,
mustPreventDefault = false,
reader;
for (var i = items.length - 1; i >= 0; i -= 1) {
if (items[i].type.match(/^image\//)) {
mustPreventDefault = true;
}
}
if (mustPreventDefault) {
pasteEvent.stopPropagation();
pasteEvent.preventDefault();
}
} catch (c) {
}
});
}
}
}
});
})(jQuery); |
Beta Was this translation helpful? Give feedback.
Maybe try a plugin like that: