Closed zwarag closed 3 years ago
Hi @zwarag
You already can trigger those functions programmatically. They are exported by the module. You just need to give them the editor on which to apply the action.
Here's a pseudo-example:
import * as EasyMDE from 'easymde';
const editor = new EasyMDE();
EasyMDE.toggleBold(editor);
I haven't thought about calling it that way. Thanks for clarifying @Tazaf 👍
Hi sparksuite, I was wondering if it would be possible to extend easymde so that function such as bold, italic, heading, code, ... could be triggered programmatically.
I like the editor, but I would like to put the toolbar in a different place and style it according to material guidelines. I think the easiest way would be to make the functions public, so that anybody can create their own toolbars.
So my concrete question is, is are you concerns about extending the public functions to trigger said functions externally.
best regards and thank you for your work 👍