Skip to content

fix(ui): load CodeMirror placeholder addon on anon landing#64

Merged
ringo380 merged 1 commit into
mainfrom
fix/anon-cm-placeholder
May 14, 2026
Merged

fix(ui): load CodeMirror placeholder addon on anon landing#64
ringo380 merged 1 commit into
mainfrom
fix/anon-cm-placeholder

Conversation

@ringo380
Copy link
Copy Markdown
Owner

Followup to #63 — the editor rendered with no placeholder text because CodeMirror 5 silently ignores the placeholder: option unless addon/display/placeholder.min.js is loaded. One-line script include.

PR #63 wired CodeMirror into the anon page but the editor rendered empty
because CodeMirror 5 needs the `placeholder` addon for the `placeholder:`
option to take effect — without it the option is silently ignored.

Load `addon/display/placeholder.min.js` alongside the other CodeMirror
scripts so the SELECT example query renders in the editor body as a
light-gray hint, matching the prior textarea behaviour.
@ringo380 ringo380 merged commit 982cd5b into main May 14, 2026
@ringo380 ringo380 deleted the fix/anon-cm-placeholder branch May 14, 2026 04:42
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