- Issue created by @abramm
- Merge request !100Issue #3529093: Missing filter condition in linkit.ckeditor5.yml β (Merged) created by abramm
- πΊπ¦Ukraine abramm Lutsk
Submitted the MR, attaching a patch for composer.
- πΊπΈUnited States mark_fullmer Tucson
Awesome. This makes a lot of sense. I was unaware of the `filter` attribute for CKEditor configuration.
However, this change appears to cause tests to fail, where they are not on 7.x (see https://git.drupalcode.org/project/linkit/-/pipelines/517840). Therefore, I'm setting this to "Needs work" to identify whether this filter is in fact interfering with the necessary elements that are allowed on the CKEditor-enabled text format, as indicated by the test output:
The current CKEditor 5 build requires the following elements and attributes: <br><code><br> <p> <* dir="ltr rtl" lang> <a href>The following elements are not supported: <a data-entity-type data-entity-uuid data-entity-substitution>',
- πΊπΈUnited States mark_fullmer Tucson
Okay, the issue with the tests in fact demonstrates the scope change introduced by adding
filter
! In other words, without explicitly enabling the Linkit text format filter, it is NOT loading the JS, which is what this change is designed to accomplish. I updated the tests. - π¦πΊAustralia jannakha Brisbane!
tested on D10.5
with the patch applied - if Linkit filter is not applied to editor, linkit.js is not loaded - as per fix.Note: D11.2 wouldn't load linkit.js even without the patch.
-
mark_fullmer β
committed 3121ec2e on 7.x authored by
abramm β
Issue #3529093: Missing filter condition in linkit.ckeditor5.yml
-
mark_fullmer β
committed 3121ec2e on 7.x authored by
abramm β
- π³π±Netherlands eelkeblok Netherlands π³π±
Sorry to bump a closed issue, but I think a new issue might be overkill. I just spent some time debugging why Linkit was no longer working on my site. Turns out, this issue is "to blame", because my input formats did not have the filter enabled; we were in fact relying on the filter being optional. Might it be an idea to add a snippet to the releases notes for 7.0.7 β stating as much? E.g. "Note: Any input filter where Linkit should work now must have the Linkit input filter enabled."
- πΊπΈUnited States mark_fullmer Tucson
Thanks for the suggestion, and sorry about the headache. Callout added to https://www.drupal.org/project/linkit/releases/7.0.7 β
Automatically closed - issue fixed for 2 weeks with no activity.