Visual text editor; Cards, FAQ and HTML blocks instead of HTML in text #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "visual-editor-blocks"
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?
Text blocks no longer carry hand-written HTML. Text is edited visually, and the layouts the evashafik site needed are now blocks of their own.
What changes
execCommandeditor and offers paragraph, H2, H3, bold, italic, strikethrough, link, bulleted and numbered lists, pull quote, divider line, clear formatting, undo and redo.packages/shared/src/richText.ts.#pricesjump to that block..prose-wellness: serif italic with a bar in the primary colour.Existing content
1793300000_text_blocks_visual_editor.jsturns them into HTML blocks that render exactly as before.Backup
backups/evashafik-enhanced.json(your latest export) is rebuilt with the new blocks:#prices,#buyand#bookare block anchors. The sessions hero's#booklink had lost its target when the price table was removed, so it now goes to the Shop block.Tested (local test stack)
<h2>…</h2><p>…<strong>…</strong>…</p><blockquote>…</blockquote>.svelte-checkshows 0 errors in both apps.Not the same
svelte-tiptap,@tiptap/extension-linkand@tiptap/extension-placeholderare still inapp-admin/package.jsonbut unused (StarterKit includes links). They can be removed separately.🤖 Generated with Claude Code
https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW