Closed vkiranananda closed 4 years ago
Please ask such questions at https://github.com/Alex-D/Trumbowyg
Ок. How I get access to $('#my-editor') ?
$('#my-editor').trumbowyg('execCmd', {
cmd: 'insertText',
param: 'TextToInsert',
forceCss: false,
});
You can add a ref="editor"
to component and then access it like
// In your component
this.$refs.editor.el.trumbowyg();
Thanks @ankurk91
Hello!
I want to add custom HTML where the cursor is. How to do it?
Thank you!