Issue: Summernote not saving applied classes added via this plugin.
Resolution:
After much trial and error I appended the line
context.invoke('triggerEvent', 'change');
to the click function of the addclass plugin within the summernote-ext-addclass.js file.
This (seems to) resolve the issue where summernote does not recognize any additional class styling that is added if you do not trigger the summernote.change event after applying your classes (i.e. by typing other content after applying classes).
Probably should be added to the master branch but I haven't done enough testing on it to create a PR. If not then hopefully this saves someone else time to figure out.
Issue: Summernote not saving applied classes added via this plugin.
Resolution: After much trial and error I appended the line
context.invoke('triggerEvent', 'change');
to the
click
function of theaddclass
plugin within the summernote-ext-addclass.js file.This (seems to) resolve the issue where summernote does not recognize any additional class styling that is added if you do not trigger the
summernote.change
event after applying your classes (i.e. by typing other content after applying classes).Probably should be added to the master branch but I haven't done enough testing on it to create a PR. If not then hopefully this saves someone else time to figure out.