neiki-editor 2.4.0 → 2.5.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/README.md +11 -5
- package/dist/neiki-editor.css +10 -1
- package/dist/neiki-editor.js +686 -1
- package/dist/neiki-editor.min.css +1 -1
- package/dist/neiki-editor.min.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<img src="https://img.shields.io/badge/css-%23663399.svg?style=for-the-badge&logo=css&logoColor=white" alt="CSS">
|
|
12
12
|
<br>
|
|
13
13
|
<img src="https://img.shields.io/badge/License-MIT-2563EB?style=for-the-badge&logo=open-source-initiative&logoColor=white&labelColor=000F15&logoWidth=20" alt="License">
|
|
14
|
-
<img src="https://img.shields.io/badge/Version-2.
|
|
14
|
+
<img src="https://img.shields.io/badge/Version-2.5.0-2563EB?style=for-the-badge&logo=semantic-release&logoColor=white&labelColor=000F15&logoWidth=20" alt="Version">
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
Just one file — CSS is embedded automatically:
|
|
42
42
|
|
|
43
43
|
```html
|
|
44
|
-
<script src="https://cdn.jsdelivr.net/gh/neikiri/neiki-editor@2.
|
|
44
|
+
<script src="https://cdn.jsdelivr.net/gh/neikiri/neiki-editor@2.5.0/dist/neiki-editor.min.js"></script>
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
Or if you prefer loading CSS separately:
|
|
48
48
|
|
|
49
49
|
```html
|
|
50
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/neikiri/neiki-editor@2.
|
|
51
|
-
<script src="https://cdn.jsdelivr.net/gh/neikiri/neiki-editor@2.
|
|
50
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/neikiri/neiki-editor@2.5.0/dist/neiki-editor.css">
|
|
51
|
+
<script src="https://cdn.jsdelivr.net/gh/neikiri/neiki-editor@2.5.0/dist/neiki-editor.js"></script>
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
### Package Manager
|
|
@@ -137,7 +137,7 @@ const editor = new NeikiEditor('#editor', {
|
|
|
137
137
|
| `spellcheck` | `boolean` | `true` | Enable browser spellcheck |
|
|
138
138
|
| `readonly` | `boolean` | `false` | Make editor read-only |
|
|
139
139
|
| `theme` | `string` | `'light'` | `'light'` or `'dark'` |
|
|
140
|
-
| `language` | `string` | `'en'` | UI language
|
|
140
|
+
| `language` | `string` | `'en'` | UI language — `en`, `cs`, `zh`, `es`, `de`, `fr`, `pt`, `ja` |
|
|
141
141
|
| `translations` | `object\|null` | `null` | Custom translation keys (merged with built-in) |
|
|
142
142
|
| `toolbar` | `array` | *(see above)* | Toolbar button configuration |
|
|
143
143
|
| `onChange` | `function\|null` | `null` | Callback on content change |
|
|
@@ -263,6 +263,12 @@ Neiki Editor supports multiple UI languages. Built-in:
|
|
|
263
263
|
|
|
264
264
|
- **English** (`en`) — default
|
|
265
265
|
- **Czech** (`cs`)
|
|
266
|
+
- **Chinese** (`zh`)
|
|
267
|
+
- **Spanish** (`es`)
|
|
268
|
+
- **German** (`de`)
|
|
269
|
+
- **French** (`fr`)
|
|
270
|
+
- **Portuguese** (`pt`)
|
|
271
|
+
- **Japanese** (`ja`)
|
|
266
272
|
|
|
267
273
|
### Set language on init:
|
|
268
274
|
|
package/dist/neiki-editor.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NeikiEditor - Production-Ready WYSIWYG Rich Text Editor
|
|
3
3
|
* CSS Stylesheet
|
|
4
|
-
* Version: 2.
|
|
4
|
+
* Version: 2.5.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
/* ============================================
|
|
@@ -980,6 +980,15 @@
|
|
|
980
980
|
border-top: 1px solid var(--neiki-border-color);
|
|
981
981
|
}
|
|
982
982
|
|
|
983
|
+
.neiki-modal-footer .neiki-btn {
|
|
984
|
+
width: auto;
|
|
985
|
+
height: 38px;
|
|
986
|
+
padding: 0 16px;
|
|
987
|
+
font-size: 14px;
|
|
988
|
+
font-weight: 500;
|
|
989
|
+
border-radius: 6px;
|
|
990
|
+
}
|
|
991
|
+
|
|
983
992
|
/* Form Elements */
|
|
984
993
|
.neiki-form-group {
|
|
985
994
|
margin-bottom: 16px;
|