jodit 3.11.1 → 3.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,25 +12,10 @@
12
12
  </component>
13
13
  <component name="ChangeListManager">
14
14
  <list default="true" id="5da7ff7f-03a8-49de-9fbb-8f8640d83b83" name="Default Changelist" comment="Fixed es2018 build don't works properly starting from jodit 3.9.4 #758&#10;Issue: https://github.com/xdan/jodit/issues/758">
15
- <change beforePath="$PROJECT_DIR$/build/jodit.css" beforeDir="false" />
16
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.css" beforeDir="false" />
17
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.css" beforeDir="false" />
18
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.js" beforeDir="false" />
19
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.min.css" beforeDir="false" />
20
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.en.min.js" beforeDir="false" />
21
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.js" beforeDir="false" />
22
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.min.css" beforeDir="false" />
23
- <change beforePath="$PROJECT_DIR$/build/jodit.es2018.min.js" beforeDir="false" />
24
- <change beforePath="$PROJECT_DIR$/build/jodit.js" beforeDir="false" />
25
- <change beforePath="$PROJECT_DIR$/build/jodit.min.css" beforeDir="false" />
26
- <change beforePath="$PROJECT_DIR$/build/jodit.min.js" beforeDir="false" />
27
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
28
- <change beforePath="$PROJECT_DIR$/src/core/async.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/core/async.ts" afterDir="false" />
29
- <change beforePath="$PROJECT_DIR$/src/plugins/keyboard/backspace/backspace.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/keyboard/backspace/backspace.ts" afterDir="false" />
30
- <change beforePath="$PROJECT_DIR$/src/plugins/keyboard/backspace/cases/check-remove-content-not-editable.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/keyboard/backspace/cases/check-remove-content-not-editable.ts" afterDir="false" />
31
- <change beforePath="$PROJECT_DIR$/src/plugins/keyboard/backspace/cases/index.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/keyboard/backspace/cases/index.ts" afterDir="false" />
32
- <change beforePath="$PROJECT_DIR$/src/plugins/select.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/select.ts" afterDir="false" />
33
- <change beforePath="$PROJECT_DIR$/test/tests/acceptance/deleteBackSpaceTest.js" beforeDir="false" afterPath="$PROJECT_DIR$/test/tests/acceptance/deleteBackSpaceTest.js" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/CHANGELOG.MD" beforeDir="false" afterPath="$PROJECT_DIR$/CHANGELOG.MD" afterDir="false" />
16
+ <change beforePath="$PROJECT_DIR$/src/plugins/resizer/resizer.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/plugins/resizer/resizer.ts" afterDir="false" />
17
+ <change beforePath="$PROJECT_DIR$/test/bootstrap.js" beforeDir="false" afterPath="$PROJECT_DIR$/test/bootstrap.js" afterDir="false" />
18
+ <change beforePath="$PROJECT_DIR$/test/tests/acceptance/plugins/resizer.js" beforeDir="false" afterPath="$PROJECT_DIR$/test/tests/acceptance/plugins/resizer.js" afterDir="false" />
34
19
  </list>
35
20
  <list id="5049e1d4-15bc-4e3a-b46b-d2ce7537fc13" name="Revert &quot;Some small fixes&quot;" comment="Revert &quot;Some small fixes&quot;&#10;&#10;This reverts commit bc391ec6" />
36
21
  <option name="SHOW_DIALOG" value="false" />
@@ -768,7 +753,7 @@
768
753
  <workItem from="1638745527539" duration="683000" />
769
754
  <workItem from="1638782582242" duration="2836000" />
770
755
  <workItem from="1638785436431" duration="4634000" />
771
- <workItem from="1638812171565" duration="10320000" />
756
+ <workItem from="1638812171565" duration="13172000" />
772
757
  </task>
773
758
  <task id="LOCAL-00865" summary="Added test for issue https://github.com/xdan/jodit/issues/522">
774
759
  <created>1635265918713</created>
@@ -1325,7 +1310,7 @@
1325
1310
  </line-breakpoint>
1326
1311
  <line-breakpoint enabled="true" type="javascript">
