diff --git a/core/modules/editor/engines/framed.js b/core/modules/editor/engines/framed.js index a855d4356..5747737b1 100644 --- a/core/modules/editor/engines/framed.js +++ b/core/modules/editor/engines/framed.js @@ -8,12 +8,12 @@ Text editor engine based on a simple input or textarea within an iframe. This is \*/ (function(){ -var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height" - /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; +var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height"; + function FramedEngine(options) { // Save our options options = options || {}; @@ -130,7 +130,7 @@ FramedEngine.prototype.focus = function() { this.domNode.focus(); this.domNode.select(); } -} +}; /* Handle a dom "input" event which occurs when the text has changed diff --git a/core/modules/editor/engines/simple.js b/core/modules/editor/engines/simple.js index 84d407123..b446dff93 100644 --- a/core/modules/editor/engines/simple.js +++ b/core/modules/editor/engines/simple.js @@ -103,7 +103,7 @@ SimpleEngine.prototype.focus = function() { this.domNode.focus(); this.domNode.select(); } -} +}; /* Handle a dom "input" event which occurs when the text has changed diff --git a/core/modules/editor/factory.js b/core/modules/editor/factory.js index 66bdafd26..e2ea8dce5 100644 --- a/core/modules/editor/factory.js +++ b/core/modules/editor/factory.js @@ -39,7 +39,6 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) { Render this widget into the DOM */ EditTextWidget.prototype.render = function(parent,nextSibling) { - var self = this; // Save the parent dom node this.parentDomNode = parent; // Compute our attributes