@toast-ui/editor 3.1.4 → 3.1.7

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.
Files changed (53) hide show
  1. package/dist/esm/i18n/ar.js +1 -1
  2. package/dist/esm/i18n/cs-cz.js +1 -1
  3. package/dist/esm/i18n/de-de.js +1 -1
  4. package/dist/esm/i18n/en-us.js +1 -1
  5. package/dist/esm/i18n/es-es.js +1 -1
  6. package/dist/esm/i18n/fi-fi.js +1 -1
  7. package/dist/esm/i18n/fr-fr.js +1 -1
  8. package/dist/esm/i18n/gl-es.js +1 -1
  9. package/dist/esm/i18n/hr-hr.js +1 -1
  10. package/dist/esm/i18n/i18n.js +1 -1
  11. package/dist/esm/i18n/it-it.js +1 -1
  12. package/dist/esm/i18n/ja-jp.js +1 -1
  13. package/dist/esm/i18n/ko-kr.js +1 -1
  14. package/dist/esm/i18n/nb-no.js +1 -1
  15. package/dist/esm/i18n/nl-nl.js +1 -1
  16. package/dist/esm/i18n/pl-pl.js +1 -1
  17. package/dist/esm/i18n/pt-br.js +1 -1
  18. package/dist/esm/i18n/ru-ru.js +1 -1
  19. package/dist/esm/i18n/sv-se.js +1 -1
  20. package/dist/esm/i18n/tr-tr.js +1 -1
  21. package/dist/esm/i18n/uk-ua.js +1 -1
  22. package/dist/esm/i18n/zh-cn.js +1 -1
  23. package/dist/esm/i18n/zh-tw.js +1 -1
  24. package/dist/esm/index.js +12 -7
  25. package/dist/esm/indexViewer.js +8 -3
  26. package/dist/i18n/ar.js +1 -1
  27. package/dist/i18n/cs-cz.js +1 -1
  28. package/dist/i18n/de-de.js +1 -1
  29. package/dist/i18n/es-es.js +1 -1
  30. package/dist/i18n/fi-fi.js +1 -1
  31. package/dist/i18n/fr-fr.js +1 -1
  32. package/dist/i18n/gl-es.js +1 -1
  33. package/dist/i18n/hr-hr.js +1 -1
  34. package/dist/i18n/it-it.js +1 -1
  35. package/dist/i18n/ja-jp.js +1 -1
  36. package/dist/i18n/ko-kr.js +1 -1
  37. package/dist/i18n/nb-no.js +1 -1
  38. package/dist/i18n/nl-nl.js +1 -1
  39. package/dist/i18n/pl-pl.js +1 -1
  40. package/dist/i18n/pt-br.js +1 -1
  41. package/dist/i18n/ru-ru.js +1 -1
  42. package/dist/i18n/sv-se.js +1 -1
  43. package/dist/i18n/tr-tr.js +1 -1
  44. package/dist/i18n/uk-ua.js +1 -1
  45. package/dist/i18n/zh-cn.js +1 -1
  46. package/dist/i18n/zh-tw.js +1 -1
  47. package/dist/toastui-editor-only.css +1 -1
  48. package/dist/toastui-editor-viewer.css +1 -1
  49. package/dist/toastui-editor-viewer.js +8 -3
  50. package/dist/toastui-editor.css +1 -1
  51. package/dist/toastui-editor.js +12 -7
  52. package/package.json +1 -1
  53. package/types/index.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : i18n
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1161,7 +1161,10 @@ function createWidgetContent(info, text) {
1161
1161
  }
1162
1162
  function widgetToDOM(info, text) {
1163
1163
  var _a = widgetRuleMap[info], rule = _a.rule, toDOM = _a.toDOM;
1164
- text = unwrapWidgetSyntax(text).match(rule)[0];
1164
+ var matches = unwrapWidgetSyntax(text).match(rule);
1165
+ if (matches) {
1166
+ text = matches[0];
1167
+ }
1165
1168
  return toDOM(text);
1166
1169
  }
