diff --git a/qml/panels/EditorPane.qml b/qml/panels/EditorPane.qml index 3e4f814..f48283e 100644 --- a/qml/panels/EditorPane.qml +++ b/qml/panels/EditorPane.qml @@ -266,13 +266,13 @@ Item { // ---------- Просмотр (режим просмотра) ---------- function loadContent() { - console.log("loadContent called: docIndex=" + pane.docIndex + " editMode=" + pane.editMode) if (pane.docIndex >= 0) { const c = documentManager.contentAt(pane.docIndex) - console.log("loadContent content=" + c.substring(0, 50) + "...") + // Принудительное обновление TextArea: сначала очищаем, затем ставим контент + editor.text = "" editor.text = c + editor.cursorPosition = c.length pane.editorContent = c - console.log("loadContent editor.text.length=" + editor.text.length) } else { editor.text = "" pane.editorContent = ""