Skip to content

Commit

Permalink
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/imageProperties.ts
Original file line number Diff line number Diff line change
@@ -476,9 +476,9 @@ export default function (editor: Jodit) {
});

if (editor.options.image.editMargins) {
if ((<HTMLElement>prop.querySelector('.jodit_lock_margin').firstChild).classList.contains('jodit_icon_unlock')) {
$$('.margins', prop).forEach(function () {
css(image, this.id, normalSize(this.value));
if (!lockMargin) {
$$('.margins', prop).forEach(function (margin) {
css(image, margin.id, normalSize(margin.value));
});
} else {
css(image, 'margin', normalSize(val(prop, '#marginTop')));
@@ -567,4 +567,4 @@ export default function (editor: Jodit) {
.on('openImageProperties', (image: HTMLImageElement) => {
open.call(image);
});
};
};

0 comments on commit b172260

Please sign in to comment.