Skip to content

feat: use the host WYSIWYG (tiptap) editor for notes - #48

Merged
gnacho merged 1 commit into
mainfrom
feat/47-wysiwyg-editor
Nov 9, 2026
Merged

gnacho merged 1 commit into
mainfrom
feat/47-wysiwyg-editor

Conversation

@gnacho

@gnacho gnacho commented Nov 9, 2026

Copy link
Copy Markdown
Owner

What

Replace the markdown <textarea> editor with the OpenCloud host editor (@opencloud-eu/web-pkg/editor, tiptap) so formatting is visible while editing.

The header modes now map to:

  • rich (Type) → WYSIWYG editing with the host toolbar (bold, italic, headings, lists, quote, code, tables, links, emoji, search/replace, zoom)
  • plain (AlignLeft) → markdown source mode
  • preview (Eye) → unchanged: the faithful markdown-it render with image proxying (signImages) and attachment (blob:) resolution

Notes

  • Content still round-trips as markdown, so Notes API v1.4 / Iotas compatibility and existing notes are preserved.
  • The attachment button (paperclip) is kept and inserts the markdown reference into the editor.
  • Images stay out of the WYSIWYG editor on purpose (they only render in Preview), matching the agreed scope.

Verification

  • vue-tsc --noEmit: clean
  • npm run build: clean, styles inlined in JS (no external CSS), editor loaded from the host share scope

Closes #47

Replace the markdown textarea and custom toolbar with the OpenCloud host
editor (@opencloud-eu/web-pkg/editor) so formatting is visible while
editing. The header modes now map to: rich = WYSIWYG, plain = markdown
source, preview = the existing faithful markdown-it render (images and
attachments keep resolving there).

Content still round-trips as markdown for the Notes API v1.4 / Iotas.
The attachment button inserts the markdown reference into the editor.

Closes #47
@gnacho
gnacho merged commit af30427 into main Nov 9, 2026
@gnacho
gnacho deleted the feat/47-wysiwyg-editor branch November 9, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WYSIWYG rich-text editing using the host tiptap editor

1 participant