Skip to content

Commit

Permalink
fix baserproject#3111 ブログ記事詳細画面のプレビューが動作しない場合がある(BurgerEditorを入れた時など)
Browse files Browse the repository at this point in the history
typo fix
  • Loading branch information
kaburk committed Mar 4, 2024
1 parent 35903c1 commit 09ef4f1
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 09ef4f1

Please sign in to comment.