Core: [Markdown] [BBCode] Implement formatting buttons

Created on 29 Aug 2015  Â·  7Comments  Â·  Source: flarum/core

_From @tobscure on August 27, 2015 13:54_

What needs to be done:

  • Work out which formatting buttons to add, and how they should be implemented among multiple formatting extensions (Markdown/BBCode). Should each formatting extension implement its own formatting buttons with the same keys, and then the extension that's enabled last would "win" but buttons that it doesn't overwrite would still display?
  • I envision they should be added to the TextEditor controls area (to the right of the submit/preview buttons); we should make sure this looks good and there's enough room for it. Could also consider putting them in a little popup that appears when you click on a button in that toolbar (like Google Inbox).

_Copied from original issue: flarum/markdown#1_

needs-discussion typfeature

Most helpful comment

I know we're not using React, but maybe this can serve as inspiration: http://facebook.github.io/draft-js (the data model / code under the hood).

All 7 comments

Why not using a HTML5 inline editor like https://www.raptor-editor.com ?
Markdown/BBcode/wiki syntax and all these syntaxes are boring for normal users.

Referencing the redactor: https://discuss.flarum.org/d/1377-flarum-v0-1-0-beta-4-released/52

We could even get donations up for this as well!

I know we're not using React, but maybe this can serve as inspiration: http://facebook.github.io/draft-js (the data model / code under the hood).

Or maybe try Trix from Basecamp?

The basics of this are in place for the Markdown extension. There's still a couple things to do though:

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. We do this to keep the amount of open issues to a manageable minimum.
In any case, thanks for taking an interest in this software and contributing by opening the issue in the first place!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tjrgg picture tjrgg  Â·  3Comments

datitisev picture datitisev  Â·  3Comments

Ralkage picture Ralkage  Â·  4Comments

clrh picture clrh  Â·  4Comments

webpigeon picture webpigeon  Â·  3Comments