Skip to content

Commit 6223f6f

Browse files
author
Dennis Suitters
authored
Add new options descriptions
Add information about using `$.summernote.interface;` and `this.options.id;`.
1 parent 0fb8fad commit 6223f6f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

03-plugins.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,10 @@ This section performs functions when the Plugin is first initialised. Note, this
204204
// This is how we can add a Modal Dialog to allow users to interact with the Plugin.
205205

206206
// get the correct container for the plugin how it's attached to the document DOM.
207+
// Using the current latest development branch, you can now use $.summernote.interface;
208+
// to return which Summernote is being used to be able to adjust the modal layout to suit.
209+
// using this.options.id will return a generated timestamp when Summernote was initiliased
210+
// on page to allow using unique ID's.
207211
var $container = options.dialogsInBody ? $(document.body) : $editor;
208212

209213
// Build the Body HTML of the Dialog.

0 commit comments

Comments
 (0)