@fluxfiles/ckeditor4 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +5 -2
  2. package/package.json +12 -4
package/README.md CHANGED
@@ -5,7 +5,7 @@ Adds a **FluxFiles** toolbar button to CKEditor 4 for browsing and inserting fil
5
5
  ## Requirements
6
6
 
7
7
  - CKEditor 4
8
- - A running **FluxFiles core** server (the PHP backend / standalone app in `packages/core`). This plugin is only the editor button — it loads the FluxFiles SDK (`fluxfiles.js`) from that server and `endpoint` must point at it.
8
+ - A running **FluxFiles core** server (the PHP backend / standalone app in `packages/core`). This plugin is only the editor button: your page must load the FluxFiles SDK (`fluxfiles.js`, served by that server at `/fluxfiles.js`), and `endpoint` must point at that server.
9
9
 
10
10
  ## Installation
11
11
 
@@ -20,7 +20,7 @@ or copy the plugin folder into your CKEditor `plugins/` directory:
20
20
  ```
21
21
  ckeditor/plugins/fluxfiles/
22
22
  ├── plugin.js # readable source
23
- ├── plugin.min.js # minified (~1.3 KB) — use in production
23
+ ├── plugin.min.js # minified (~4.6 KB) — use in production
24
24
  └── README.md
25
25
  ```
26
26
 
@@ -80,6 +80,9 @@ The modal closes automatically after selection.
80
80
  | `theme` | string | `null` | Picker theme: `light` / `dark` / `auto` |
81
81
  | `multiple` | boolean | `false` | Allow multi-file selection |
82
82
  | `allowedTypes` | string[] | `null` | Extensions (`.pdf` or `pdf`) or MIME types / patterns (`image/*`, `application/pdf`). Shown only in picker mode: non-matching files are hidden and cannot be selected. UI convenience, not a security boundary (the token's `allowed_ext` claim is the server-side check) |
83
+ | `path` | string | `''` | Folder the picker opens in |
84
+ | `maxUploadMb` | number | `null` | Max size per uploaded file, MB |
85
+ | `maxFiles` | number | `null` | Max files per upload batch |
83
86
  | `imageDialog` | boolean | `true` | Inject the **Browse FluxFiles** button into the native Image dialog |
84
87
 
85
88
  **Files with no permanent URL.** Two cases:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxfiles/ckeditor4",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "CKEditor 4 plugin for FluxFiles",
5
5
  "license": "MIT",
6
6
  "main": "plugin.js",
@@ -16,8 +16,14 @@
16
16
  "build": "esbuild plugin.js --minify --legal-comments=none --outfile=plugin.min.js",
17
17
  "test": "vitest run"
18
18
  },
19
- "devDependencies": { "esbuild": "^0.28.0", "jsdom": "^25.0.1", "vitest": "^2.1.8" },
20
- "publishConfig": { "access": "public" },
19
+ "devDependencies": {
20
+ "esbuild": "^0.28.0",
21
+ "jsdom": "^25.0.1",
22
+ "vitest": "^4.1.12"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
21
27
  "author": "thai-pc",
22
28
  "homepage": "https://github.com/thai-pc/fluxfiles#framework-adapters",
23
29
  "repository": {
@@ -25,7 +31,9 @@
25
31
  "url": "git+https://github.com/thai-pc/fluxfiles.git",
26
32
  "directory": "packages/ckeditor4"
27
33
  },
28
- "bugs": { "url": "https://github.com/thai-pc/fluxfiles/issues" },
34
+ "bugs": {
35
+ "url": "https://github.com/thai-pc/fluxfiles/issues"
36
+ },
29
37
  "keywords": [
30
38
  "fluxfiles",
31
39
  "file-manager",