mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-28 15:08:46 +00:00
Fixes from @Infurnoape
This commit is contained in:
parent
d58be59586
commit
3b49cd17fc
@ -8,12 +8,12 @@ Text editor engine based on a simple input or textarea within an iframe. This is
|
|||||||
\*/
|
\*/
|
||||||
(function(){
|
(function(){
|
||||||
|
|
||||||
var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height"
|
|
||||||
|
|
||||||
/*jslint node: true, browser: true */
|
/*jslint node: true, browser: true */
|
||||||
/*global $tw: false */
|
/*global $tw: false */
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
var HEIGHT_VALUE_TITLE = "$:/config/TextEditor/EditorHeight/Height";
|
||||||
|
|
||||||
function FramedEngine(options) {
|
function FramedEngine(options) {
|
||||||
// Save our options
|
// Save our options
|
||||||
options = options || {};
|
options = options || {};
|
||||||
@ -130,7 +130,7 @@ FramedEngine.prototype.focus = function() {
|
|||||||
this.domNode.focus();
|
this.domNode.focus();
|
||||||
this.domNode.select();
|
this.domNode.select();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Handle a dom "input" event which occurs when the text has changed
|
Handle a dom "input" event which occurs when the text has changed
|
||||||
|
@ -103,7 +103,7 @@ SimpleEngine.prototype.focus = function() {
|
|||||||
this.domNode.focus();
|
this.domNode.focus();
|
||||||
this.domNode.select();
|
this.domNode.select();
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Handle a dom "input" event which occurs when the text has changed
|
Handle a dom "input" event which occurs when the text has changed
|
||||||
|
@ -39,7 +39,6 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) {
|
|||||||
Render this widget into the DOM
|
Render this widget into the DOM
|
||||||
*/
|
*/
|
||||||
EditTextWidget.prototype.render = function(parent,nextSibling) {
|
EditTextWidget.prototype.render = function(parent,nextSibling) {
|
||||||
var self = this;
|
|
||||||
// Save the parent dom node
|
// Save the parent dom node
|
||||||
this.parentDomNode = parent;
|
this.parentDomNode = parent;
|
||||||
// Compute our attributes
|
// Compute our attributes
|
||||||
|
Loading…
Reference in New Issue
Block a user