From 59530853de27a352a766cad3f78eeec45d858f50 Mon Sep 17 00:00:00 2001
From: loma-one <44441246+loma-one@users.noreply.github.com>
Date: Thu, 22 Aug 2024 10:59:06 +0200
Subject: [PATCH 1/2] Optimisation of the Composer Editor
As a result of the changes, the editor is started in a larger window. In addition, the authorisation settings for the article are hidden for the time being. These can be shown via a sandwitch menu if required.
The reload of the page is prevented so that articles already created in the editor are not lost.
ar.
The Composer Editor is another editor in Friendica that is particularly suitable for entering longer texts (e.g. at the local workstation). The special feature is that the editor is loaded in a separate window and therefore does not distract from the timeline.
The editor can still be used in mobile applications
---
view/templates/item/compose.tpl | 66 ++++++++++++++++++++++++---------
1 file changed, 49 insertions(+), 17 deletions(-)
diff --git a/view/templates/item/compose.tpl b/view/templates/item/compose.tpl
index a161f34529..9cb8903ffc 100644
--- a/view/templates/item/compose.tpl
+++ b/view/templates/item/compose.tpl
@@ -21,53 +21,56 @@
+
+
+
From b57cd3a9253c480999f74d326512e63e05e08ba2 Mon Sep 17 00:00:00 2001
From: loma-one <44441246+loma-one@users.noreply.github.com>
Date: Thu, 22 Aug 2024 11:16:56 +0200
Subject: [PATCH 2/2] Optimisation of the Composer Editor
As a result of the changes, the editor is started in a larger window. In addition, the authorisation settings for the article are hidden for the time being. These can be shown via a sandwitch menu if required. The reload of the page is prevented so that articles already created in the editor are not lost.
The Composer Editor is another editor in Friendica that is particularly suitable for entering longer texts (e.g. at the local workstation). The special feature is that the editor is loaded in a separate window and therefore does not distract from the timeline. The editor can still be used in mobile applications
---
view/templates/item/compose.tpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/view/templates/item/compose.tpl b/view/templates/item/compose.tpl
index 9cb8903ffc..2890d766b0 100644
--- a/view/templates/item/compose.tpl
+++ b/view/templates/item/compose.tpl
@@ -142,7 +142,7 @@
window.addEventListener("beforeunload", function (event) {
if (!formSubmitting) {
- var confirmationMessage = 'Sind Sie sicher, dass Sie die Seite neu laden möchten? Alle ungespeicherten Änderungen gehen verloren.';
+ var confirmationMessage = 'Are you sure you want to reload the page? All unsaved changes will be lost.';
event.returnValue = confirmationMessage;
return confirmationMessage;
}