Allow more than one inline code per paragraph (#55) #57
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!57
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/55-inline-code-tool"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #55.
@editorjs/inline-coderefuses to wrap a selection whenever the selection's parent element already contains any<code>, so after the first inline code in a paragraph no other word could be formatted.src/richText/inlineCodeTool.ts: subclass of the upstream tool that overridessurroundonly. It now refuses to wrap only when the selection itself overlaps an existing inline code, which would nest them. Unwrapping still works as before.RichTextEditorloads this subclass instead of the package tool, still through a dynamic import (ADR-0005). The stored format (<code class="inline-code">) is unchanged.<code>elements on the guide page.Known, unchanged behaviour: a selection that partly covers an existing inline code is a no-op.
🤖 Generated with Claude Code