ninegrid2 6.1284.0 → 6.1286.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.
@@ -372181,6 +372181,7 @@ class nxEditor extends nxDiv {
372181
372181
  try {
372182
372182
  // ClassicEditor.create에 사용할 모든 플러그인을 명시적으로 주입합니다.
372183
372183
  this.#editor = await ClassicEditor.create(textarea, {
372184
+ licenseKey: 'GPL',
372184
372185
  plugins: [
372185
372186
  Essentials, Paragraph, Heading, Bold, Italic, Link, List,
372186
372187
  BlockQuote, Table, TableToolbar, Undo,
@@ -372177,6 +372177,7 @@ class nxEditor extends nxDiv {
372177
372177
  try {
372178
372178
  // ClassicEditor.create에 사용할 모든 플러그인을 명시적으로 주입합니다.
372179
372179
  this.#editor = await ClassicEditor.create(textarea, {
372180
+ licenseKey: 'GPL',
372180
372181
  plugins: [
372181
372182
  Essentials, Paragraph, Heading, Bold, Italic, Link, List,
372182
372183
  BlockQuote, Table, TableToolbar, Undo,
@@ -44,6 +44,7 @@ class nxEditor extends nxDiv {
44
44
  try {
45
45
  // ClassicEditor.create에 사용할 모든 플러그인을 명시적으로 주입합니다.
46
46
  this.#editor = await ClassicEditor.create(textarea, {
47
+ licenseKey: 'GPL',
47
48
  plugins: [
48
49
  Essentials, Paragraph, Heading, Bold, Italic, Link, List,
49
50
  BlockQuote, Table, TableToolbar, Undo,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninegrid2",
3
3
  "type": "module",
4
- "version": "6.1284.0",
4
+ "version": "6.1286.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
package/rollup.config.js CHANGED
@@ -3,6 +3,7 @@ import commonjs from "@rollup/plugin-commonjs";
3
3
  import postcss from 'rollup-plugin-postcss';
4
4
  import json from '@rollup/plugin-json';
5
5
  import url from '@rollup/plugin-url';
6
+ // string 대신 텍스트 처리가 더 확실한 raw 플러그인이나 설정을 사용합니다.
6
7
  import { string } from 'rollup-plugin-string';
7
8
 
8
9
  export default {
@@ -23,36 +24,41 @@ export default {
23
24
  ],
24
25
  external: [],
25
26
  plugins: [
26
- // 1. JSON 파일 처리 (CKEditor 내부 설정 로드용)
27
+ // 1. JSON (최상단 유지)
27
28
  json(),
28
29
 
29
- // 2. SVG 아이콘 처리 (문자열로 읽어서 CKEditor 아이콘 주입)
30
+ // 2. SVG 처리 (순수 문자열로 읽기)
31
+ // CKEditor 5 아이콘 에러 해결의 핵심입니다.
30
32
  string({
31
33
  include: '**/*.svg',
32
34
  }),
33
35
 
34
- // 3. 이미지 기타 에셋 처리
36
+ // 3. 이미지 에셋 (SVG는 제외시켜서 충돌 방지)
35
37
  url({
38
+ exclude: '**/*.svg', // ⭐ SVG는 위에서 string이 처리하도록 제외
36
39
  include: ['**/*.png', '**/*.jpg', '**/*.gif'],
37
40
  limit: 8192,
38
41
  }),
39
42
 
40
- // 4. CSS 및 PostCSS 처리
43
+ // 4. CSS
41
44
  postcss({
42
- extract: false, // Shadow DOM 환경이므로 JS에 내장하여 주입하는 것이 유리함
45
+ extract: false,
43
46
  minimize: true,
44
- // CKEditor는 Sass를 쓰지 않으므로 필요 없다면 생략 가능하지만,
45
- // 기존 설정 유지 및 범용성을 위해 남겨둡니다.
46
47
  use: ['sass'],
47
48
  }),
48
49
 
49
- // 5. 모듈 해석 (브라우저 환경 우선)
50
+ // 5. 해석 (browser: true 옵션은 CKEditor 모듈 해석에 필수)
50
51
  resolve({
51
52
  browser: true,
52
- preferBuiltins: false
53
+ preferBuiltins: false,
54
+ // CKEditor는 'main' 대신 'module' 필드를 사용하는 경우가 많습니다.
55
+ mainFields: ['module', 'main']
53
56
  }),
54
57
 
55
- // 6. CommonJS 변환
56
- commonjs(),
58
+ // 6. CommonJS
59
+ commonjs({
60
+ // CKEditor 아이콘(SVG)이 JS 모듈로 오해받지 않도록 범위 설정
61
+ include: /node_modules/,
62
+ }),
57
63
  ]
58
64
  };
@@ -44,6 +44,7 @@ class nxEditor extends nxDiv {
44
44
  try {
45
45
  // ClassicEditor.create에 사용할 모든 플러그인을 명시적으로 주입합니다.
46
46
  this.#editor = await ClassicEditor.create(textarea, {
47
+ licenseKey: 'GPL',
47
48
  plugins: [
48
49
  Essentials, Paragraph, Heading, Bold, Italic, Link, List,
49
50
  BlockQuote, Table, TableToolbar, Undo,