Skip to content

[Bug] md/ocnote bugs in collaboration (mentions, paste, selection, source view, copy, outline) in 8.1.0 #4052

Closed

Description

@suse-coder

Describe the bug

The new realtime collaboration Markdown/ocNote editor (OpenCloud 8.1.0) has several usability bugs:

  1. @ mentions only work for individual users. Keycloak groups are not mentionable (@group / members of a group).
  2. Pasting Markdown into ocNote does not convert MD syntax into the rich UI. The same paste does auto-render for .md files.
  3. Text selection is lost when another user makes an update. Selection inside tables is also unreliable.
  4. The Markdown source view of an .md file is read-only. Direct copy/paste of Markdown into that view should be possible.
  5. Copy currently copies Markdown syntax instead of raw/plain text. Pasting that into a table cell leaves a greyed-out artifact that cannot be removed, is not visible in the source view, and cannot be undone.
  6. The outline / table of contents does not persist its expanded (uncollapsed) state across reloads, logins, or next views of MD files.

Steps to reproduce

Bug 1 – Mentions only for users, not Keycloak groups

  1. Open a Markdown/ocNote document in realtime collaboration.
  2. Type @ and try to mention a user.
  3. Try to mention a Keycloak group (e.g. /Group) or all members via @group.

Bug 2 – Pasting Markdown does not render in ocNote (works for .md files)

  1. Copy Markdown-formatted text (e.g. **bold**, # Heading) from an external source.
  2. Paste it into an ocNote document.
  3. It is inserted as plain text instead of being parsed into rich formatting.
  4. Repeat the same paste into a .md file: the Markdown syntax is automatically converted to the rich UI.

Bug 3 – Selection lost on collaborative updates

  1. Open a document with another user editing at the same time.
  2. Select text (including inside a table).
  3. Have the other user make an edit.
  4. Observe that the selection disappears. Table selection is also unreliable.

Bug 4 – Markdown source view is read-only

  1. Open a Markdown file.
  2. Switch to the Markdown source view.
  3. Try to type or paste Markdown into that view.

Bug 5 – Copy includes Markdown syntax and corrupts table cells

  1. Select and copy formatted text in the editor.
  2. Paste it into a table cell.
  3. The cell becomes greyed out / stuck (hidden Markdown syntax, not visible in UI or source view).
  4. Undo / remove does not work.

Bug 6 – Outline expanded state is not persisted

  1. Open a Markdown document.
  2. Expand (uncollapse) the outline / table of contents.
  3. Close the document, log out, or open another MD file, then come back.
  4. The outline is collapsed again.

Expected behavior

  • @ mentions work for individual users and Keycloak groups (@user for members and @group for the full group).
  • Pasted Markdown is automatically converted to the rich UI in ocNote as well (same behavior as for .md files).
  • Selections (including inside tables) survive concurrent edits from other users.
  • The Markdown source view is editable so Markdown can be pasted/typed directly.
  • Copy produces raw/plain text by default (Markdown paste conversion can still work). No leftover greyed-out artifacts in table cells; undo works.
  • Outline / ToC expanded state is stored as a preference and kept across logins and MD file views (always fully visible, no extra click).

Actual behavior

  • Only individual users can be mentioned with @; groups from Keycloak are not available.
  • Pasted Markdown auto-renders only in .md files. In ocNote it is inserted as unformatted plain text.
  • Any update from another collaborator clears the current selection, including inside tables.
  • Markdown source view is read-only.
  • Copy carries Markdown syntax. Paste into a table cell produces a greyed-out, stuck cell that cannot be cleared or undone and is not visible in source view.
  • Outline always reverts to collapsed on reload/reopen.

Setup

OpenCloud version: 8.1.0 (latest)
Identity provider: Keycloak (users and groups synced from Keycloak)
Realtime Markdown / ocNote editor.

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

Details

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

All issues occur in the new realtime collaboration Markdown/ocNote editor.

Activity

  1. micbar commented on Oct 9, 2026

    @micbar
    Member

    1 is not a bug.

    You can only mention people which have been invited to that document already.

    Mentioning: point somebody to that document that has access to it

    Sharing: give somebody access to a document.

    @JammingBen could you answer the other ones?

  2. suse-coder commented on Oct 9, 2026

    @suse-coder
    Author

    2. 1 is not a bug.
    You can only mention people which have been invited to that document already.
    Mentioning: point somebody to that document that has access to it
    Sharing: give somebody access to a document.
    @JammingBen could you answer the other ones?

    but when I have /Department from Keycloak invited to the space all these can see the md, would it not be great if also I can each individual (+ the group) ping with @?

  3. JammingBen commented on Oct 9, 2026

    @JammingBen
    Member

    3 & 5 I'd consider as bugs also. See #3969 for 5.

    1 & 2 are IMO feature requests.

    Bug 4 – Markdown source view is read-only

    This is no bug but a limitation due to yjs. Instances without yjs enabled should not have it. With yjs, there is no way around that.

    Bug 6 – Outline expanded state is not persisted

    I'd say this is expected behavior. @tbsbdr what do you think?

  4. suse-coder commented on Oct 9, 2026

    @suse-coder
    Author

    4. > Bug 4 – Markdown source view is read-only

    This is no bug but a limitation due to yjs. Instances without yjs enabled should not have it. With yjs, there is no way around that.
    

    the problem I face is that I want to copy raw text (and not markdown), for example to paste it to somewhere else (currently i always get markdown). But on the other side I want to copy markdown (which i could with the read only view), what is fine.

  5. suse-coder commented on Oct 28, 2026

    @suse-coder
    Author

    I am fine for copy the markdown just from the source tab, pasting markdown should automatically convert into rendered ui, copy from text inside tables or else should be raw (so i can copy it elsewhere - and be correctly conserving the formatting like returns).
    How to solve it if i want to copy paste a table so it is again in markdown rendered correctly I dont know how to solve that.

  6. JammingBen commented on Oct 28, 2026

    @JammingBen
    Member

    How to solve it if i want to copy paste a table so it is again in markdown rendered correctly I dont know how to solve that.

    Do you want to copy a table from an external md source into the OpenCloud editor, or vice versa? I just tried copying tables between the OpenCloud editor and Obsidian, both directions work fine for me.

  7. suse-coder commented on Nov 5, 2026

    @suse-coder
    Author

    Please also check the following: copy a table, select and copy paste a row, copy paste a column, select and copy and paste one item in a table cell to another one. Was not reliable working in current version.

  8. JammingBen commented on Nov 5, 2026

    @JammingBen
    Member

    12. Please also check the following: copy a table, select and copy paste a row, copy paste a column, select and copy and paste one item in a table cell to another one. Was not reliable working in current version.

    This will be fixed in #4271.

    I'm closing this issue, since I think we addressed all the points: For 1. we have #4031, 2. is expected (for now, we will re-visit the notes format after the upcoming production release and bring it to production level standards), 3. seems fixed, 4. + 6. are known limitations, 5. is fixed via #4271.

  9. moved this from Qualification to Done in OpenCloud Team Boardon Nov 5, 2026
  10. tbsbdr commented on Nov 5, 2026

    @tbsbdr
    Member

    6. > Bug 6 – Outline expanded state is not persisted

    known limitation. in an ideal world the ui should remember the state, i guess serverside user preferences is what we'd like to have for that

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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions