-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
❓ How to change tool order? #2040
Comments
Please, add more details. Are you talking about Block Tools or Inline Tools? Or Block Tunes? Maybe your configuration and some screenshots will help |
Porque no los dos? (meme that poorly translates to "why not both?") But yes, let's start with Block Tunes. It's "sort of alphabetical but not really, because Link is always first and followed by Text." Here's my tool configuration: {
header: {
class: Header,
inlineToolbar: ['link'],
tunes: ['alignmentTune']
},
paragraph: {
class: Paragraph,
inlineToolbar: true,
tunes: ['alignmentTune']
},
list: {
class: NestedChecklist,
inlineToolbar: true,
tunes: ['alignmentTune']
},
link: {
class: LinkTool,
tunes: ['alignmentTune'],
config: {
endpoint: '/api/fetchUrl',
}
},
image: {
class: Image,
inlineToolbar: ['link'],
tunes: ['alignmentTune']
},
embed: {
class: Embed,
inlineToolbar: true
},
table: {
class: Table,
config: {
rows: 2,
cols: 3,
},
inlineToolbar: true
},
alignmentTune: {
class: AlignmentTuneTool,
config: {
blocks: {
header: 'center',
image: 'center',
}
},
}
} |
Any update on this? |
I have the same problem. |
Use It respects the order :).
|
That's... not Javascript, how would someone even go about using that? |
Ooops, you are right. I'm doing this in Clojurescript. There, it works perfectly with |
Maybe you can use a Instead of:
something like this:
Here they say https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map |
Question
How do I change the order of tools?
Context
For some reason, every tool is listed AFTER "Text" EXCEPT "Link".
So, there clearly is some way to change the order of tools.
But it's not documented in the Tool Options:
https://editorjs.io/getting-started#available-tools-options
What I've tried
The text was updated successfully, but these errors were encountered: