ep_images_extended 1.0.6 → 1.0.51
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 +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +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
|
-

|
|
8
8
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
package/index.js
CHANGED
|
@@ -8,6 +8,7 @@ const url = require('url');
|
|
|
8
8
|
const fs = require('fs');
|
|
9
9
|
const fsp = fs.promises;
|
|
10
10
|
const { JSDOM } = require('jsdom');
|
|
11
|
+
const log4js = require('log4js');
|
|
11
12
|
const { exec } = require('child_process');
|
|
12
13
|
const util = require('util');
|
|
13
14
|
const execPromise = util.promisify(exec);
|
|
@@ -22,8 +23,7 @@ try {
|
|
|
22
23
|
console.warn('[ep_images_extended] AWS SDK not installed; s3_presigned storage will not work.');
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
const logger = console;
|
|
26
|
+
const logger = log4js.getLogger('ep_images_extended');
|
|
27
27
|
|
|
28
28
|
// Simple in-memory IP rate limiter
|
|
29
29
|
const _presignRateStore = new Map();
|
package/package.json
CHANGED