how can i add summernote editor with dform

71 views
Skip to first unread message

Souvik Basu

unread,
Oct 31, 2014, 5:21:23 PM10/31/14
to jquery...@googlegroups.com
hi team,

can you please let me know how can i add summernote editor with the help of dform


David Luecke

unread,
Oct 31, 2014, 5:31:33 PM10/31/14
to jquery...@googlegroups.com
The documentation should show how to make your own subscriber at http://daffl.github.io/jquery.dform/#subscribers/add-your-own.
Since all Summernote initialization seems pretty straightforward all you probably need to do is:

$.dform.subscribe("summernote", function(options, type) {
    $('.summernote').summernote(options);
});

And then just use it like

$("#mydiv").dform({ "type" : "textarea", "summernote" : {} });

--
You received this message because you are subscribed to the Google Groups "jQuery dForm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jquery-dform...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Luecke

unread,
Oct 31, 2014, 5:31:57 PM10/31/14
to jquery...@googlegroups.com
Sorry

$.dform.subscribe("summernote", function(options, type) {
    this.summernote(options);
});

Souvik Basu

unread,
Oct 31, 2014, 6:24:33 PM10/31/14
to jquery...@googlegroups.com
woow.. that worked ... Thank you very much...

now that you helped me out on that.. please could also help me as to add

can i do this too?

David Luecke

unread,
Oct 31, 2014, 6:48:38 PM10/31/14
to jquery...@googlegroups.com
That should be literally the same thing but replacing summernote with colorselector. You'll still have to create the HTML necessary to show the colours though.

Souvik Basu

unread,
Oct 31, 2014, 6:52:04 PM10/31/14
to jquery...@googlegroups.com
Thanks, that worked too... thank you very much for your help...
Reply all
Reply to author
Forward
0 new messages