You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(editor): add image paste-to-upload for markdown files
- Add ImageUploadManager service provider registry in core
- Add paste interceptor on editor-holder that detects image clipboard
content in markdown/gfm files and triggers upload flow
- Insert uploading placeholder with spinner SVG, replace with embed URL
- Show login dialog with image preview if not logged in
- Show upsell dialog if upload quota exceeded
- Add i18n strings for upload dialogs and messages
Copy file name to clipboardExpand all lines: src/nls/root/strings.js
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -394,6 +394,17 @@ define({
394
394
"AVAILABLE_IN_PRO_TITLE": "Available in Phoenix Pro",
395
395
"DEVICE_SIZE_LIMIT_MESSAGE": "Phoenix Pro lets you preview your page at the screen sizes defined in your CSS.",
396
396
"MD_EDIT_UPSELL_MESSAGE": "Write Markdown like a document. Phoenix handles the formatting so you can stay focused on writing.",
397
+
"IMAGE_UPLOADING": "Uploading",
398
+
"IMAGE_UPLOAD_FAILED": "Failed to upload image",
399
+
"IMAGE_UPLOAD_LOGIN_REQUIRED_TITLE": "Log in to Embed Image",
400
+
"IMAGE_UPLOAD_LOGIN_REQUIRED_MSG": "Log in to upload and embed images in your document.",
401
+
"IMAGE_UPLOAD_LOGIN_BTN": "Log In",
402
+
"IMAGE_UPLOAD_CONFIRM_TITLE": "Embed Image",
403
+
"IMAGE_UPLOAD_CONFIRM_MSG": "Upload this image so it's included directly in your file. It'll work on any computer — no broken images when you share or move markdown files.",
404
+
"IMAGE_UPLOAD_HOSTED_ON": "Images are hosted on user-cdn.phcode.site",
405
+
"IMAGE_UPLOAD_BTN": "Upload & Embed",
406
+
"IMAGE_UPLOAD_DONT_SHOW_AGAIN": "Always embed without asking",
407
+
"IMAGE_UPLOAD_LIMIT_TITLE": "Upload more images with Phoenix Pro",
"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.",
399
410
"IMAGE_SEARCH_LIMIT_MESSAGE_THROTTLE": "Image search is temporarily unavailable due to high demand.<br>Start a paid Phoenix Pro plan to remove trial limits and continue searching.",
0 commit comments