refac/enh: rich text input

This commit is contained in:
Timothy Jaeryang Baek
2025-07-18 15:58:06 +04:00
parent 032fa52190
commit c1c589d609
4 changed files with 211 additions and 151 deletions
@@ -139,7 +139,7 @@ export const Image = Node.create<ImageOptions>({
if (file) {
img.setAttribute('src', file.url || '');
} else {
img.setAttribute('src', node.attrs.src || '');
img.setAttribute('src', '/no-image.png');
}
} else {
img.setAttribute('src', node.attrs.src || '');
@@ -155,7 +155,7 @@ export const Image = Node.create<ImageOptions>({
if (file) {
img.setAttribute('src', file.url || '');
} else {
img.setAttribute('src', node.attrs.src || '');
img.setAttribute('src', '/no-image.png');
}
}
});