Server IP : 162.0.232.140 / Your IP : 18.188.73.229 Web Server : LiteSpeed System : Linux premium139.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : micrcvoy ( 740) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/micrcvoy/public_html/controlPanel/assets/plugins/summernote/src/js/module/ |
Upload File : |
define(function () { var HelpDialog = function (handler) { /** * show help dialog * * @param {jQuery} $editable * @param {jQuery} $dialog * @return {Promise} */ this.showHelpDialog = function ($editable, $dialog) { return $.Deferred(function (deferred) { var $helpDialog = $dialog.find('.note-help-dialog'); $helpDialog.one('hidden.bs.modal', function () { deferred.resolve(); }).modal('show'); }).promise(); }; /** * @param {Object} layoutInfo */ this.show = function (layoutInfo) { var $dialog = layoutInfo.dialog(), $editable = layoutInfo.editable(); handler.invoke('editor.saveRange', $editable, true); this.showHelpDialog($editable, $dialog).then(function () { handler.invoke('editor.restoreRange', $editable); }); }; }; return HelpDialog; });