summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-06-14 17:01:04 +0100
committerLester Caine <lester@lsces.co.uk>2026-06-14 17:01:04 +0100
commit14a65b12e91543ad018af203f5e8d4c40137822a (patch)
tree81ccc81d7f764bbcde7cf5e27153e3cc09d67f8b
parent672454e46caeb97a7fe3eef5db590d4b4722d668 (diff)
downloadthemes-14a65b12e91543ad018af203f5e8d4c40137822a.tar.gz
themes-14a65b12e91543ad018af203f5e8d4c40137822a.tar.bz2
themes-14a65b12e91543ad018af203f5e8d4c40137822a.zip
Document {textarea}/CKEditor rules in Smarty notes
Key points: omit id (LIBERTY_TEXT_AREA default), no outer wrapper, default field name is 'edit', invokeServices required. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--CLAUDE.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/CLAUDE.md b/CLAUDE.md
index 2c86de5..5881ae0 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -38,6 +38,13 @@ conflicts. `themes/css/config.css` is the canonical source.
the submit control. Use `class="minifind"` alone on floaticon filter forms; never add `form-search`.
- `{strip}` removes whitespace between HTML tags; keep `&bull;` separators inside
valid `<li>` elements to avoid detachment
+- **`{textarea}` / CKEditor** — omit `id`; the plugin defaults to `LIBERTY_TEXT_AREA` which
+ is what CKEditor searches for. Passing a custom `id` breaks CKEditor attachment.
+ Do NOT wrap `{textarea}` in an outer `form-group`/`{formlabel}`/`{forminput}` — it
+ provides its own via `edit_textarea.tpl`. Pass `label="..."` directly to `{textarea}`.
+ Default field name is `edit`; PHP reads `$_POST['edit']`. Do not pass `name=` unless
+ you also change the PHP to match. PHP must call `invokeServices('content_edit_function')`
+ for CKEditor to load.
- Per-site footer scripts belong in `kernel/footer_inc.tpl`, NOT `kernel/footer.tpl`.
`footer_inc.tpl` is picked up by the `mAuxFiles` loop in `html.tpl` reliably.
`footer.tpl` as a theme override only loads if the active style matches exactly —