craftcms / ckeditor

Edit rich text content in Craft CMS using CKEditor.
https://plugins.craftcms.com/ckeditor
GNU General Public License v3.0
47 stars 24 forks source link

Add config attribute to field to help scope styles by assigned CKEditor configuration #284

Open webrgp opened 3 weeks ago

webrgp commented 3 weeks ago

I have a couple of CKEditor fields with different configurations. In order to be able to share common styles between editors while keeping the differences separated, it would be helpful if the field rendered a data attribute with the configuration in use, similar to data-type="craft\fields\PlainText", using the CKEditor config name.

I the project I am working on it has a matrix field with a couple of different CKEditor fields that could use this.

i-just commented 1 week ago

Hi, thanks for getting in touch! I raised a PR for this. You can find a bit more info in the PR’s description.