diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-14 17:01:04 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-14 17:01:04 +0100 |
| commit | 14a65b12e91543ad018af203f5e8d4c40137822a (patch) | |
| tree | 81ccc81d7f764bbcde7cf5e27153e3cc09d67f8b /CLAUDE.md | |
| parent | 672454e46caeb97a7fe3eef5db590d4b4722d668 (diff) | |
| download | themes-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>
Diffstat (limited to 'CLAUDE.md')
| -rw-r--r-- | CLAUDE.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 `•` 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 — |
