- πΊπΈUnited States rschwab
Is it possible this is still broken in 2023? I'm using what seems to be a pretty straightforward configuration of CKeditor link with the entity embed. Adding a link to a drupal-media tag doesn't work, the link is placed above the media in the html. Am I doing something wrong or is this really still not working?
- π¦πΊAustralia acbramley
@rschwab are you using CKE5? It seems to no longer work with that :(
- πΊπΈUnited States daniel korte Brooklyn, NY
Backwards compatibility patch for 8.x-1.5
- π³π±Netherlands spadxiii
Found a small bug where it would set an error on the values array from the form_state; fixed it by pointing the error to the form field instead
old:
$form_state->setError($entity_element, $this->t('Link to is deprecated. Remove its value and use WYSIWYG Link button functionality over embedded entity.'));
new:
$form_state->setError($form['attributes']['data-entity-embed-display-settings']['link_url'], $this->t('Link to is deprecated. Remove its value and use WYSIWYG Link button functionality over embedded entity.'));