ninegrid2 6.1408.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.
@@ -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,10 +55376,6 @@ class nxEditor extends nxDiv {
55370
55376
  };
55371
55377
  },
55372
55378
  }),
55373
- Color,
55374
- Highlight.configure({ multicolor: true }),
55375
- TextAlign.configure({ types: ['heading', 'paragraph'] }),
55376
- Image.configure({ inline: true, allowBase64: true }),
55377
55379
  ],
55378
55380
  content: this.#tempValue || this.originContents || '',
55379
55381
  onUpdate: ({ editor }) => {
@@ -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,10 +55372,6 @@ class nxEditor extends nxDiv {
55366
55372
  };
55367
55373
  },
55368
55374
  }),
55369
- Color,
55370
- Highlight.configure({ multicolor: true }),
55371
- TextAlign.configure({ types: ['heading', 'paragraph'] }),
55372
- Image.configure({ inline: true, allowBase64: true }),
55373
55375
  ],
55374
55376
  content: this.#tempValue || this.originContents || '',
55375
55377
  onUpdate: ({ editor }) => {
@@ -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,10 +174,6 @@ class nxEditor extends nxDiv {
168
174
  };
169
175
  },
170
176
  }),
171
- Color,
172
- Highlight.configure({ multicolor: true }),
173
- TextAlign.configure({ types: ['heading', 'paragraph'] }),
174
- Image.configure({ inline: true, allowBase64: true }),
175
177
  ],
176
178
  content: this.#tempValue || this.originContents || '',
177
179
  onUpdate: ({ editor }) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1408.0",
4
+ "version": "6.1409.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -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,10 +174,6 @@ class nxEditor extends nxDiv {
168
174
  };
169
175
  },
170
176
  }),
171
- Color,
172
- Highlight.configure({ multicolor: true }),
173
- TextAlign.configure({ types: ['heading', 'paragraph'] }),
174
- Image.configure({ inline: true, allowBase64: true }),
175
177
  ],
176
178
  content: this.#tempValue || this.originContents || '',
177
179
  onUpdate: ({ editor }) => {