1167
1170
  function getWidgetRules() {
@@ -4262,11 +4265,11 @@ var MdEditor = /** @class */ (function (_super) {
4262
4265
  ]);
4263
4266
  };
4264
4267
  MdEditor.prototype.createPlugins = function () {
4265
- return this.defaultPlugins.concat(__spreadArray$1([
4268
+ return __spreadArray$1([
4266
4269
  syntaxHighlight(this.context),
4267
4270
  previewHighlight(this.context),
4268
4271
  smartTask(this.context)
4269
- ], this.createPluginProps()));
4272
+ ], this.createPluginProps()).concat(this.defaultPlugins);
4270
4273
  };
4271
4274
  MdEditor.prototype.createView = function () {
4272
4275
  var _this = this;
@@ -11286,7 +11289,9 @@ var InlineParser = /** @class */ (function () {
11286
11289
  res = this.parseAutolink(block) || this.parseHtmlTag(block);
11287
11290
  break;
11288
11291
  case C_AMPERSAND:
11289
- res = this.parseEntity(block);
11292
+ if (!block.disabledEntityParse) {
11293
+ res = this.parseEntity(block);
11294
+ }
11290
11295
  break;
11291
11296
  default:
11292
11297
  res = this.parseString(block);
@@ -19527,12 +19532,12 @@ var WysiwygEditor = /** @class */ (function (_super) {
19527
19532
  });
19528
19533
  };
19529
19534
  WysiwygEditor.prototype.createPlugins = function () {
19530
- return this.defaultPlugins.concat(__spreadArray$1([
19535
+ return __spreadArray$1([
19531
19536
  tableSelection(),
19532
19537
  tableContextMenu(this.eventEmitter),
19533
19538
  task(),
19534
19539
  toolbarStateHighlight(this.eventEmitter)
19535
- ], this.createPluginProps()));
19540
+ ], this.createPluginProps()).concat(this.defaultPlugins);
19536
19541
  };
19537
19542
  WysiwygEditor.prototype.createPluginNodeViews = function () {
19538
19543
  var _a = this, eventEmitter = _a.eventEmitter, pluginNodeViews = _a.pluginNodeViews;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @toast-ui/editor : viewer
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -6635,7 +6635,9 @@ var InlineParser = /** @class */ (function () {
6635
6635
  res = this.parseAutolink(block) || this.parseHtmlTag(block);
6636
6636
  break;
6637
6637
  case C_AMPERSAND:
6638
- res = this.parseEntity(block);
6638
+ if (!block.disabledEntityParse) {
6639
+ res = this.parseEntity(block);
6640
+ }
6639
6641
  break;
6640
6642
  default:
6641
6643
  res = this.parseString(block);
@@ -10105,7 +10107,10 @@ function unwrapWidgetSyntax(text) {
10105
10107
  }
10106
10108
  function widgetToDOM(info, text) {
10107
10109
  var _a = widgetRuleMap[info], rule = _a.rule, toDOM = _a.toDOM;
10108
- text = unwrapWidgetSyntax(text).match(rule)[0];
10110
+ var matches = unwrapWidgetSyntax(text).match(rule);
10111
+ if (matches) {
10112
+ text = matches[0];
10113
+ }
10109
10114
  return toDOM(text);
10110
10115
  }
10111
10116
  function getWidgetContent(widgetNode) {
package/dist/i18n/ar.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : i18n
3
- * @version 3.1.4
3
+ * @version 3.1.7
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -9619,7 +9619,9 @@ var InlineParser = /** @class */ (function () {
9619
9619
  res = this.parseAutolink(block) || this.parseHtmlTag(block);
9620
9620
  break;
9621
9621
  case C_AMPERSAND:
9622
- res = this.parseEntity(block);
9622
+ if (!block.disabledEntityParse) {
9623
+ res = this.parseEntity(block);
9624
+ }
9623
9625
  break;
9624
9626
  default:
9625
9627
  res = this.parseString(block);
@@ -12710,7 +12712,10 @@ function createWidgetContent(info, text) {
12710
12712
  }
12711
12713
  function widgetToDOM(info, text) {
12712
12714
  var _a = widgetRuleMap[info], rule = _a.rule, toDOM = _a.toDOM;
12713
- text = unwrapWidgetSyntax(text).match(rule)[0];
12715
+ var matches = unwrapWidgetSyntax(text).match(rule);
12716
+ if (matches) {
12717
+ text = matches[0];
12718
+ }
12714
12719
  return toDOM(text);
12715
12720
  }
12716
12721
  function getWidgetRules() {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @toast-ui/editor
3
- * @version 3.1.4 | Thu Apr 14 2022
3
+ * @version 3.1.7 | Tue May 17 2022
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -3846,7 +3846,10 @@ function createWidgetContent(info, text) {
3846
3846
  }
3847
3847
  function widgetToDOM(info, text) {
3848
3848
  var _a = widgetRuleMap[info], rule = _a.rule, toDOM = _a.toDOM;
3849
- text = unwrapWidgetSyntax(text).match(rule)[0];
3849
+ var matches = unwrapWidgetSyntax(text).match(rule);
3850
+ if (matches) {
3851
+ text = matches[0];
3852
+ }
3850
3853
  return toDOM(text);
3851
3854
  }
3852
3855
  function getWidgetRules() {
@@ -7182,11 +7185,11 @@ var MdEditor = /** @class */ (function (_super) {
7182
7185
  ]);
7183
7186
  };
7184
7187
  MdEditor.prototype.createPlugins = function () {
7185
- return this.defaultPlugins.concat(__spreadArray([
7188
+ return __spreadArray([
7186
7189
  syntaxHighlight(this.context),
7187
7190
  previewHighlight(this.context),
7188
7191
  smartTask(this.context)
7189
- ], this.createPluginProps()));
7192
+ ], this.createPluginProps()).concat(this.defaultPlugins);
7190
7193
  };
7191
7194
  MdEditor.prototype.createView = function () {
7192
7195
  var _this = this;
@@ -13932,7 +13935,9 @@ var InlineParser = /** @class */ (function () {
13932
13935
  res = this.parseAutolink(block) || this.parseHtmlTag(block);
13933
13936
  break;
13934
13937
  case C_AMPERSAND:
13935
- res = this.parseEntity(block);
13938
+ if (!block.disabledEntityParse) {
13939
+ res = this.parseEntity(block);
13940
+ }
13936
13941
  break;
13937
13942
  default:
13938
13943
  res = this.parseString(block);
@@ -21128,12 +21133,12 @@ var WysiwygEditor = /** @class */ (function (_super) {
21128
21133
  });
21129
21134
  };
21130
21135
  WysiwygEditor.prototype.createPlugins = function () {
21131
- return this.defaultPlugins.concat(__spreadArray([
21136
+ return __spreadArray([
21132
21137
  tableSelection(),
21133
21138
  tableContextMenu(this.eventEmitter),
21134
21139
  task(),
21135
21140
  toolbarStateHighlight(this.eventEmitter)
21136
- ], this.createPluginProps()));
21141
+ ], this.createPluginProps()).concat(this.defaultPlugins);
21137
21142
  };
21138
21143
  WysiwygEditor.prototype.createPluginNodeViews = function () {
21139
21144
  var _a = this, eventEmitter = _a.eventEmitter, pluginNodeViews = _a.pluginNodeViews;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toast-ui/editor",
3
- "version": "3.1.4",
3
+ "version": "3.1.7",
4
4
  "description": "GFM Markdown Wysiwyg Editor - Productive and Extensible",
5
5
  "keywords": [
6
6
  "nhn",
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for TOAST UI Editor v3.1.4
1
+ // Type definitions for TOAST UI Editor v3.1.7
2
2
  // TypeScript Version: 4.2.3
3
3
  import {
4
4
  EditorCore,