Skip to content

Commit ab01f38

Browse files
author
Zane
committed
Article editor: images gallery
1 parent 740400b commit ab01f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎assets/js/article-edit-images-gallery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ $(document).on('change', '#tli-article-editor-image-gallery input[type="file"]',
107107
*/
108108

109109
let savedRange;
110-
const editableDiv = $('.tli-article-body');
110+
const editableDiv = $('.tli-article-body[contenteditable="true"]');
111111

112112
// saves the current selection (cursor position) within the editable div.
113113
const saveSelection = () => {

0 commit comments

Comments
 (0)