Skip to content

Commit 71c90fe

Browse files
author
Dennis Suitters
authored
WIP: Added missing Callbacks, require descriptions
Added missing Callbacks, but the require descriptions as I'm not sure exactly how they work. WIP.
1 parent b660852 commit 71c90fe

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

01-deep-dive.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,9 @@ Summernote support initialize callbacks and jquery's custom event style callback
565565
> ##### Callback only works with camel case string after v0.6.5
566566
> Lowercase string has been used for basic event name(ex: `oninit`, `onenter`, `onfocus`, `onblur`, `onkeyup`, `onkeydown`, `onpaste`). In contrast, callbacks name for advanced feature has been used with camel case string. This is inconsistent and confusing to use. So we rename all lowercase callback to camel case string.
567567
568+
#### onBeforeCommand
569+
WIP: Need to work on an explanation
570+
568571
### onChange
569572
* IE9-10: DOMCharacterDataModified, DOMSubtreeModified, DOMNodeInserted
570573
* Chrome, FF: input
@@ -585,6 +588,12 @@ $('#summernote').on('summernote.change', function(we, contents, $editable) {
585588
});
586589
{% endhighlight %}
587590

591+
### onChangeCodeview
592+
WIP: Need to work on an explanation
593+
594+
### onDialogShown
595+
WIP: Need to work on an explanation
596+
588597
### onEnter
589598
{% highlight javascript %}
590599
// onEnter callback
@@ -651,6 +660,9 @@ $('#summernote').on('summernote.blur.codeview', function() {
651660
});
652661
{% endhighlight %}
653662

663+
### onImageLinkInsert
664+
WIP: Need to work on an explanation
665+
654666
### onImageUpload
655667
Override image upload handler(default: base64 dataURL on `IMG` tag).
656668
You can upload image to server or AWS S3: [more...]({{ site.repository }}/issues/72)
@@ -673,6 +685,9 @@ $('#summernote').on('summernote.image.upload', function(we, files) {
673685
});
674686
{% endhighlight %}
675687

688+
### onImageUploadError
689+
WIP: Need to work on an explanation
690+
676691
### onInit
677692
{% highlight javascript %}
678693
// onInit callback
@@ -723,6 +738,8 @@ $('#summernote').on('summernote.keydown', function(we, e) {
723738
});
724739
{% endhighlight %}
725740

741+
### onMouseDown,onMouseUp
742+
726743
### onPaste
727744
{% highlight javascript %}
728745
// onPaste callback
@@ -740,6 +757,9 @@ $('#summernote').on('summernote.paste', function(e) {
740757
});
741758
{% endhighlight %}
742759

760+
### onScroll
761+
WIP: Need to work on an explanation
762+
743763
## Custom button
744764
Summernote also supports custom buttons. If you want to create your own button, you can simply define and use with options.
745765

0 commit comments

Comments
 (0)