-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Requested by: @griffenedge via YakShaver.ai 🦬
cc: @griffenedge, @isaaclombardssw, @adamcogan, @Marxoz, @PothieuG, @Freego1783
Hi Team!
🟥 Watch the video (2 min 41 sec)
Pain
In Rules V3 (TinaCMS), rich text blocks behave incorrectly when content containing '=' characters (used for custom highlighting) is added, removed, or edited. The editor shows ghost '=' characters, duplicates entire blocks of content, breaks Markdown parsing (rendering content as code blocks), and can crash with a client-side exception ("Failed to execute 'removeChild' on 'Node'"). This appears to be caused by custom AST manipulation for '=' highlighting interfering with the standard editor flow.
Acceptance Criteria
- Editing rich text content that includes '=' characters does not duplicate content.
- Removing or re-adding '=' characters updates the editor state correctly with no ghost characters.
- Markdown parsing remains valid and does not degrade into unintended code blocks.
- The editor does not crash when '=' characters are added, removed, or toggled.
- No client-side exceptions (including removeChild errors) occur during rich text editing.
- If custom '=' highlighting cannot be made stable, it is disabled until a proper fix is implemented (e.g. in v4 or via TinaCMS).
Reproduce Steps
- Open Rules V3 (TinaCMS).
- Navigate to a page with rich text blocks (e.g. SSW Rules).
- Create a new rich text box.
- Paste content that includes '=' characters used for highlighting.
- Remove some '=' characters and then add them back.
- Observe ghost '=' characters, duplicated content, or broken Markdown rendering.
- Continue editing until the editor crashes with a client-side exception (removeChild error).
Screenshot
Figure: Equal-sign markup causes duplicated content in rich text blocks
Reactions are currently unavailable
