@fluxfiles/ckeditor5 1.0.3 → 1.0.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 +3 -6
- package/dist/index.d.ts +2 -1
- package/package.json +20 -6
package/README.md
CHANGED
|
@@ -47,13 +47,13 @@ ClassicEditor.create(document.querySelector('#editor'), {
|
|
|
47
47
|
1. **Toolbar button** `fluxfiles` (command `fluxfiles`): opens the picker and inserts the
|
|
48
48
|
selection at the caret.
|
|
49
49
|
- Images become image elements with `src`, and `alt` from the file's alt text (file name if
|
|
50
|
-
none).
|
|
51
|
-
token) and the image plugin allows a `srcset` attribute, it is added too.
|
|
50
|
+
none). `img_srcset` is never inserted: its `/api/fm/img?token=` URLs expire.
|
|
52
51
|
- Other files become links with the metadata title (or file name) as text.
|
|
53
52
|
- With `multiple: true`, every selected file is inserted in order. Folders are skipped.
|
|
54
53
|
- Without the image plugin, images are inserted as links; without the link plugin, as plain text.
|
|
55
54
|
2. **Image insert dropdown**: when `ImageInsert` is loaded, the image toolbar's insert dropdown
|
|
56
|
-
offers FluxFiles next to "Insert image via URL". Turn it off with `imageInsert: false`.
|
|
55
|
+
offers FluxFiles next to "Insert image via URL". Turn it off with `imageInsert: false`. If you set
|
|
56
|
+
your own `image.insert.integrations`, add `'fluxfiles'` to it.
|
|
57
57
|
|
|
58
58
|
The main JWT is never put in a URL: the SDK hands it to the picker iframe with `postMessage`
|
|
59
59
|
and checks the iframe's origin on every message.
|
|
@@ -63,9 +63,6 @@ and checks the iframe's origin on every message.
|
|
|
63
63
|
> Use a **public** disk or a `public_url`. A preview-only selection (no embeddable URL, e.g. a
|
|
64
64
|
> watermark overlay with `allow_download=false`) is refused, as in the other editor plugins.
|
|
65
65
|
|
|
66
|
-
> CKEditor 5's image model has no `sizes` attribute and writes `sizes="100vw"` itself, so
|
|
67
|
-
> `img_sizes` is only used by a custom image plugin that registers one.
|
|
68
|
-
|
|
69
66
|
## Configuration (`config.fluxfiles`)
|
|
70
67
|
|
|
71
68
|
| Option | Type | Default | Description |
|
package/dist/index.d.ts
CHANGED
|
@@ -107,4 +107,5 @@ declare module '@ckeditor/ckeditor5-core' {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
export {
|
|
110
|
+
export { FluxFiles, FluxFilesCommand, FluxFiles as default, fileInfo, selectedFiles };
|
|
111
|
+
export type { FileInfo, FluxFilesConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxfiles/ckeditor5",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "CKEditor 5 plugin for FluxFiles",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -35,11 +35,13 @@
|
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"ckeditor5": "^49.1.0",
|
|
37
37
|
"jsdom": "^25.0.1",
|
|
38
|
-
"tsup": "^
|
|
38
|
+
"tsup": "^9.0.0",
|
|
39
39
|
"typescript": "^5.0.0",
|
|
40
|
-
"vitest": "^
|
|
40
|
+
"vitest": "^4.1.12"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public"
|
|
41
44
|
},
|
|
42
|
-
"publishConfig": { "access": "public" },
|
|
43
45
|
"author": "thai-pc",
|
|
44
46
|
"homepage": "https://github.com/thai-pc/fluxfiles#framework-adapters",
|
|
45
47
|
"repository": {
|
|
@@ -47,6 +49,18 @@
|
|
|
47
49
|
"url": "git+https://github.com/thai-pc/fluxfiles.git",
|
|
48
50
|
"directory": "packages/ckeditor5"
|
|
49
51
|
},
|
|
50
|
-
"bugs": {
|
|
51
|
-
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/thai-pc/fluxfiles/issues"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"fluxfiles",
|
|
57
|
+
"file-manager",
|
|
58
|
+
"ckeditor",
|
|
59
|
+
"ckeditor5",
|
|
60
|
+
"plugin",
|
|
61
|
+
"s3",
|
|
62
|
+
"r2",
|
|
63
|
+
"upload",
|
|
64
|
+
"media"
|
|
65
|
+
]
|
|
52
66
|
}
|