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

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

inline toolbar order #1056

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

Comments

@flaming-cl
Copy link
Contributor

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

reference #862

@neSpecc
Copy link
Member

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
Development

No branches or pull requests

4 participants