diff --git a/package.json b/package.json index a9e0c3c..0b1eeef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "supercode-tinymce-plugin", - "version": "1.0.1", + "version": "1.0.2", "description": "Opensource and Powerful Source Code editor for TinyMCE. Also enables more than just HTML editing enabling Markdown Editing or any source code editing.", "main": "index.js", "scripts": { diff --git a/supercode/plugin.js b/supercode/plugin.js index d372b7a..a74d38e 100644 --- a/supercode/plugin.js +++ b/supercode/plugin.js @@ -1,8 +1,6 @@ ! function() { "use strict"; - let aceEditor; - const initDependencies = (config) => { const scripts = { "ace-default" : { @@ -50,8 +48,7 @@ return false; } - let editorWidth = 0, originalHeader, isScreenSizeChanged = false, session; - + let editorWidth = 0, originalHeader, isScreenSizeChanged = false, session, aceEditor; let Config = { theme: 'chrome', @@ -217,7 +214,6 @@ buildAceEditor(view); } - setConfig(editor); initDependencies(Config); diff --git a/supercode/plugin.min.js b/supercode/plugin.min.js index 9b25124..79471f0 100644 --- a/supercode/plugin.min.js +++ b/supercode/plugin.min.js @@ -1,5 +1,4 @@ (function() { - let i; const S = (n) => { const c = { "ace-default": { @@ -27,7 +26,7 @@ }, w = (n) => n.getParam("inline") !== !0, x = function(n) { if (!w(n)) return console.error("Supercode Plugin is not supported in inline mode"), !1; - let c = 0, l, d = !1, u, t = { + let c = 0, l, d = !1, u, i, t = { theme: "chrome", fontSize: 14, // in px