* Fix bug #46382, adjust save template error.

This commit is contained in:
caoyanyi
2024-03-06 14:31:32 +08:00
parent dd06683893
commit c09751157d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
function showSaveModal(editor, type)
window.showSaveModal = function(editor, type)
{
$('zen-editor[name="' + editor + '"]')[0].getHTML().then((content) => {
content = content.replace(/<p><\/p>$/, '');
+1 -1
View File
@@ -65,7 +65,7 @@ class editor extends wg
btn
(
setClass('ghost border-l border-r border-light'),
on::click("showSaveModal('$editor', '$type')"),
on::click("window.showSaveModal('$editor', '$type')"),
$lang->user->saveTemplate
),
dropdown
+1 -1
View File
@@ -34,5 +34,5 @@ formPanel
) : null,
formHidden('editor', $editor),
formHidden('type', $type),
formHidden('content')
formHidden('content', '')
);