Forum for discussing general topics related to Couch.
4 posts Page 1 of 1
Hi!
Why is there a different editing bar for on-page inline editing? I found at least 3 :D
3.png
3.png (45.89 KiB) Viewed 374 times

2.png
2.png (175.76 KiB) Viewed 374 times

1.png
1.png (412.04 KiB) Viewed 374 times
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#toolbar

Hope this answers your query.
I am sorry for my question, I have read 95 % of On Page Editing Docs, and this was in the last 5 % :D
Thank you for the answer!
Nothing to be sorry about :)
Please feel free to post about any doubts that you may have.
4 posts Page 1 of 1