You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
How to call variable lists and env from summernote.js to my custom plugin?
I want to make a plugin that can display popover from my custom plugin.
The variable dom included in $.summernote, why variable lists and env not included in $.summernote
I made a popover from the modification in the popover table.
Or anyone have simple create custom plugin popover inside summernote editor?
var MyCustomPopover = (function () {
function MyCustomPopover(context) {
var _this = this;
this.context = context;
this.ui = $.summernote.ui;
this.options = context.options;
this.events = {
'summernote.mousedown': function (we, e) {
_this.update(e.target);
},
'summernote.keyup summernote.scroll summernote.change': function () {
_this.update();
},
'summernote.disable': function () {
_this.hide();
}
};
};
MyCustomPopover.prototype.shouldInitialize = function () {
return !lists.isEmpty(this.options.popover.myCustomePopover);
};
MyCustomPopover.prototype.initialize = function () {
this.$popover = this.ui.popover({
className: 'note-mycustom-popover'
}).render().appendTo(this.options.container);
var $content = this.$popover.find('.popover-content,.note-popover-content');
this.context.invoke('buttons.build', $content, this.options.popover.myCustomePopover);
};
MyCustomPopover.prototype.update = function (target) {
if (this.context.isDisabled()) {
return false;
}
var isCustom = dom.isCustom(target);
if (isCustom) {
var pos = dom.posFromPlaceholder(target);
this.$popover.css({
display: 'block',
left: pos.left,
top: pos.top
});
}
else {
this.hide();
}
return isCell;
};
MyCustomPopover.prototype.destroy = function () {
this.$popover.remove();
};
MyCustomPopover.prototype.hide = function () {
this.$popover.hide();
};
return MyCustomPopover;
}());
$.extend(true, $.summernote, {
options: {
modules: {
'myCustomPopover': MyCustomPopover,
}
}
});
The text was updated successfully, but these errors were encountered:
Hello,$.summernote, why variable lists and env not included in $ .summernote
How to call variable lists and env from summernote.js to my custom plugin?
I want to make a plugin that can display popover from my custom plugin.
The variable dom included in
I made a popover from the modification in the popover table.
Or anyone have simple create custom plugin popover inside summernote editor?
The text was updated successfully, but these errors were encountered: