- Issue created by @webengr
- First commit to issue fork.
- Status changed to Needs review
over 1 year ago 3:07pm 19 March 2023 - 🇮🇳India Ranjit1032002
Created a patch for Drupal 10 compatibility, please review.
Thank You. - 🇮🇳India hardikpandya
With Drupal 10 here and reduced support for Drupal 8 going forward, I feel the info file should reflect the same. I have updated the
core_version_requirement
accordingly. Attached is the interdiff. - 🇬🇧United Kingdom marcelovani London
Thanks for the patches, but we are blocked by #3272732 https://www.drupal.org/project/entity_embed/issues/3272732 ✨ Drupal 10 & CKEditor 5 readiness Fixed
-
marcelovani →
committed 5bc1d3a8 on 8.x-1.x
Issue #3348890 by Ranjit1032002, hardikpandya, webengr, marcelovani:...
-
marcelovani →
committed 5bc1d3a8 on 8.x-1.x
- Status changed to Needs work
over 1 year ago 1:06pm 25 March 2023 - Status changed to Needs review
over 1 year ago 8:25am 27 March 2023 - 🇮🇳India urvashi_vora Madhya Pradesh, India
For Drupal 10 and CKEditor5 compatibility:
We could try the following steps:
1. In the paragraphs_inline_entity_form.module file, replace the following code:function paragraphs_inline_entity_form_editor_settings_alter(array &$settings) { $settings['drupal']['paragraphs']['drupalSettings']['editor']['autoEmbed_media_external']['enabled'] = FALSE; }
With
use Drupal\editor\Entity\Editor; function paragraphs_inline_entity_form_editor_settings_alter(array &$settings, Editor $editor) { if ($editor->getFilterFormat()->filters('filter_html')) { $settings['drupal']['paragraphs']['drupalSettings']['editor']['autoEmbed_media_external']['enabled'] = FALSE; } }
2. In the composer.json file, add the following line to require the CKEditor5 package:
"ckeditor/ckeditor5": "^27.1.0"
3. Run composer update to install the CKEditor5 package.
4. In the paragraphs_inline_entity_form.libraries.yml file, replace the following code:
ckeditor: remote: https://cdn.ckeditor.com/4.7.3/full-all/ckeditor.js minified: true ...
with
ckeditor5: remote: https://cdn.ckeditor.com/ckeditor5/29.0.0/classic/ckeditor.js minified: true ...
5. Clear Drupal's cache to make sure the changes take effect.
This patch will update the Paragraphs Inline Entity Form module to use CKEditor5, making it compatible with Drupal 10. It also includes an update to the paragraphs_inline_entity_form_editor_settings_alter function to check whether the current filter format allows HTML tags before disabling the auto-embedding of external media.
- Status changed to Needs work
over 1 year ago 9:13am 27 March 2023 - Assigned to shivam_tiwari
- @shivam_tiwari opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:17pm 10 April 2023 - 🇬🇧United Kingdom marcelovani London
@shivam_tiwari Thanks for the work on this, it will require some testing to validate the approach. Meanwhile, can you please rebase and update the pull request?
- 🇮🇳India shivam_tiwari
@marcelovani I am not getting any changes here after rebase. Please check and let me know if anything.
- 🇬🇧United Kingdom marcelovani London
If you go to https://git.drupalcode.org/project/paragraphs_inline_entity_form/-/merge... you will see the messages
Try to resolve on Gitlab itself by clicking the link on the message - First commit to issue fork.
- @mortona2k opened merge request.
- Status changed to Needs work
over 1 year ago 4:55am 28 June 2023 - 🇦🇺Australia darvanen Sydney, Australia
Neither of these branches seem to contain a CKEditor 5 plugin. It install on Drupal 10 fine but CKEditor 5 compatibility is not ready yet.
- 🇺🇸United States mortona2k Seattle
I didn't dig too deep, but I suspect the plugin will need a rewrite to be compatible with cke5.
- Status changed to Needs review
about 1 year ago 12:53am 18 August 2023 - 🇦🇺Australia darvanen Sydney, Australia
This module does work with a cocktail of patches on its dependencies, but if you're hoping to insert entities in-text like our use-case you'll be blocked by the new `entity_embed` widget which only injects entities at the block level, between
elements, not inside them.
That said, as far this module is concerned, I'd say it passes manual testing.
Let's hope this module is updated because for now I can only use the following module https://www.drupal.org/project/paragraphs_entity_embed → although it has its limitations
- 🇺🇸United States DamienMcKenna NH, USA
Would it be worth splitting the ckeditor 5 integration from the Drupal 10 compatibility? If nothing else it'd make the pieces easier to test on their own.
- 🇺🇸United States DamienMcKenna NH, USA
Also, if the changes for API compatibility mean that it's no longer compatible with DRupal 8, the info file should be updated to note this.
- 🇬🇧United Kingdom marcelovani London
This project is very simple, it basically provides a custom Entity embed form that works as a glue to embed Paragraphs.
It depends on https://www.drupal.org/project/entity_embed/issues/3272732 ✨ Drupal 10 & CKEditor 5 readiness Fixed , that depends on https://www.drupal.org/project/embed/issues/3309747 📌 Add CKEditor 5 compatibility and keep supporting CKEditor 4 RTBC
Looks like these two issues are getting close to be resolved, but we are not there yet.
- 🇬🇧United Kingdom marcelovani London
Looks like the dependencies have been fixed, I will try to allocate some time to check this.
- Assigned to marcelovani
- Status changed to Needs work
about 1 year ago 10:07am 27 October 2023 - 🇬🇧United Kingdom marcelovani London
Attaching WIP PR https://git.drupalcode.org/project/paragraphs_inline_entity_form/-/merge...
Currently blocked by https://www.drupal.org/project/entity_embed/issues/3396133 🐛 Ckeditor 5 Interface not loading on text formats using entity embed Active - 🇺🇸United States lexfunk
Thank you everyone who has been contributing to this and all the related issues.
- https://www.drupal.org/project/entity_embed/issues/3396133 🐛 Ckeditor 5 Interface not loading on text formats using entity embed Active was fixed!
- I have installed the latest version of entity_embed →
- I applied the patches from #32 ✨ Drupal 10 and CKEditor5 compatibility Needs work WIP PR
- I enabled and configured CKEditor 5 for one of my text formats.
- This all seems to be working without any errors on Drupal 9.5.10, I will report back when I update to Drupal 10
-
marcelovani →
committed 856acbb9 on 3348890-drupal10-ckeditor5
Issue #3348890: Updated dependencies.
-
marcelovani →
committed 856acbb9 on 3348890-drupal10-ckeditor5
-
marcelovani →
committed 856acbb9 on 8.x-1.x
Issue #3348890: Updated dependencies.
-
marcelovani →
committed 856acbb9 on 8.x-1.x
-
marcelovani →
committed 8f9a2bda on 8.x-1.x
Issue #3348890: Updating assets.
-
marcelovani →
committed 8f9a2bda on 8.x-1.x
-
marcelovani →
committed 6ca7970e on 8.x-1.x
Issue #3348890: Deleting un-needed files.
-
marcelovani →
committed 6ca7970e on 8.x-1.x
-
marcelovani →
committed 77d9380d on 8.x-1.x
Issue #3348890: Drupal 10 and CKEditor5 compatibility.
-
marcelovani →
committed 77d9380d on 8.x-1.x
- 🇬🇧United Kingdom marcelovani London
Thanks for checking @lexfunk and everyone that commented and tested this. I have just merged the PR https://git.drupalcode.org/project/paragraphs_inline_entity_form/-/merge...
I will make a new release shortly. - Issue was unassigned.
- Status changed to Fixed
about 1 year ago 11:01am 7 November 2023 -
marcelovani →
committed 856acbb9 on 3040507-add-tests
Issue #3348890: Updated dependencies.
-
marcelovani →
committed 856acbb9 on 3040507-add-tests
- 🇬🇧United Kingdom marcelovani London
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Needs work
12 months ago 2:06am 22 November 2023 - 🇬🇧United Kingdom marcelovani London
Reopened to merge parts of https://git.drupalcode.org/project/paragraphs_inline_entity_form/-/merge...
- 🇬🇧United Kingdom marcelovani London
I partially merged this PR in https://git.drupalcode.org/project/paragraphs_inline_entity_form/-/commi... as the PR was not mergeable.
- Status changed to Fixed
12 months ago 2:18am 22 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.