@akilli/editor 5.1.0 → 5.1.1
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.
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akilli/editor",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "A HTML standards-compliant and dependency-free rich text editor",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contenteditable",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"lint:fix": "prettier --write '**/*.js'",
|
|
30
30
|
"build": "npm run build:clean && npm run build:font && npm run build:css && npm run build:js",
|
|
31
31
|
"build:clean": "rm -rf dist",
|
|
32
|
-
"build:font": "mkdir -p dist && cp
|
|
33
|
-
"build:css": "esbuild
|
|
34
|
-
"build:js": "esbuild
|
|
32
|
+
"build:font": "mkdir -p dist && cp build/editor.woff2 dist/editor.woff2",
|
|
33
|
+
"build:css": "esbuild build/editor.css --minify --outfile=dist/editor.css",
|
|
34
|
+
"build:js": "esbuild build/AkilliEditor.js --minify --bundle --outfile=dist/editor.js --target=es2022 --format=esm",
|
|
35
35
|
"release:patch": "npm ci && npm run lint:check && npm version patch && npm publish",
|
|
36
36
|
"release:minor": "npm ci && npm run lint:check && npm version minor && npm publish",
|
|
37
37
|
"release:major": "npm ci && npm run lint:check && npm version major && npm publish",
|
package/{README.md → readme.md}
RENAMED
|
@@ -10,13 +10,15 @@ https://akilli.github.io/editor/demo
|
|
|
10
10
|
|
|
11
11
|
## Development
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Use the editor [source version](build/AkilliEditor.js) directly or the bundled and minified
|
|
14
|
+
[dist version](dist/editor.js) of it. If you use the source version all changes in the code take effect immediately,
|
|
15
|
+
whereas the dist version needs to rebuild with
|
|
14
16
|
|
|
15
17
|
```
|
|
16
18
|
npm run build
|
|
17
19
|
```
|
|
18
20
|
|
|
19
|
-
|
|
21
|
+
The demo offers both versions and can be started with either
|
|
20
22
|
|
|
21
23
|
```
|
|
22
24
|
npm start
|
|
@@ -28,8 +30,7 @@ or
|
|
|
28
30
|
docker compose up -d
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
In both cases the demo is accessible at
|
|
32
|
-
http://localhost:20000/demo/index.html
|
|
33
|
+
In both cases the demo is accessible at http://localhost:20000/demo/index.html
|
|
33
34
|
|
|
34
35
|
## Info
|
|
35
36
|
|
|
@@ -79,8 +80,8 @@ wheter a row or a column currently is focused.
|
|
|
79
80
|
|
|
80
81
|
### `Backspace` key handling
|
|
81
82
|
|
|
82
|
-
Certain editable elements like p. e. paragraphs and headings remove themselves if they contain no text and the
|
|
83
|
-
`Backspace` key is pressed. Other (pseudo) elements like p. e. table rows and colums do the same.
|
|
83
|
+
Certain editable elements like p. e. paragraphs and headings remove themselves if they contain no text and the
|
|
84
|
+
`Backspace` key is pressed. Other (pseudo) elements like p. e. table rows and colums do the same.
|
|
84
85
|
|
|
85
86
|
### Sortable elements
|
|
86
87
|
|
|
@@ -108,7 +109,7 @@ class `left`, `center` or `right`. This is done by combining the `Shift` key wit
|
|
|
108
109
|
|
|
109
110
|
Each formatting command registers a keyboard shortcut in the form `Alt` + `Shift` + a letter. If you hover a formatbar
|
|
110
111
|
button for such a text-level element, the actual keyboard shortcut will be shown. Using such a shortcut will execute the
|
|
111
|
-
corresponding command.
|
|
112
|
+
corresponding command.
|
|
112
113
|
|
|
113
114
|
In addition to that, you can also doubleclick on a text-level element to execute the corresponding command.
|
|
114
115
|
|