]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugin-drawio.js
Made a bunch of tinymce 6 upgrade fixes
[bookstack] / resources / js / wysiwyg / plugin-drawio.js
index 9265d43950b01e763df1a98c239dc6e8b527bf20..7d679d539231ab822db3055ccfcb74cdc590f031 100644 (file)
@@ -135,9 +135,9 @@ export function getPlugin(providedOptions) {
             if (!drawings.length) return;
 
             editor.undoManager.transact(function () {
-                drawings.each((index, elem) => {
-                    elem.setAttribute('contenteditable', 'false');
-                });
+                for (const drawing of drawings) {
+                    drawing.setAttribute('contenteditable', 'false');
+                }
             });
         });