Mercurial Hosting > sceditor
diff src/plugins/autoyoutube.js @ 29:ea32a44b5a6e
remove more oo
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 11 Aug 2022 19:54:03 -0600 |
parents | b7725dab7482 |
children |
line wrap: on
line diff
--- a/src/plugins/autoyoutube.js Thu Aug 11 00:04:48 2022 -0600 +++ b/src/plugins/autoyoutube.js Thu Aug 11 19:54:03 2022 -0600 @@ -84,10 +84,11 @@ }; sceditor.plugins.autoyoutube = function () { - this.signalPasteRaw = function (data) { + let base = {} + base.signalPasteRaw = function (editor, data) { // TODO: Make this tag configurable. // Skip code tags - if (dom.closest(this.currentNode(), 'code')) { + if (dom.closest(editor.currentNode(), 'code')) { return; } @@ -102,5 +103,6 @@ data.html = node.innerHTML; } }; + return base; }; })(document, sceditor);