From e22ea841d098ed0b199562ac5200aa850a1542d3 Mon Sep 17 00:00:00 2001 From: Matthias Grief Date: Thu, 2 Jan 2025 15:12:13 +0100 Subject: [PATCH] Kleine Anpassungen --- webseite/topicEditor.php | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/webseite/topicEditor.php b/webseite/topicEditor.php index a10aa20..fb0a55c 100644 --- a/webseite/topicEditor.php +++ b/webseite/topicEditor.php @@ -233,13 +233,13 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') {
- +
- - @@ -258,6 +258,15 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') {
+
+ + + +
+

Vorschau

@@ -312,6 +321,10 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') { let html = quill.getSemanticHTML().replace(/ /g, " "); html = html.replaceAll("

", "
"); + while (html.startsWith("
")) { + html = html.replace(/^
/g, ""); + } + while (html.endsWith("
")) { html = html.replace(/
$/g, ""); } @@ -322,6 +335,14 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') { }); quill.emitter.emit('text-change'); + function undo() { + quill.history.undo(); + } + + function redo() { + quill.history.redo(); + } +