feat(editor): add image support to scripts (paste, drop, file picker) #5
@ArunNGun Bumping this one as well. Let me know if you need any changes or if there are any blockers.
this looks good will merge after running an final build, thank you for your contribution
@ArunNGun
Thanks. I pushed 1b2febf to SankofaForge:pr/4-react-script-images. It fixes the order of multiple pasted or dropped images, replaces selected text when an image is pasted, and avoids updating an editor after it has been destroyed.
The combined PR #5 and PR #6 changes passed the tests, lint, frontend build, dependency audit, and full ARM64 Tauri build. The build produced .deb, .rpm, and AppImage bundles.
I recommend merging PR #6 first because both PRs touch the dependency files. After that, I can refresh PR #5 against main, regenerate its lockfile, and run the checks again.
@ArunNGun
hey, just reminding you that there's a pr here too to review and merge when you have the free time
@ArunNGun
> hey, just reminding you that there's a pr here too to review and merge when you have the free time
thank you for the contribution @Builder106 , merging it
ArunNGun
Builder106
Summary
Brings the script-image workflow to the v3.0.0 React/Tiptap editor. This supersedes #4, which was written against the pre-v3.0.0 vanilla-JS
frontend/renderereditor that no longer exists. Reimplemented as a first-class Tiptap image node rather than the old base64-in-textarea[[image:…]]marker hack.Changes
@tiptap/extension-image, pinned to3.22.3so it resolves the same@tiptap/coreas the rest of the Tiptap stack (a floating^3.22.3pullscore@3.26, which breaks@tiptap/react@3.22.3). The lockfile also picks up the staleversionfield fix (2.2.1→3.0.0) sincenpm installregenerates it.getText().trim()toeditor.isEmpty).imagetoken for image nodes so the read view sees them.imagetokens as<img class="read-image">in the scrolling teleprompter.Testing
npm run build:frontendpasses clean.getJSONpersists the image node) → read (tokenizer →<img>).Runtime verification inside the Tauri shell is recommended before merge.