@37signals/lexxy 0.1.11-beta → 0.1.12-beta
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/dist/lexxy.esm.js +4 -0
- package/package.json +1 -1
package/dist/lexxy.esm.js
CHANGED
|
@@ -493,6 +493,7 @@ class ActionTextAttachmentNode extends DecoratorNode {
|
|
|
493
493
|
conversion: () => ({
|
|
494
494
|
node: new ActionTextAttachmentNode({
|
|
495
495
|
src: img.getAttribute("src"),
|
|
496
|
+
caption: img.getAttribute("alt") || "",
|
|
496
497
|
contentType: "image/*",
|
|
497
498
|
width: img.getAttribute("width"),
|
|
498
499
|
height: img.getAttribute("height")
|
|
@@ -2449,6 +2450,9 @@ class Clipboard {
|
|
|
2449
2450
|
#handlePastedFiles(clipboardData) {
|
|
2450
2451
|
if (!this.editorElement.supportsAttachments) return
|
|
2451
2452
|
|
|
2453
|
+
const html = clipboardData.getData('text/html');
|
|
2454
|
+
if (html) return // Ignore if image copied from browser since we will load it as a remote image
|
|
2455
|
+
|
|
2452
2456
|
this.#preservingScrollPosition(() => {
|
|
2453
2457
|
for (const item of clipboardData.items) {
|
|
2454
2458
|
const file = item.getAsFile();
|