@licium/editor-plugin-color-syntax 3.1.0 → 3.2.4
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/README.md +19 -16
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
> This is a fork of the [Toast UI Editor](https://github.com/natorus87/tui.editor) maintained by `@licium`.
|
|
2
|
+
> Original repository: https://github.com/natorus87/tui.editor
|
|
3
|
+
|
|
1
4
|
# TOAST UI Editor : Color Syntax Plugin
|
|
2
5
|
|
|
3
|
-
> This is a plugin of [TOAST UI Editor](https://github.com/
|
|
6
|
+
> This is a plugin of [TOAST UI Editor](https://github.com/natorus87/tui.editor/tree/master/apps/editor) to color editing text.
|
|
4
7
|
|
|
5
|
-
[](https://www.npmjs.com/package/@licium/editor-plugin-color-syntax)
|
|
6
9
|
|
|
7
10
|

|
|
8
11
|
|
|
@@ -41,14 +44,14 @@ The bundle files include all dependencies of this plugin.
|
|
|
41
44
|
|
|
42
45
|
## 📦 Usage npm
|
|
43
46
|
|
|
44
|
-
To use the plugin, [`@
|
|
47
|
+
To use the plugin, [`@licium/editor`](https://github.com/natorus87/tui.editor/tree/master/apps/editor) must be installed.
|
|
45
48
|
|
|
46
|
-
> Ref. [Getting Started](https://github.com/
|
|
49
|
+
> Ref. [Getting Started](https://github.com/natorus87/tui.editor/blob/master/docs/en/getting-started.md)
|
|
47
50
|
|
|
48
51
|
### Install
|
|
49
52
|
|
|
50
53
|
```sh
|
|
51
|
-
$ npm install @
|
|
54
|
+
$ npm install @licium/editor-plugin-color-syntax
|
|
52
55
|
```
|
|
53
56
|
|
|
54
57
|
### Import Plugin
|
|
@@ -59,18 +62,18 @@ Along with the plugin, the plugin's dependency style must be imported. The `colo
|
|
|
59
62
|
|
|
60
63
|
```js
|
|
61
64
|
import 'tui-color-picker/dist/tui-color-picker.css';
|
|
62
|
-
import '@
|
|
65
|
+
import '@licium/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.css';
|
|
63
66
|
|
|
64
|
-
import colorSyntax from '@
|
|
67
|
+
import colorSyntax from '@licium/editor-plugin-color-syntax';
|
|
65
68
|
```
|
|
66
69
|
|
|
67
70
|
#### CommonJS
|
|
68
71
|
|
|
69
72
|
```js
|
|
70
73
|
require('tui-color-picker/dist/tui-color-picker.css');
|
|
71
|
-
require('@
|
|
74
|
+
require('@licium/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.css');
|
|
72
75
|
|
|
73
|
-
const colorSyntax = require('@
|
|
76
|
+
const colorSyntax = require('@licium/editor-plugin-color-syntax');
|
|
74
77
|
```
|
|
75
78
|
|
|
76
79
|
### Create Instance
|
|
@@ -80,10 +83,10 @@ const colorSyntax = require('@toast-ui/editor-plugin-color-syntax');
|
|
|
80
83
|
```js
|
|
81
84
|
// ...
|
|
82
85
|
import 'tui-color-picker/dist/tui-color-picker.css';
|
|
83
|
-
import '@
|
|
86
|
+
import '@licium/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.css';
|
|
84
87
|
|
|
85
|
-
import Editor from '@
|
|
86
|
-
import colorSyntax from '@
|
|
88
|
+
import Editor from '@licium/editor';
|
|
89
|
+
import colorSyntax from '@licium/editor-plugin-color-syntax';
|
|
87
90
|
|
|
88
91
|
const editor = new Editor({
|
|
89
92
|
// ...
|
|
@@ -93,7 +96,7 @@ const editor = new Editor({
|
|
|
93
96
|
|
|
94
97
|
## 🗂 Usage CDN
|
|
95
98
|
|
|
96
|
-
To use the plugin, the CDN files(CSS, Script) of `@
|
|
99
|
+
To use the plugin, the CDN files(CSS, Script) of `@licium/editor` must be included.
|
|
97
100
|
|
|
98
101
|
### Include Files
|
|
99
102
|
|
|
@@ -151,10 +154,10 @@ The following options are available in the `color-syntax` plugin.
|
|
|
151
154
|
```js
|
|
152
155
|
// ...
|
|
153
156
|
import 'tui-color-picker/dist/tui-color-picker.css';
|
|
154
|
-
import '@
|
|
157
|
+
import '@licium/editor-plugin-color-syntax/dist/toastui-editor-plugin-color-syntax.css';
|
|
155
158
|
|
|
156
|
-
import Editor from '@
|
|
157
|
-
import colorSyntax from '@
|
|
159
|
+
import Editor from '@licium/editor';
|
|
160
|
+
import colorSyntax from '@licium/editor-plugin-color-syntax';
|
|
158
161
|
|
|
159
162
|
const colorSyntaxOptions = {
|
|
160
163
|
preset: ['#181818', '#292929', '#393939']
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licium/editor-plugin-color-syntax",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "TOAST UI Editor : Color Syntax Plugin",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nhn",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/
|
|
27
|
+
"url": "https://github.com/natorus87/tui.editor.git",
|
|
28
28
|
"directory": "plugins/color-syntax"
|
|
29
29
|
},
|
|
30
30
|
"bugs": {
|
|
31
|
-
"url": "https://github.com/
|
|
31
|
+
"url": "https://github.com/natorus87/tui.editor/issues"
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://ui.toast.com",
|
|
34
34
|
"browserslist": "last 2 versions, not ie <= 10",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "b58c109f6aa92d5d14dae00fbfcf13d9699903e6"
|
|
55
55
|
}
|