by
KK » Thu May 29, 2025 3:58 pm
Hi,
Suppose following are two elements on a page that have inline editing configured -
- Code: Select all
<h1 <cms:inline_edit 'title' /> >..</h1>
<div <cms:inline_edit 'body' /> >..</div>
On the rendered page you'll find (as you did) that the two elements show different toolbars.
That is because we did not specify within <cms:inline_edit> the type of toolbar we need and so it chose type 'default' -
this gives CKEditor a freehand in displaying whatever buttons it deems appropriate in the context of the element being edited.
Since H1 and DIV can be expected to need different sets of buttons, that is what you see.
You can override this behaviour by explicitly specifying the kind of toolbar you'd rather have by using the 'toolbar' param e.g. as follows ('small', 'basic', 'medium', 'full', 'custom' being the accepted values) -
- Code: Select all
<h1 <cms:inline_edit 'title' toolbar='full' /> >..</h1>
<div <cms:inline_edit 'body' toolbar='small' /> >..</div>
<div <cms:inline_edit 'body' toolbar='custom' custom_toolbar='bold, italic' /> >..</div>
More info at
https://docs.couchcms.com/tags-referenc ... ml#toolbarHope this answers your query.