@licium/editor-plugin-color-syntax 3.1.0 → 3.2.5
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 +3 -3
- package/LICENSE +0 -21
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.5",
|
|
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",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 NHN Cloud Corp.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|