mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +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") {
|
if(this.widget.isDisabled === "yes") {
|
||||||
this.domNode.setAttribute("disabled",true);
|
this.domNode.setAttribute("disabled",true);
|
||||||
}
|
}
|
||||||
|
if(this.widget.editDirection) {
|
||||||
|
this.domNode.setAttribute("dir",this.widget.editDirection);
|
||||||
|
}
|
||||||
// Copy the styles from the dummy textarea
|
// Copy the styles from the dummy textarea
|
||||||
this.copyStyles();
|
this.copyStyles();
|
||||||
// Add event listeners
|
// Add event listeners
|
||||||
|
@ -58,6 +58,9 @@ function SimpleEngine(options) {
|
|||||||
if(this.widget.isDisabled === "yes") {
|
if(this.widget.isDisabled === "yes") {
|
||||||
this.domNode.setAttribute("disabled",true);
|
this.domNode.setAttribute("disabled",true);
|
||||||
}
|
}
|
||||||
|
if(this.widget.editDirection) {
|
||||||
|
this.domNode.setAttribute("dir",this.widget.editDirection);
|
||||||
|
}
|
||||||
// Add an input event handler
|
// Add an input event handler
|
||||||
$tw.utils.addEventListeners(this.domNode,[
|
$tw.utils.addEventListeners(this.domNode,[
|
||||||
{name: "focus", handlerObject: this, handlerMethod: "handleFocusEvent"},
|
{name: "focus", handlerObject: this, handlerMethod: "handleFocusEvent"},
|
||||||
|
Loading…
Reference in New Issue
Block a user