I am struggling to load summernote in fullscreen mode on initiation. I know that we have a setting up to put some code in ie. oninit but do not know how to activate the fullscreen button click by code.
Really appreciate your help.
@sgthangtran please refer to below code.
oninit : function() {
// click to fullscreen button
$("[data-event=fullscreen]").click();
}
Works perfectly. Many thanks!
Thang Tran
On 21 Feb 2015, at 3:13 am, jinho park [email protected] wrote:
@sgthangtran please refer to below code.
oninit : function() {
// click to fullscreen button
$("[data-event=fullscreen]").click();
}
—
Reply to this email directly or view it on GitHub.
In case anyone else has this same goal, as of 0.7.0 there is a slight change to how you call this function.
callbacks: {
onInit: function(e) {
$("#summernote").summernote("fullscreen.toggle");
}
}
$("#summernote").summernote("fullscreen.toggle");
It did the trick, thank you!!
Most helpful comment
In case anyone else has this same goal, as of 0.7.0 there is a slight change to how you call this function.