]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugin-drawio.js
Started upgrade to TinyMCE6, Untested
[bookstack] / resources / js / wysiwyg / plugin-drawio.js
index 6b0167a7045e56fc124a54f450b47a7c68d120ee..9265d43950b01e763df1a98c239dc6e8b527bf20 100644 (file)
@@ -131,7 +131,7 @@ export function getPlugin(providedOptions) {
         });
 
         editor.on('SetContent', function () {
-            const drawings = editor.$('body > div[drawio-diagram]');
+            const drawings = editor.dom.select('body > div[drawio-diagram]');
             if (!drawings.length) return;
 
             editor.undoManager.transact(function () {