Summernote: Summernote in fullscreen mode on initiation

Created on 17 Feb 2015  Â·  4Comments  Â·  Source: summernote/summernote

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.

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.

  callbacks: {
    onInit: function(e) {
      $("#summernote").summernote("fullscreen.toggle");
    }
  }

All 4 comments

@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!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kossa picture kossa  Â·  3Comments

dandv picture dandv  Â·  4Comments

WaKeMaTTa picture WaKeMaTTa  Â·  3Comments

ghost picture ghost  Â·  3Comments

chrismaliszewski picture chrismaliszewski  Â·  4Comments