Remove dropdown on certain buttons #974
Unanswered
trymeouteh
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I wanted to ged rid of the options in UL completely. The only solution I found was reducing the options to the default option
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I used css to remove the redundant arrows I didn't want like so. Notice the <style>
[aria-label*="Align" i] .jodit-toolbar-button__trigger{
display: none !important;
}
[aria-label^="Font"] .jodit-toolbar-button__trigger{
display: none !important;
}
[aria-label*="Insert" i] .jodit-toolbar-button__trigger{
display: none !important;
}
[aria-label="Line height"] .jodit-toolbar-button__trigger{
display: none !important;
}
[aria-label*="split" i] .jodit-toolbar-button__trigger{
display: none !important;
}
[aria-label="Background"] .jodit-toolbar-button__trigger{
display: none !important;
}
[aria-label^="Fill"] .jodit-toolbar-button__trigger{
display: none !important;
}
[aria-label^="Paste"] .jodit-toolbar-button__trigger{
display: none !important;
}
</style> You can do this in the controls to change options Jodit.make('#editor', {
controls: {
paragraph: {
list: Jodit.atom({
p: 'Normal',
h2: 'Heading 2',
h3: 'Heading 3',
}),
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the following buttons, it has a dropdown option to select more options. Is there a way to remove or change these dropdown options?
Beta Was this translation helpful? Give feedback.
All reactions