@adminforth/rich-editor 1.6.2 → 1.6.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/build.log +2 -2
- package/custom/quillEditor.vue +2 -2
- package/dist/custom/quillEditor.vue +2 -2
- package/package.json +4 -2
package/build.log
CHANGED
|
@@ -10,5 +10,5 @@ custom/package.json
|
|
|
10
10
|
custom/quillEditor.vue
|
|
11
11
|
custom/tsconfig.json
|
|
12
12
|
|
|
13
|
-
sent 28,
|
|
14
|
-
total size is 28,
|
|
13
|
+
sent 28,587 bytes received 115 bytes 57,404.00 bytes/sec
|
|
14
|
+
total size is 28,164 speedup is 0.98
|
package/custom/quillEditor.vue
CHANGED
|
@@ -128,7 +128,7 @@ async function saveToServer(file: File) {
|
|
|
128
128
|
const originalFilename = file.name.split('.').slice(0, -1).join('.');
|
|
129
129
|
const originalExtension = file.name.split('.').pop();
|
|
130
130
|
// send fd to s3
|
|
131
|
-
const { uploadUrl, tagline, previewUrl,
|
|
131
|
+
const { uploadUrl, tagline, previewUrl, filePath, error } = await callAdminForthApi({
|
|
132
132
|
path: `/plugin/${props.meta.uploadPluginInstanceId}/get_file_upload_url`,
|
|
133
133
|
method: 'POST',
|
|
134
134
|
body: {
|
|
@@ -181,7 +181,7 @@ async function saveToServer(file: File) {
|
|
|
181
181
|
const range = quill.getSelection();
|
|
182
182
|
quill.insertEmbed(range.index, 'image', {
|
|
183
183
|
url: previewUrl,
|
|
184
|
-
s3Path:
|
|
184
|
+
s3Path: filePath,
|
|
185
185
|
alt: file.name
|
|
186
186
|
}, 'user');
|
|
187
187
|
|
|
@@ -128,7 +128,7 @@ async function saveToServer(file: File) {
|
|
|
128
128
|
const originalFilename = file.name.split('.').slice(0, -1).join('.');
|
|
129
129
|
const originalExtension = file.name.split('.').pop();
|
|
130
130
|
// send fd to s3
|
|
131
|
-
const { uploadUrl, tagline, previewUrl,
|
|
131
|
+
const { uploadUrl, tagline, previewUrl, filePath, error } = await callAdminForthApi({
|
|
132
132
|
path: `/plugin/${props.meta.uploadPluginInstanceId}/get_file_upload_url`,
|
|
133
133
|
method: 'POST',
|
|
134
134
|
body: {
|
|
@@ -181,7 +181,7 @@ async function saveToServer(file: File) {
|
|
|
181
181
|
const range = quill.getSelection();
|
|
182
182
|
quill.insertEmbed(range.index, 'image', {
|
|
183
183
|
url: previewUrl,
|
|
184
|
-
s3Path:
|
|
184
|
+
s3Path: filePath,
|
|
185
185
|
alt: file.name
|
|
186
186
|
}, 'user');
|
|
187
187
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/rich-editor",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "Rich editor plugin for adminforth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,9 +24,11 @@
|
|
|
24
24
|
"author": "devforth",
|
|
25
25
|
"license": "ISC",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"adminforth": "^2.4.0-next.238",
|
|
28
27
|
"cheerio": "^1.0.0"
|
|
29
28
|
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"adminforth": "^2.4.0-next.238"
|
|
31
|
+
},
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"@types/node": "^22.10.7",
|
|
32
34
|
"semantic-release": "^24.2.1",
|