ninegrid2 6.1307.0 → 6.1309.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/nx/nxEditor.js +4 -12
- package/package.json +1 -1
- package/rollup.config.js +6 -2
- package/src/nx/nxEditor.js +4 -12
package/dist/nx/nxEditor.js
CHANGED
|
@@ -13,6 +13,8 @@ import { BlockQuote } from '@ckeditor/ckeditor5-block-quote';
|
|
|
13
13
|
import { Table, TableToolbar } from '@ckeditor/ckeditor5-table';
|
|
14
14
|
import { Undo } from '@ckeditor/ckeditor5-undo';
|
|
15
15
|
|
|
16
|
+
import linkIcon from '@/assets/icons/ckeditor/link.svg';
|
|
17
|
+
|
|
16
18
|
// 추가하고 싶은 플러그인들
|
|
17
19
|
//import { FontColor, FontBackgroundColor } from '@ckeditor/ckeditor5-font';
|
|
18
20
|
|
|
@@ -51,20 +53,10 @@ class nxEditor extends nxDiv {
|
|
|
51
53
|
try {
|
|
52
54
|
// ClassicEditor.create에 사용할 모든 플러그인을 명시적으로 주입합니다.
|
|
53
55
|
this.#editor = await ClassicEditor.create(textarea, {
|
|
54
|
-
|
|
55
|
-
plugins: [
|
|
56
|
-
Essentials, Paragraph, Heading, Bold, Italic, Link, List,
|
|
57
|
-
BlockQuote, Table, TableToolbar, Undo,
|
|
58
|
-
//FontColor, FontBackgroundColor
|
|
59
|
-
],
|
|
60
|
-
toolbar: [
|
|
61
|
-
'heading', '|',
|
|
62
|
-
'fontColor', 'fontBackgroundColor', '|',
|
|
63
|
-
'bold', 'italic', 'link', 'bulletedList', 'numberedList',
|
|
64
|
-
'blockQuote', 'insertTable', 'undo', 'redo'
|
|
65
|
-
]
|
|
56
|
+
plugins: [Essentials, Paragraph, Heading, Bold, Italic, Link], toolbar: ['link'], link: { icon: linkIcon }
|
|
66
57
|
});
|
|
67
58
|
|
|
59
|
+
|
|
68
60
|
// 초기 데이터 주입
|
|
69
61
|
if (this.originContents) {
|
|
70
62
|
this.#editor.setData(this.originContents);
|
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -3,7 +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
|
-
|
|
6
|
+
import { string } from 'rollup-plugin-string';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
input: "src/index.js",
|
|
@@ -24,7 +24,11 @@ export default {
|
|
|
24
24
|
external: [],
|
|
25
25
|
plugins: [
|
|
26
26
|
json(),
|
|
27
|
-
|
|
27
|
+
string({
|
|
28
|
+
include: [
|
|
29
|
+
'node_modules/@ckeditor/ckeditor5-*/theme/icons/*.svg'
|
|
30
|
+
]
|
|
31
|
+
}),
|
|
28
32
|
url({
|
|
29
33
|
exclude: [/\.svg$/],
|
|
30
34
|
include: ['**/*.png', '**/*.jpg', '**/*.gif'],
|
package/src/nx/nxEditor.js
CHANGED
|
@@ -13,6 +13,8 @@ import { BlockQuote } from '@ckeditor/ckeditor5-block-quote';
|
|
|
13
13
|
import { Table, TableToolbar } from '@ckeditor/ckeditor5-table';
|
|
14
14
|
import { Undo } from '@ckeditor/ckeditor5-undo';
|
|
15
15
|
|
|
16
|
+
import linkIcon from '@/assets/icons/ckeditor/link.svg';
|
|
17
|
+
|
|
16
18
|
// 추가하고 싶은 플러그인들
|
|
17
19
|
//import { FontColor, FontBackgroundColor } from '@ckeditor/ckeditor5-font';
|
|
18
20
|
|
|
@@ -51,20 +53,10 @@ class nxEditor extends nxDiv {
|
|
|
51
53
|
try {
|
|
52
54
|
// ClassicEditor.create에 사용할 모든 플러그인을 명시적으로 주입합니다.
|
|
53
55
|
this.#editor = await ClassicEditor.create(textarea, {
|
|
54
|
-
|
|
55
|
-
plugins: [
|
|
56
|
-
Essentials, Paragraph, Heading, Bold, Italic, Link, List,
|
|
57
|
-
BlockQuote, Table, TableToolbar, Undo,
|
|
58
|
-
//FontColor, FontBackgroundColor
|
|
59
|
-
],
|
|
60
|
-
toolbar: [
|
|
61
|
-
'heading', '|',
|
|
62
|
-
'fontColor', 'fontBackgroundColor', '|',
|
|
63
|
-
'bold', 'italic', 'link', 'bulletedList', 'numberedList',
|
|
64
|
-
'blockQuote', 'insertTable', 'undo', 'redo'
|
|
65
|
-
]
|
|
56
|
+
plugins: [Essentials, Paragraph, Heading, Bold, Italic, Link], toolbar: ['link'], link: { icon: linkIcon }
|
|
66
57
|
});
|
|
67
58
|
|
|
59
|
+
|
|
68
60
|
// 초기 데이터 주입
|
|
69
61
|
if (this.originContents) {
|
|
70
62
|
this.#editor.setData(this.originContents);
|