@licium/editor-plugin-text-align-simpel 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.
|
|
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
|
|
172
|
+
className: "".concat(PREFIX, "toolbar-icons ").concat(commandName),
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
function textAlignPlugin(context, options) {
|
|
@@ -270,7 +270,7 @@ function updateToolbarState() {
|
|
|
270
270
|
// focusing on WYSIWYG visual feedback.
|
|
271
271
|
}
|
|
272
272
|
if (activeAlign) {
|
|
273
|
-
var activeBtn = document.querySelector(".toastui-editor-toolbar-icons.align"
|
|
273
|
+
var activeBtn = document.querySelector(".toastui-editor-toolbar-icons.align".concat(capitalize(activeAlign)));
|
|
274
274
|
if (activeBtn)
|
|
275
275
|
activeBtn.classList.add('active');
|
|
276
276
|
}
|
|
@@ -328,8 +328,8 @@ function execMarkdownAlign(alignType, selection, schema, tr, dispatch) {
|
|
|
328
328
|
}
|
|
329
329
|
else {
|
|
330
330
|
// Apply new alignment
|
|
331
|
-
var style = "display: block; text-align: "
|
|
332
|
-
finalWrapped = "<span style=\""
|
|
331
|
+
var style = "display: block; text-align: ".concat(alignType);
|
|
332
|
+
finalWrapped = "<span style=\"".concat(style, "\">").concat(newText, "</span>");
|
|
333
333
|
}
|
|
334
334
|
try {
|
|
335
335
|
tr.replaceWith(targetFrom, targetTo, schema.text(finalWrapped));
|
|
@@ -378,7 +378,7 @@ function execWysiwygAlign(alignType, selection, schema, tr, dispatch) {
|
|
|
378
378
|
dispatch(tr);
|
|
379
379
|
return true;
|
|
380
380
|
}
|
|
381
|
-
var style = ""
|
|
381
|
+
var style = "".concat(styleBase).concat(alignType);
|
|
382
382
|
var attrs = { htmlAttrs: { style: style } };
|
|
383
383
|
var mark = markType.create(attrs);
|
|
384
384
|
tr.addMark(targetFrom, targetTo, mark);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licium/editor-plugin-text-align-simpel",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.13",
|
|
4
4
|
"description": "TOAST UI Editor : Text Align Simpel Plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhn",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "019ce2e0c8210746f0072903ebec7efe79a8374a"
|
|
53
53
|
}
|