Skip to content

Commit 41a09c3

Browse files
committed
fix(editor): image upload dialog polish and paste interceptor cleanup
- Remove image border from embed/login preview dialogs (dark theme fix) - Use DOM paste listener instead of modifying ChangeHelper interceptor - Add IMAGE_UPLOAD_UNSUPPORTED_TYPE and IMAGE_UPLOAD_LIMIT_TITLE strings - Use uploading.svg placeholder during upload - Fix language check to include gfm
1 parent 82ba910 commit 41a09c3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/editor/EditorCommandHandlers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ define(function (require, exports, module) {
13521352
const loginHTML = `<div>
13531353
<p>${Strings.IMAGE_UPLOAD_LOGIN_REQUIRED_MSG}</p>
13541354
<div style="text-align: center;">
1355-
<img src="${previewURL}" style="max-width: 300px; max-height: 200px; border: 1px solid #ccc; border-radius: 4px; margin: 12px 0;" />
1355+
<img src="${previewURL}" style="max-width: 300px; max-height: 200px; border-radius: 4px; margin: 12px 0;" />
13561356
</div>
13571357
</div>`;
13581358
const dialog = Dialogs.showModalDialog(

src/nls/root/strings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ define({
404404
"IMAGE_UPLOAD_HOSTED_ON": "Images are hosted on user-cdn.phcode.site",
405405
"IMAGE_UPLOAD_BTN": "Upload & Embed",
406406
"IMAGE_UPLOAD_DONT_SHOW_AGAIN": "Always embed without asking",
407+
"IMAGE_UPLOAD_UNSUPPORTED_TYPE": "Unsupported image type: {0}",
407408
"IMAGE_UPLOAD_LIMIT_TITLE": "Upload more images with Phoenix Pro",
408409
"IMAGE_SEARCH_LIMIT_TITLE": "Image search limit reached",
409410
"IMAGE_SEARCH_LIMIT_MESSAGE": "You’ve used all {0} image searches for this month.<br>Start a paid Phoenix Pro plan to remove trial limits and continue searching.",

0 commit comments

Comments
 (0)