ninegrid2 6.1407.0 → 6.1409.0
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.
- package/dist/bundle.cjs.js +11 -10
- package/dist/bundle.esm.js +11 -10
- package/dist/nx/nxEditor.js +10 -9
- package/package.json +1 -1
- package/src/nx/nxEditor.js +10 -9
package/dist/bundle.cjs.js
CHANGED
|
@@ -54591,7 +54591,7 @@ var mergeNestedSpanStyles = (element) => {
|
|
|
54591
54591
|
childSpan.setAttribute("style", `${closestParentSpanStyleOfChild};${childStyle}`);
|
|
54592
54592
|
});
|
|
54593
54593
|
};
|
|
54594
|
-
var TextStyle = Mark.create({
|
|
54594
|
+
var TextStyle$1 = Mark.create({
|
|
54595
54595
|
name: "textStyle",
|
|
54596
54596
|
priority: 101,
|
|
54597
54597
|
addOptions() {
|
|
@@ -54890,7 +54890,7 @@ Extension.create({
|
|
|
54890
54890
|
extensions.push(LineHeight.configure(this.options.lineHeight));
|
|
54891
54891
|
}
|
|
54892
54892
|
if (this.options.textStyle !== false) {
|
|
54893
|
-
extensions.push(TextStyle.configure(this.options.textStyle));
|
|
54893
|
+
extensions.push(TextStyle$1.configure(this.options.textStyle));
|
|
54894
54894
|
}
|
|
54895
54895
|
return extensions;
|
|
54896
54896
|
}
|
|
@@ -55353,14 +55353,20 @@ class nxEditor extends nxDiv {
|
|
|
55353
55353
|
element: this.#container,
|
|
55354
55354
|
editable: !this.readonly, // 4. 생성 시 readonly 여부 반영
|
|
55355
55355
|
extensions: [
|
|
55356
|
-
index_default,
|
|
55357
|
-
Underline,
|
|
55356
|
+
index_default, // 기본 셋 (Bold, Italic, Strike 등 포함)
|
|
55357
|
+
Underline, // StarterKit에 없으므로 유지
|
|
55358
|
+
Color, // StarterKit에 없으므로 유지
|
|
55359
|
+
Highlight.configure({ multicolor: true }),
|
|
55360
|
+
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
55361
|
+
Image.configure({ inline: true, allowBase64: true }),
|
|
55362
|
+
|
|
55363
|
+
// TextStyle은 여기서 'extend'로 직접 정의하므로
|
|
55364
|
+
// 배열에 별도의 TextStyle을 또 넣지 마세요.
|
|
55358
55365
|
TextStyle.extend({
|
|
55359
55366
|
addAttributes() {
|
|
55360
55367
|
return {
|
|
55361
55368
|
fontSize: {
|
|
55362
55369
|
default: null,
|
|
55363
|
-
// HTML 태그에 style="font-size: ..."를 입히는 로직
|
|
55364
55370
|
parseHTML: element => element.style.fontSize,
|
|
55365
55371
|
renderHTML: attributes => {
|
|
55366
55372
|
if (!attributes.fontSize) return {};
|
|
@@ -55370,11 +55376,6 @@ class nxEditor extends nxDiv {
|
|
|
55370
55376
|
};
|
|
55371
55377
|
},
|
|
55372
55378
|
}),
|
|
55373
|
-
Color,
|
|
55374
|
-
//TextStyle.configure({ types: [Highlight.name, Color.name] }),
|
|
55375
|
-
Highlight.configure({ multicolor: true }),
|
|
55376
|
-
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
55377
|
-
Image.configure({ inline: true, allowBase64: true }),
|
|
55378
55379
|
],
|
|
55379
55380
|
content: this.#tempValue || this.originContents || '',
|
|
55380
55381
|
onUpdate: ({ editor }) => {
|
package/dist/bundle.esm.js
CHANGED
|
@@ -54587,7 +54587,7 @@ var mergeNestedSpanStyles = (element) => {
|
|
|
54587
54587
|
childSpan.setAttribute("style", `${closestParentSpanStyleOfChild};${childStyle}`);
|
|
54588
54588
|
});
|
|
54589
54589
|
};
|
|
54590
|
-
var TextStyle = Mark.create({
|
|
54590
|
+
var TextStyle$1 = Mark.create({
|
|
54591
54591
|
name: "textStyle",
|
|
54592
54592
|
priority: 101,
|
|
54593
54593
|
addOptions() {
|
|
@@ -54886,7 +54886,7 @@ Extension.create({
|
|
|
54886
54886
|
extensions.push(LineHeight.configure(this.options.lineHeight));
|
|
54887
54887
|
}
|
|
54888
54888
|
if (this.options.textStyle !== false) {
|
|
54889
|
-
extensions.push(TextStyle.configure(this.options.textStyle));
|
|
54889
|
+
extensions.push(TextStyle$1.configure(this.options.textStyle));
|
|
54890
54890
|
}
|
|
54891
54891
|
return extensions;
|
|
54892
54892
|
}
|
|
@@ -55349,14 +55349,20 @@ class nxEditor extends nxDiv {
|
|
|
55349
55349
|
element: this.#container,
|
|
55350
55350
|
editable: !this.readonly, // 4. 생성 시 readonly 여부 반영
|
|
55351
55351
|
extensions: [
|
|
55352
|
-
index_default,
|
|
55353
|
-
Underline,
|
|
55352
|
+
index_default, // 기본 셋 (Bold, Italic, Strike 등 포함)
|
|
55353
|
+
Underline, // StarterKit에 없으므로 유지
|
|
55354
|
+
Color, // StarterKit에 없으므로 유지
|
|
55355
|
+
Highlight.configure({ multicolor: true }),
|
|
55356
|
+
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
55357
|
+
Image.configure({ inline: true, allowBase64: true }),
|
|
55358
|
+
|
|
55359
|
+
// TextStyle은 여기서 'extend'로 직접 정의하므로
|
|
55360
|
+
// 배열에 별도의 TextStyle을 또 넣지 마세요.
|
|
55354
55361
|
TextStyle.extend({
|
|
55355
55362
|
addAttributes() {
|
|
55356
55363
|
return {
|
|
55357
55364
|
fontSize: {
|
|
55358
55365
|
default: null,
|
|
55359
|
-
// HTML 태그에 style="font-size: ..."를 입히는 로직
|
|
55360
55366
|
parseHTML: element => element.style.fontSize,
|
|
55361
55367
|
renderHTML: attributes => {
|
|
55362
55368
|
if (!attributes.fontSize) return {};
|
|
@@ -55366,11 +55372,6 @@ class nxEditor extends nxDiv {
|
|
|
55366
55372
|
};
|
|
55367
55373
|
},
|
|
55368
55374
|
}),
|
|
55369
|
-
Color,
|
|
55370
|
-
//TextStyle.configure({ types: [Highlight.name, Color.name] }),
|
|
55371
|
-
Highlight.configure({ multicolor: true }),
|
|
55372
|
-
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
55373
|
-
Image.configure({ inline: true, allowBase64: true }),
|
|
55374
55375
|
],
|
|
55375
55376
|
content: this.#tempValue || this.originContents || '',
|
|
55376
55377
|
onUpdate: ({ editor }) => {
|
package/dist/nx/nxEditor.js
CHANGED
|
@@ -3,7 +3,7 @@ import { nxDiv } from "./_nxDiv.js";
|
|
|
3
3
|
|
|
4
4
|
import { Editor } from '@tiptap/core';
|
|
5
5
|
import StarterKit from '@tiptap/starter-kit';
|
|
6
|
-
import { TextStyle } from '@tiptap/extension-text-style';
|
|
6
|
+
//import { TextStyle } from '@tiptap/extension-text-style';
|
|
7
7
|
import { Color } from '@tiptap/extension-color';
|
|
8
8
|
import { Highlight } from '@tiptap/extension-highlight';
|
|
9
9
|
import { Underline } from '@tiptap/extension-underline';
|
|
@@ -151,14 +151,20 @@ class nxEditor extends nxDiv {
|
|
|
151
151
|
element: this.#container,
|
|
152
152
|
editable: !this.readonly, // 4. 생성 시 readonly 여부 반영
|
|
153
153
|
extensions: [
|
|
154
|
-
StarterKit,
|
|
155
|
-
Underline,
|
|
154
|
+
StarterKit, // 기본 셋 (Bold, Italic, Strike 등 포함)
|
|
155
|
+
Underline, // StarterKit에 없으므로 유지
|
|
156
|
+
Color, // StarterKit에 없으므로 유지
|
|
157
|
+
Highlight.configure({ multicolor: true }),
|
|
158
|
+
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
159
|
+
Image.configure({ inline: true, allowBase64: true }),
|
|
160
|
+
|
|
161
|
+
// TextStyle은 여기서 'extend'로 직접 정의하므로
|
|
162
|
+
// 배열에 별도의 TextStyle을 또 넣지 마세요.
|
|
156
163
|
TextStyle.extend({
|
|
157
164
|
addAttributes() {
|
|
158
165
|
return {
|
|
159
166
|
fontSize: {
|
|
160
167
|
default: null,
|
|
161
|
-
// HTML 태그에 style="font-size: ..."를 입히는 로직
|
|
162
168
|
parseHTML: element => element.style.fontSize,
|
|
163
169
|
renderHTML: attributes => {
|
|
164
170
|
if (!attributes.fontSize) return {};
|
|
@@ -168,11 +174,6 @@ class nxEditor extends nxDiv {
|
|
|
168
174
|
};
|
|
169
175
|
},
|
|
170
176
|
}),
|
|
171
|
-
Color,
|
|
172
|
-
//TextStyle.configure({ types: [Highlight.name, Color.name] }),
|
|
173
|
-
Highlight.configure({ multicolor: true }),
|
|
174
|
-
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
175
|
-
Image.configure({ inline: true, allowBase64: true }),
|
|
176
177
|
],
|
|
177
178
|
content: this.#tempValue || this.originContents || '',
|
|
178
179
|
onUpdate: ({ editor }) => {
|
package/package.json
CHANGED
package/src/nx/nxEditor.js
CHANGED
|
@@ -3,7 +3,7 @@ import { nxDiv } from "./_nxDiv.js";
|
|
|
3
3
|
|
|
4
4
|
import { Editor } from '@tiptap/core';
|
|
5
5
|
import StarterKit from '@tiptap/starter-kit';
|
|
6
|
-
import { TextStyle } from '@tiptap/extension-text-style';
|
|
6
|
+
//import { TextStyle } from '@tiptap/extension-text-style';
|
|
7
7
|
import { Color } from '@tiptap/extension-color';
|
|
8
8
|
import { Highlight } from '@tiptap/extension-highlight';
|
|
9
9
|
import { Underline } from '@tiptap/extension-underline';
|
|
@@ -151,14 +151,20 @@ class nxEditor extends nxDiv {
|
|
|
151
151
|
element: this.#container,
|
|
152
152
|
editable: !this.readonly, // 4. 생성 시 readonly 여부 반영
|
|
153
153
|
extensions: [
|
|
154
|
-
StarterKit,
|
|
155
|
-
Underline,
|
|
154
|
+
StarterKit, // 기본 셋 (Bold, Italic, Strike 등 포함)
|
|
155
|
+
Underline, // StarterKit에 없으므로 유지
|
|
156
|
+
Color, // StarterKit에 없으므로 유지
|
|
157
|
+
Highlight.configure({ multicolor: true }),
|
|
158
|
+
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
159
|
+
Image.configure({ inline: true, allowBase64: true }),
|
|
160
|
+
|
|
161
|
+
// TextStyle은 여기서 'extend'로 직접 정의하므로
|
|
162
|
+
// 배열에 별도의 TextStyle을 또 넣지 마세요.
|
|
156
163
|
TextStyle.extend({
|
|
157
164
|
addAttributes() {
|
|
158
165
|
return {
|
|
159
166
|
fontSize: {
|
|
160
167
|
default: null,
|
|
161
|
-
// HTML 태그에 style="font-size: ..."를 입히는 로직
|
|
162
168
|
parseHTML: element => element.style.fontSize,
|
|
163
169
|
renderHTML: attributes => {
|
|
164
170
|
if (!attributes.fontSize) return {};
|
|
@@ -168,11 +174,6 @@ class nxEditor extends nxDiv {
|
|
|
168
174
|
};
|
|
169
175
|
},
|
|
170
176
|
}),
|
|
171
|
-
Color,
|
|
172
|
-
//TextStyle.configure({ types: [Highlight.name, Color.name] }),
|
|
173
|
-
Highlight.configure({ multicolor: true }),
|
|
174
|
-
TextAlign.configure({ types: ['heading', 'paragraph'] }),
|
|
175
|
-
Image.configure({ inline: true, allowBase64: true }),
|
|
176
177
|
],
|
|
177
178
|
content: this.#tempValue || this.originContents || '',
|
|
178
179
|
onUpdate: ({ editor }) => {
|