From 3b49cd17fcb36c05413cf713f9f9fc5ef8ed7a02 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 23 Apr 2016 17:23:14 +0100 Subject: [PATCH] Fixes from @Infurnoape --- core/modules/editor/engines/framed.js | 6 +++--- core/modules/editor/engines/simple.js | 2 +- core/modules/editor/factory.js | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) 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