Summernote gives you the option of giving focus to the editor when you create it, passing this options:
$('#summernote').summernote({
focus: true
});
But after initialization, it seems you can't give focus to the textarea by clicking a button or similar. I've tried several ways, without success.
Anyone did that?
Summernote gives you the option of giving focus to the editor when you create it, passing this options: $('#summernote'). summernote({ focus: true });
If you look on the main Summernote website as opposed to the API docs you will see a clear example, that explains how to customise the toolbar. It is on the Deep Dive page and scroll down to Custom Toolbar. It also lists the available toolbar buttons. In your toolbar you set ['style', ['bold', 'italic',...
You can disable drag and drop with the disableDragAndDrop option.
$('.summernote').summernote('focus')
ps. i want to find an angular way out .. and it works
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With