@licium/editor-plugin-text-align 3.2.12 → 3.2.13

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Editor : Text Align Plugin
3
- * @version 3.2.12 | Thu Jan 08 2026
3
+ * @version 3.2.13 | Fri Jan 09 2026
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 : Text Align Plugin
3
- * @version 3.2.12 | Thu Jan 08 2026
3
+ * @version 3.2.13 | Fri Jan 09 2026
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -169,7 +169,7 @@ function createToolbarItemOption(text, commandName, i18n) {
169
169
  command: commandName,
170
170
  tooltip: i18n.get(commandName),
171
171
  text: text,
172
- className: PREFIX + "toolbar-icons " + commandName,
172
+ className: "".concat(PREFIX, "toolbar-icons ").concat(commandName),
173
173
  };
174
174
  }
175
175
  function textAlignPlugin(context, options) {
@@ -283,7 +283,7 @@ function updateToolbarState() {
283
283
  // focusing on WYSIWYG visual feedback.
284
284
  }
285
285
  if (activeAlign) {
286
- var activeBtn = document.querySelector(".toastui-editor-toolbar-icons.align" + capitalize(activeAlign));
286
+ var activeBtn = document.querySelector(".toastui-editor-toolbar-icons.align".concat(capitalize(activeAlign)));
287
287
  if (activeBtn)
288
288
  activeBtn.classList.add('active');
289
289
  }
@@ -341,8 +341,8 @@ function execMarkdownAlign(alignType, selection, schema, tr, dispatch) {
341
341
  }
342
342
  else {
343
343
  // Apply new alignment
344
- var style = "display: block; text-align: " + alignType;
345
- finalWrapped = "<span style=\"" + style + "\">" + newText + "</span>";
344
+ var style = "display: block; text-align: ".concat(alignType);
345
+ finalWrapped = "<span style=\"".concat(style, "\">").concat(newText, "</span>");
346
346
  }
347
347
  try {
348
348
  tr.replaceWith(targetFrom, targetTo, schema.text(finalWrapped));
@@ -391,7 +391,7 @@ function execWysiwygAlign(alignType, selection, schema, tr, dispatch) {
391
391
  dispatch(tr);
392
392
  return true;
393
393
  }
394
- var style = "" + styleBase + alignType;
394
+ var style = "".concat(styleBase).concat(alignType);
395
395
  var attrs = { htmlAttrs: { style: style } };
396
396
  var mark = markType.create(attrs);
397
397
  tr.addMark(targetFrom, targetTo, mark);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licium/editor-plugin-text-align",
3
- "version": "3.2.12",
3
+ "version": "3.2.13",
4
4
  "description": "TOAST UI Editor : Text Align Plugin",
5
5
  "keywords": [
6
6
  "nhn",
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "70d40b5d9ffef8353490af0bec8c13a869c48989"
51
+ "gitHead": "019ce2e0c8210746f0072903ebec7efe79a8374a"
52
52
  }