From f496d74d391776105748f6a7f689f1289007bc50 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Sun, 20 Oct 2024 19:28:20 +0200 Subject: [PATCH] Add editDirection to factory.js --- core/modules/editor/factory.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/editor/factory.js b/core/modules/editor/factory.js index 6157ec67f..4fb67d0b9 100644 --- a/core/modules/editor/factory.js +++ b/core/modules/editor/factory.js @@ -187,6 +187,7 @@ function editTextWidgetFactory(toolbarEngine,nonToolbarEngine) { this.editInputActions = this.getAttribute("inputActions"); this.editRefreshTitle = this.getAttribute("refreshTitle"); this.editAutoComplete = this.getAttribute("autocomplete"); + this.editDirection = this.document.getElementsByTagName("html")[0].getAttribute("dir") || "ltr"; this.isDisabled = this.getAttribute("disabled","no"); this.isFileDropEnabled = this.getAttribute("fileDrop","no") === "yes"; // Get the default editor element tag and type