]> code.citadel.org Git - citadel.git/commitdiff
Placed the bold/italic/list/link buttons in the editor. (They don't work yet.)
authorArt Cancro <ajc@citadel.org>
Wed, 24 Nov 2021 17:54:24 +0000 (12:54 -0500)
committerArt Cancro <ajc@citadel.org>
Wed, 24 Nov 2021 17:54:24 +0000 (12:54 -0500)
webcit-ng/static/js/view_forum.js

index 50c6ae896e3d4733dee3d1bb1c7e4107954991ea..3bab4df90a4b0ddbd445692befcc5901b7a244fd 100644 (file)
@@ -206,7 +206,27 @@ function open_reply_box(prefix, msgnum, is_quoted) {
        + "</span>"                                                     // end msgdate
        + "</span>"                                                     // end header info on left side
        + "<span class=\"ctdl-msg-header-buttons\">"                    // begin buttons on right side
-       + "x"
+
+       + "<span class=\"ctdl-msg-button\">"                            // bold button FIXME make this work
+       + "<a href=\"#\">"
+       + "<i class=\"fa fa-bold fa-fw\"></i>" 
+       + "</a></span>"
+
+       + "<span class=\"ctdl-msg-button\">"                            // italic button FIXME make this work
+       + "<a href=\"#\">"
+       + "<i class=\"fa fa-italic fa-fw\"></i>" 
+       + "</a></span>"
+
+       + "<span class=\"ctdl-msg-button\">"                            // list button FIXME make this work
+       + "<a href=\"#\">"
+       + "<i class=\"fa fa-list fa-fw\"></i>" 
+       + "</a></span>"
+
+       + "<span class=\"ctdl-msg-button\">"                            // link button FIXME make this work
+       + "<a href=\"#\">"
+       + "<i class=\"fa fa-link fa-fw\"></i>" 
+       + "</a></span>"
+
        + "</span>";                                                    // end buttons on right side
        if (msg.subj) {
                replybox +=
@@ -215,12 +235,11 @@ function open_reply_box(prefix, msgnum, is_quoted) {
        replybox +=
          "</div><br>"                                                  // end header
 
-
-       + "<div class=\"ctdl-msg-body\" id=\"ctdl-editor-body\" style=\"padding:5px;\" contenteditable=\"true\">"       // begin body
+                                                                       // begin body
+       + "<div class=\"ctdl-msg-body\" id=\"ctdl-editor-body\" style=\"padding:5px;\" contenteditable=\"true\">"
        + "\n"                                                          // empty initial content
        + "</div>"                                                      // end body
 
-
        + "<div class=\"ctdl-msg-header\">"                             // begin footer
        + "<span class=\"ctdl-msg-header-info\">"                       // begin footer info on left side
        + "x"