mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 11:37:20 +00:00
use editDirection in simple.js and framed.js
This commit is contained in:
parent
f496d74d39
commit
ef0f065954
@ -81,6 +81,9 @@ function FramedEngine(options) {
|
||||
if(this.widget.isDisabled === "yes") {
|
||||
this.domNode.setAttribute("disabled",true);
|
||||
}
|
||||
if(this.widget.editDirection) {
|
||||
this.domNode.setAttribute("dir",this.widget.editDirection);
|
||||
}
|
||||
// Copy the styles from the dummy textarea
|
||||
this.copyStyles();
|
||||
// Add event listeners
|
||||
|
@ -58,6 +58,9 @@ function SimpleEngine(options) {
|
||||
if(this.widget.isDisabled === "yes") {
|
||||
this.domNode.setAttribute("disabled",true);
|
||||
}
|
||||
if(this.widget.editDirection) {
|
||||
this.domNode.setAttribute("dir",this.widget.editDirection);
|
||||
}
|
||||
// Add an input event handler
|
||||
$tw.utils.addEventListeners(this.domNode,[
|
||||
{name: "focus", handlerObject: this, handlerMethod: "handleFocusEvent"},
|
||||
|
Loading…
Reference in New Issue
Block a user