Ver Fonte

added attribute dir=auto on the textarea

Former-commit-id: e893fa32f35edd4e30d9d8e801607037fdef36cc
Gildas há 5 anos atrás
pai
commit
7e5b57ef44
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      extension/ui/content/content-ui-editor-web.js

+ 1 - 0
extension/ui/content/content-ui-editor-web.js

@@ -942,6 +942,7 @@ table {
 		noteElement.classList.add(NOTE_CLASS);
 		noteElement.classList.add(NOTE_ANCHORED_CLASS);
 		noteElement.classList.add(color);
+		mainElement.dir = "auto";
 		const boundingRectDocument = document.documentElement.getBoundingClientRect();
 		let positionX = NOTE_INITIAL_WIDTH + NOTE_INITIAL_POSITION_X - 1 - boundingRectDocument.x;
 		let positionY = NOTE_INITIAL_HEIGHT + NOTE_INITIAL_POSITION_Y - 1 - boundingRectDocument.y;