Skip to content

Second compose toolbar#1233

Open
dfsm wants to merge 16 commits intomainfrom
second-compose-toolbar
Open

Second compose toolbar#1233
dfsm wants to merge 16 commits intomainfrom
second-compose-toolbar

Conversation

@dfsm
Copy link
Copy Markdown
Contributor

@dfsm dfsm commented Mar 28, 2026

Adding a second toolbar to composition view to contain BBCode helpers. These are the same options as the compositionMenuTree, but more easily available in an always visible toolbar.

Also, some of the BBCode tags have been improved to make populating them easier via modal inputs. e.g. [url] will present two fields: one for the URL to wrap in tags and an option to set a display value for the link.

Important: This has been branched from "attachments", not "main"! This was done to avoid conflicts with the menu item changes associated with Forum Attachments.

Merge "attachments" into main before this branch (please).

dfsm added 16 commits November 10, 2025 20:48
- New option added "Forum Attachment".
- Menu Tree updated to handle new option.
Now [img] will prompt:
a) (If clipboard not empty) Paste URL
b) From Library (from Camera has been removed)
If From Library is selected, user can select their image. Once selected, another pair of options is presented:
a) Image Host (if imgurUploadsEnabled)
b) Forum Attachment
- If image is too large (dimensions or filesize) (likely!) then option to Resize & Continue is presented. User can cancel out of resize to meet reqs.
- Preview card UI element appears during resizing and also to display attachment thumbnail, dimensions and filesize in newreply view
- Preview card with Keep or Delete segmented options present when editing a post with an attachment
- Fixed existing issue where attachments would not render in posts. Had to download these with authentication and then display them in the posts after the html renders
…updated to follow.

Support adding, replacing, and deleting attachments when editing posts.
Adapts to forum changes that expanded edit capabilities: attachments can now be added to posts that didn't have them, and existing attachments can be replaced. The "Forum Attachment" option in the composition menu now appears for edits when the server supports it, gated by parsing the edit form for attachment controls. Also fixes attachment image display in posts by extracting attachmentid directly from img URLs instead of the nonexistent postid parameter, and fetches images in a single request instead of two.
Disables the submit button while attachments are resizing.
Improved some of the BBCode tags to make populating them easier.

Important: Branched from "attachments" to avoid conflicts with the menu item changes associated with Forum Attachments. Merge attachments into main before this branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant