We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c63db4 commit d65eae4Copy full SHA for d65eae4
libs/editor/libs/editor-common/assets/ZSSRichTextEditor.js
@@ -1963,6 +1963,11 @@ ZSSEditor.applyImageSelectionFormatting = function( imageNode ) {
1963
}
1964
1965
ZSSEditor.removeImageSelectionFormatting = function( imageNode ) {
1966
+ if (!$('#zss_field_content')[0].contains(imageNode)) {
1967
+ // The image node has already been removed from the document
1968
+ return;
1969
+ }
1970
+
1971
var node = ZSSEditor.findImageCaptionNode( imageNode );
1972
if ( !node.parentNode || node.parentNode.className.indexOf( "edit-container" ) == -1 ) {
1973
return;
0 commit comments