Skip to content

Commit

Permalink
fix #3111 ブログ記事詳細画面のプレビューが動作しない場合がある(BurgerEditorを入れた時など) (#3195)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaburk committed Mar 4, 2024
1 parent a464fb5 commit 71a7eb2
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ $(function () {
} else {
previewurl += '?url=' + fullUrl + '&preview=' + previewMode;
}
if (typeof $.bcCkeditor.editor['editor_detail_tmp'] !== undefined) {
$.bcCkeditor.editor['editor_detail_tmp'].execCommand('synchronize');
if (typeof $.bcCkeditor.editor.editor_detail_tmp !== "undefined") {
$.bcCkeditor.editor.editor_detail_tmp.execCommand('synchronize');
}
form.attr('target', 'preview');
form.attr('action', previewurl);
Expand All @@ -70,8 +70,8 @@ $(function () {
*/
$("#BtnSave").click(function () {
$.bcUtil.showLoader();
if (typeof $.bcCkeditor.editor['editor_detail_tmp'] !== undefined) {
$.bcCkeditor.editor['editor_detail_tmp'].execCommand('synchronize');
if (typeof $.bcCkeditor.editor.editor_detail_tmp !== "undefined") {
$.bcCkeditor.editor.editor_detail_tmp.execCommand('synchronize');
}
$("#BlogPostMode").val('save');
$.bcToken.check(function () {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 71a7eb2

Please sign in to comment.