-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Short description of the issue
When a CKEditor field is used inside a Repeater field then in the template context of the Repeater you can successfully override settings such as label and description for the CKEditor field. However, you cannot override "rows", and if any other CKEditor settings have been enabled for template context (e.g. "toolbar") then you cannot override those either.
Not sure of the exact cause, but it seems that the CKEditor settings overrides are only retrieved when a repeater item is AJAX-opened and I think the JS config for the CKEditor field would need to be defined earlier than this, when Page Edit first loads.
Related forum topic: https://processwire.com/talk/topic/20771-different-ckeditor-toolbar-options-for-the-same-field-on-different-templates/?do=findComment&comment=189565
Steps to reproduce the issue
- Create a CKEditor field "body". Set the "rows" setting to 15.
- Create a Repeater field. Add the body field to the Repeater and override the rows setting in the Repeater context to 5.
- Create a template that uses the Repeater field, and a page that uses this template, and note that the height of the body field inside the Repeater is incorrectly set to an equivalent of 15 rows.
Setup/Environment
- ProcessWire version: 3.0.135