Skip to content

emojis in callouts causing freezing, and shortcode insertion issues#677

Open
twilark wants to merge 2 commits intoFlorianWoelki:mainfrom
twilark:main
Open

emojis in callouts causing freezing, and shortcode insertion issues#677
twilark wants to merge 2 commits intoFlorianWoelki:mainfrom
twilark:main

Conversation

@twilark
Copy link

@twilark twilark commented Jan 28, 2026

may need edits - these were done over a few late nights and with some AI help. fixes address these two issues (with minor tweaks to support):

  1. emojis in callouts led to DOM freezing
  2. sometimes selecting an emoji from the suggester caused the shortcode to be inserted within a previously-existing shortcode

twilark and others added 2 commits September 1, 2025 01:18
When multiple shortcodes exist on the same line, the autocomplete was
inserting text at the first occurrence instead of at the cursor position.
This was caused by using indexOf() which always returns the first match,
rather than using the already-calculated shortcodeStart position from
lastIndexOf().

This fix ensures autocomplete correctly replaces text at the cursor
position even when there are duplicate or similar shortcodes earlier
on the same line.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant