Skip to content

WYSIWYG rich-text editing using the host tiptap editor #47

Closed

Description

@gnacho

Problem

The editor's "Rich text" mode (Type icon) is not actually rich text: it renders the same raw markdown <textarea> as "Plain text". Formatting is applied by inserting markdown markers (**bold**), and the visual result is only visible in "Preview" (Eye). There is no way to see formatting (bold, italic, headings...) while editing.

Goal

Replace the textarea-based editor with the OpenCloud host editor (@opencloud-eu/web-pkg/editor, tiptap via useTextEditor({ contentType: 'markdown' }) + TextEditorProvider/TextEditorContent/TextEditorToolbar), so formatting is visible while editing.

Constraints / acceptance criteria

  • Bold/italic/strikethrough/headings/lists/quote/code/tables/links render visually while editing.
  • Content still round-trips as markdown (Notes API v1.4, Iotas compatibility). A note created with the old editor (markdown markers, attachment refs, raw HTML) must not be corrupted on load/save.
  • Preview mode (Eye), image proxying (signImages) and attachment resolution (blob:) keep working unchanged.
  • Attachments keep working: the paperclip button uploads and inserts the markdown reference.
  • The three header modes stay: "rich" = WYSIWYG, "plain" = markdown source, "preview" = faithful render.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions