Skip to content
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

inline toolbar order #1056

Open
flaming-cl opened this issue Mar 10, 2020 · 2 comments
Open

inline toolbar order #1056

flaming-cl opened this issue Mar 10, 2020 · 2 comments

Comments

@flaming-cl
Copy link
Contributor

@flaming-cl flaming-cl commented Mar 10, 2020

Hi, if we hope to change the order of the inline tools, how can we implement it?

For example, if we want Marker to be placed before all the other tools:
image

Thanks!

@khaydarov
Copy link
Member

@khaydarov khaydarov commented Mar 14, 2020

reference #862

@neSpecc
Copy link
Member

@neSpecc neSpecc commented Apr 18, 2020

  1. Add inlineToolbar option to the root of EditorConfig. This common option will allow removing some tools from all blocks. Or disable the Inline Toolbar for all blocks by passing false. Or specify a sorting of tools.

  2. If there is no root inlineToolbar option passed, get the order of the inline tools by their order in the tools config option appended to the internal (link, bold, italic).

  3. The inlineToolbar option of specific tool (got from tools<tool> sections) will override the root setting.

  4. Inside the show method of the Inline Toolbar perform buttons ordering corresponding by the current (tool or root) setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.