From d8c3e200fb920b62e05b88ea073f5dd5791b9202 Mon Sep 17 00:00:00 2001 From: loma-one <44441246+loma-one@users.noreply.github.com> Date: Sun, 13 Jul 2025 11:35:44 +0200 Subject: [PATCH 1/2] Add the BBCode selection [attachment] to the editor Adds 'attachment' to the list of permitted BBCode commands for the editor. https://github.com/friendica/friendica/issues/15014 --- view/js/autocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index fd5b08e9cc..7807d14174 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -370,7 +370,7 @@ function string2bb(element) { $.fn.bbco_autocomplete = function(type) { if (type === 'bbcode') { - var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'quote', 'code', 'spoiler', 'map', 'img', 'url', 'audio', 'video', 'embed', 'youtube', 'vimeo', 'list', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'nobb', 'noparse', 'pre', 'abstract', 'share']; + var open_close_elements = ['bold', 'italic', 'underline', 'overline', 'strike', 'quote', 'code', 'spoiler', 'map', 'img', 'url', 'audio', 'video', 'embed', 'youtube', 'vimeo', 'list', 'ul', 'ol', 'li', 'table', 'tr', 'th', 'td', 'center', 'color', 'font', 'size', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'nobb', 'noparse', 'pre', 'abstract', 'share', 'attachment']; var open_elements = ['*', 'hr']; var elements = open_close_elements.concat(open_elements); From a6b8b32a540a7277304f3efe4941eb91e0ebdc8e Mon Sep 17 00:00:00 2001 From: loma-one <44441246+loma-one@users.noreply.github.com> Date: Mon, 14 Jul 2025 18:32:01 +0200 Subject: [PATCH 2/2] Button positions in the Compose Editor The position of the buttons below the editor were previously placed on the right. The sandwitch and the position information were separated from the buttons for preview and send and placed on the left and right respectively. --- view/templates/item/compose.tpl | 57 +++++++++++++++++---------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/view/templates/item/compose.tpl b/view/templates/item/compose.tpl index 3f28ec3f43..94bf57da5a 100644 --- a/view/templates/item/compose.tpl +++ b/view/templates/item/compose.tpl @@ -63,38 +63,37 @@

-

-{{if $type == 'post'}} - - - - - -{{/if}} - - - - - - -

+

+ {{if $type == 'post'}} + + + + + + {{/if}} + + + + + + + + +