-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
Version: "jodit-react": "^5.2.19",
I'm trying to select which toolbar buttons I can select for the table cell popup. All toolbarInline props only works with the text selection option. Am I missing something? I tried to overwrite the table popup however nothing changes:
const config = useMemo(
() => ({
readonly: false,
placeholder: placeholder || 'Type here...',
width: '100%',
buttons: ['bold', 'italic', 'ul', 'ol', 'table', 'undo', 'redo', 'paragraph'],
controls: {
paragraph: {
list: Jodit.atom({
h2: 'Title 1',
h3: 'Title 2',
h4: 'Title 3',
h5: 'Body',
}),
},
},
popup: {
selection: Jodit.atom([
'bold',
'italic',
'ul',
'ol',
'paragraph',
'table',
'link',
'spellcheck',
'source',
]),
tableCell: Jodit.atom([
'tableInsertRowAbove',
'tableInsertRowBelow',
'tableInsertColumnLeft',
'tableInsertColumnRight',
'tableDeleteRow',
'tableDeleteColumn',
// Removed 'cellBackground', 'cellVerticalAlign', 'cellSplit', 'cellMerge'
]),
},
uploader: { insertImageAsBase64URI: true },
showXPathInStatusbar: false,
showCharsCounter: false,
showWordsCounter: false,
toolbarAdaptive: false,
toolbarSticky: true,
}),
[placeholder]
)
Metadata
Metadata
Assignees
Labels
No labels