-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
I'm trying add a custom button but it doesn't work (works normal in vanilla js):
const btnsDef = {
uploadImage: {
fn: function () {
//todo
},
title: 'Upload Image',
text: 'Upload Image',
isSupported: function () {
return true;
},
ico: 'upload',
hasIcon: true
}
};
return (
<FormGroup>
<Trumbowyg
btnsDef={btnsDef}
buttons={
[
['viewHTML'],
['undo', 'redo'],
['formatting'],
['strong', 'em', 'del'],
['superscript', 'subscript'],
['link'],
['insertImage'],
['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull'],
['unorderedList', 'orderedList'],
['horizontalRule'],
['removeformat'],
['uploadImage'],
['fullscreen']
]
}
id="editor"/>
</FormGroup>
);
ChocolateSlayer and badr-elouaddany
Metadata
Metadata
Assignees
Labels
No labels