1327
1312
  <url>file://$PROJECT_DIR$/src/plugins/resizer/resizer.ts</url>
1328
- <line>380</line>
1313
+ <line>385</line>
1329
1314
  <option name="timeStamp" value="43" />
1330
1315
  </line-breakpoint>
1331
1316
  <line-breakpoint enabled="true" type="javascript">
package/CHANGELOG.MD CHANGED
@@ -9,6 +9,12 @@
9
9
  > - :house: [Internal]
10
10
  > - :nail_care: [Polish]
11
11
 
12
+ ## 3.11.2
13
+
14
+ #### :bug: Bug Fix
15
+
16
+ - Fixed a bug when resizing images whose size was specified in the style attribute - the size did not change
17
+
12
18
  ## 3.11.1
13
19
 
14
20
  #### :boom: Breaking Change
@@ -932,11 +938,11 @@ Related with https://github.com/xdan/jodit/issues/574. In some cases need to lim
932
938
  - @property {IUIOption[]} link.selectOptionsClassName=[] The list of the option for the select (to use with
933
939
  modeClassName="select")
934
940
  - ex: [
935
- - { value: "", text: "" },
936
- - { value: "val1", text: "text1" },
937
- - { value: "val2", text: "text2" },
938
- - { value: "val3", text: "text3" }
939
- - ]
941
+ - { value: "", text: "" },
942
+ - { value: "val1", text: "text1" },
943
+ - { value: "val2", text: "text2" },
944
+ - { value: "val3", text: "text3" }
945
+ - ]
940
946
  PR: https://github.com/xdan/jodit/pull/577 Thanks @s-renier-taonix-fr
941
947
 
942
948
  ##### New option `statusbar: boolean = true`
package/build/jodit.css CHANGED
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
4
- * Version: v3.11.1
4
+ * Version: v3.11.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
  /*!
9
9
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
11
- * Version: v3.11.1
11
+ * Version: v3.11.2
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
4
- * Version: v3.11.1
4
+ * Version: v3.11.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
4
- * Version: v3.11.1
4
+ * Version: v3.11.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
4
- * Version: v3.11.1
4
+ * Version: v3.11.2
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
@@ -11105,7 +11105,7 @@ class View extends component/* Component */.wA {
11105
11105
  this.isView = true;
11106
11106
  this.mods = {};
11107
11107
  this.components = new Set();
11108
- this.version = "3.11.1";
11108
+ this.version = "3.11.2";
11109
11109
  this.async = new Async();
11110
11110
  this.buffer = Storage.makeStorage();
11111
11111
  this.storage = Storage.makeStorage(true, this.componentName);
@@ -11203,10 +11203,10 @@ class View extends component/* Component */.wA {
11203
11203
  return this.__isFullSize;
11204
11204
  }
11205
11205
  getVersion() {
11206
- return "3.11.1";
11206
+ return "3.11.2";
11207
11207
  }
11208
11208
  static getVersion() {
11209
- return "3.11.1";
11209
+ return "3.11.2";
11210
11210
  }
11211
11211
  initOptions(options) {
11212
11212
  this.options = (0,helpers.ConfigProto)(options || {}, (0,helpers.ConfigProto)(this.options || {}, View.defaultOptions));
@@ -23424,10 +23424,11 @@ class resizer extends Plugin {
23424
23424
  return (0,helpers.offset)((this.rect.parentNode || this.j.od.documentElement), this.j, this.j.od, true);
23425
23425
  }
23426
23426
  applySize(element, key, value) {
23427
- if (dom/* Dom.isImage */.i.isImage(element) && this.j.o.resizer.forImageChangeAttributes) {
23427
+ const changeAttrs = dom/* Dom.isImage */.i.isImage(element) && this.j.o.resizer.forImageChangeAttributes;
23428
+ if (changeAttrs) {
23428
23429
  (0,helpers.attr)(element, key, value);
23429
23430
  }
23430
- else {
23431
+ if (!changeAttrs || element.style[key]) {
23431
23432
  (0,helpers.css)(element, key, value);
23432
23433
  }
23433
23434
  }