Server IP : 66.29.146.62 / Your IP : 216.73.216.2 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/dokkdzvi/www/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; });