ep_images_extended 1.0.1 → 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.
package/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  `ep_images_extended` builds on `ep_image_insert` and other image upload plugins.
5
5
  The main difference is that images are built as custom span structures using the CSS background image attribute. This bypasses the Content Collector which always requires images to be block-level styles (so they couldn't share the line with text). As a result, we can now type around images, which allows the creation of more interactive pad content. The plugin includes some other features like click + drag resize, image float, and cut/copy/delete through a context menu. It was designed for compatibility with my forthcoming tables plugin. It's a pretty heavyweight plugin (some would say overengineered), because I was prioritizing meeting functional requirements for my project. Etherpad wizards might have tips for optimization, it would surely be appreciated.
6
6
 
7
+ ![Demo](https://i.imgur.com/uTpL9Za.png)
7
8
  ---
8
9
 
9
10
  ## Installation
@@ -30,10 +31,13 @@ Create (or merge) an **`ep_images_extended`** block at the root of `settings.jso
30
31
 
31
32
  1. **Embedded Base-64** (default – zero config)
32
33
  ```jsonc
33
- "ep_images_extended": {
34
- "fileTypes": ["jpeg", "jpg", "png", "gif", "bmp", "webp"],
35
- "maxFileSize": 5000000
36
- }
34
+ "ep_images_extended": {
35
+ "storage": {
36
+ "type": "base64"
37
+ },
38
+ "fileTypes": ["jpeg", "jpg", "png", "gif", "bmp", "webp"],
39
+ "maxFileSize": 5000000
40
+ }
37
41
  ```
38
42
  Images are converted to data-URIs and live inside the pad. This has a pretty big performance impact.
39
43
 
@@ -58,22 +62,6 @@ Create (or merge) an **`ep_images_extended`** block at the root of `settings.jso
58
62
  * `AWS_SECRET_ACCESS_KEY`
59
63
  * `AWS_SESSION_TOKEN` (if using temporary credentials)
60
64
 
61
-
62
- ---
63
-
64
- ## Option reference – quick lookup
65
-
66
- ```text
67
- fileTypes ↠ Allowed extensions (array of strings)
68
- maxFileSize ↠ Maximum upload size in bytes
69
- storage.type ↠ "base64" | "s3_presigned"
70
- ├─ bucket ↠ S3 bucket name (s3_presigned only)
71
- ├─ region ↠ AWS region (s3_presigned only)
72
- ├─ publicURL ↠ CDN / CloudFront base URL (optional)
73
- └─ expires ↠ URL lifetime in seconds (optional)
74
- ```
75
- All other values are ignored.
76
-
77
65
  ---
78
66
 
79
67
  ## Contributing
package/ep.json CHANGED
@@ -23,7 +23,6 @@
23
23
  "expressConfigure": "ep_images_extended/index",
24
24
  "eejsBlock_editbarMenuLeft": "ep_images_extended/editbar",
25
25
  "loadSettings": "ep_images_extended/settings",
26
- "padRemove": "ep_images_extended/index",
27
26
  "collectContentPre": "ep_images_extended/static/js/contentCollection",
28
27
  "eejsBlock_styles": "ep_images_extended/index",
29
28
  "eejsBlock_timesliderStyles": "ep_images_extended/index",
package/locales/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "ep_image_insert.toolbar.image_upload.title": "Upload image",
3
- "ep_image_insert.error.title": "Error",
4
- "ep_image_insert.error.fileSize": "File is too large! Maximum allowed size is {{maxallowed}} MB.",
5
- "ep_image_insert.error.fileType": "Invalid file type!"
2
+ "ep_images_extended.toolbar.image_upload.title": "Upload image",
3
+ "ep_images_extended.error.title": "Error",
4
+ "ep_images_extended.error.fileSize": "File is too large! Maximum allowed size is {{maxallowed}} MB.",
5
+ "ep_images_extended.error.fileType": "Invalid file type!"
6
6
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_images_extended",
3
3
  "description": "Insert images inline with text, float them, resize them, and more.",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "author": {
6
6
  "name": "DCastelone",
7
7
  "email": "daniel.m.castelone@gmail.com",