1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

use editDirection in simple.js and framed.js

This commit is contained in:
BurningTreeC 2024-10-20 19:35:48 +02:00
parent f496d74d39
commit ef0f065954
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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"},