- Issue created by @pandurengan.jegadeesan
- 🇵🇱Poland salmonek
Hi pandurenganjegadeesan
Indeed that won't work on CKEditor 5 which is not rendered in an ifreame element.
In order to get editor content you can simply useeditor.getData();
function.
https://ckeditor.com/docs/ckeditor5/latest/installation/getting-started/...You can access
editor
object viaDrupal.CKEditor5Instances
- it is a Map object containing all instances active on current page.If there is a possibility that there are multiple instances of CKEditor 5 in single form you can iterate over Map elements and get value for each instance and also access source textarea element (which will have
data-drupal-selector
andname
attributes with which you can identify a field which is using current instance of CKEditor):
editor.sourceElement
- Status changed to Closed: works as designed
about 1 month ago 9:36am 7 October 2024