-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer formatting options should no longer be hardcoded in core #2743
Comments
I guess this discussion is related #2654 |
Yep, sure is. I incorporated most of the changes outlined in that issue, so we can build off of the changes introduced here. |
@psychobunny @TedRinehart @a5mith I believe you all append buttons to the toolbar in some way? You can see how Markdown does it here |
Thank you! These changes were necessary, definitely. |
Please let us know if you run into any awkward issues with the composer when integrating with another plugin. For example, the composer itself should be a distinct entity from other parts of NodeBB, so if you catch it doing weird things like posting new topics, etc, let us know. |
@julianlam Of course 👍 |
We hard-code bold, italic, etc in core, but the real awkward part is that the parser is a plugin, meaning if you swapped out Markdown for something else (like BBCode), you would still get the old formatting options inputting markdown into the composer instead of
[b]
, etc.Oops.
Additionally, several other plugins attempt to modify the toolbar, but because of this hardcoding, plugins are resorting to tactics like appending to the end, which is good, but not powerful enough.
The text was updated successfully, but these errors were encountered: