Commit 1decd8a
authored
[Blueprint Editor] Add multiline string editor modal (#2962)
Editing PHP code or SQL queries inside Blueprint JSON is painful because
newlines become `\n` escape sequences. This adds a modal editor that
lets you edit string values as actual multiline text with proper syntax
highlighting.
When your cursor is inside a string value, a floating "Multiline Edit"
toolbar appears above it. You can also press Cmd/Ctrl+E. The modal opens
with the string content unescaped and syntax-highlighted based on the
step type—PHP for `runPHP` steps, SQL for `runSQL`, and so on. If the
step type doesn't give enough context, it falls back to detecting the
language from the content itself (looking for `<?php`, SQL keywords,
HTML tags, or Markdown patterns). You can always override the detected
language with the dropdown.
https://github.com/user-attachments/assets/68231869-2f4b-4ac2-95f4-96711f73abc1
When you save, the content is escaped back to valid JSON and inserted
into the document.1 parent 39612a9 commit 1decd8a
File tree
12 files changed
+1209
-110
lines changed- packages/playground
- website/src/components
- blueprint-editor
- json-schema-editor
- site-manager/site-database-panel
- wordpress-builds/src/sqlite-database-integration
12 files changed
+1209
-110
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
0 commit comments