CKEditor5 FullHTML and HTMLComment plugins are not working together.

Created on 23 October 2024, 2 months ago

I am using Drupal 10.2.6 with CKEdtior5.

With some content that existed when using CKEdtior4 and contained the tag in the body, when switching to CKEdtior5 the tag was removed, I solved this problem by enabling the FullPage Plugin. With some content containing HTML Comment content, before enabling the FullPage plugin, I found it still worked normally, I know HTML Comment is working from issue https://www.drupal.org/project/drupal/issues/3342874 [upstream] Allow inline HTML comments in ckeditor5 Postponed , the HTML Comment was still preserved, but after enabling FullPage, HTML Comment content will be removed. Recently I created a content that contained both tags and HTML Comments in the body. After saving, all tags and HTML were removed.
I have created a custom plugin and use FullPage and HtmlComment at the same time, but it seems that these 2 Plugins are not working together.

custom_allow_empty_tag_class:
  ckeditor5:
    plugins:
      - custom.AllowedEmptyTagClass
      - htmlSupport.FullPage // Enable FullPage plugin
      - htmlSupport.HtmlComment // Try to enable HtmlComment, but it seems to be already enabled.
  drupal:
    label: Allowed Empty Tag Class
    library: custom/allowed_empty_tag_class.ckeditor5
    elements: false

I am at a loss for a solution and can't find any related issues, if you have a solution or related issue, it would be greatly appreciated to let me know.

💬 Support request
Status

Active

Version

10.2

Component

ckeditor5.module

Created by

🇻🇳Vietnam ducviethaboo Ha Noi

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024