From 0c45ffac2d8648fec4fa5e935754f4d34952983b Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Sat, 12 Oct 2024 19:54:01 +0200 Subject: Add rich text support --- src/application/messages/de.msg | 25 +++++++++ src/application/views/form_addpost.php | 81 +++++++++++++++++++++++++++++- src/application/views/view_topic_start.php | 24 ++++++++- src/index.php | 26 +++++++++- src/ui/house.min.css | 2 +- 5 files changed, 154 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/application/messages/de.msg b/src/application/messages/de.msg index 4b90ecd..5b6f2a2 100644 --- a/src/application/messages/de.msg +++ b/src/application/messages/de.msg @@ -500,3 +500,28 @@ metadata({ : "Enter your search query..." = "Geben Sie Ihre Suchanfrage ein..." + +: "Bold" += "Fettdruck" + +: "Italic" += "Kursivdruck" + +: "Underlined" += "Unterstrichen" + +: "Strikethrough" += "Durchgestrichen" + +: "Superscript" += "Hochgestellt" + +: "Subscript" += "Tiefgestellt" + +: "Quote" += "Zitat" + +: "Spoiler" += "Spoiler" + diff --git a/src/application/views/form_addpost.php b/src/application/views/form_addpost.php index 4cddc05..9e617d9 100644 --- a/src/application/views/form_addpost.php +++ b/src/application/views/form_addpost.php @@ -18,7 +18,29 @@ if (($_formError = RequestUtils::getAndClearFormError("addpost")) !== null) {
- +
+
+ +
+
+ +
+
+ + diff --git a/src/application/views/view_topic_start.php b/src/application/views/view_topic_start.php index d23d0f4..7f62986 100644 --- a/src/application/views/view_topic_start.php +++ b/src/application/views/view_topic_start.php @@ -21,7 +21,29 @@ $canDelete = ($GLOBALS["currentUser"]?->id === $topicAuthor->id && $topicAuthor-