Account created on 16 May 2024, 6 months ago
#

Recent comments

Previous patch not applying on the module. I created the same patch again.

I updated the code. It is more appropriate to handle the any type of exception.

Hi,
Please find the patch.
Few notes for developers:
- In the facets module they listen the event *facets_filter* using jquery we cannot trigger the event using javascript dispatch. We need to use the jQuery trigger function.

- In the facets module they are using the plainRender which stops drupalSettings to update. Line 159 file src/Controller/FacetBlockAjaxController.php

$block_view = (string) $this->renderer->renderPlain($block_view);

Hi,
Below lines of code($plugin_definition['ckeditor5']['config']['htmlSupport']['disallow'][] ) stripping the link and other attributes.

function anchor_link_ckeditor5_plugin_info_alter(array &$plugin_definitions): void {
  $plugins_to_override = [
    'ckeditor5_arbitraryHtmlSupport',
  ];
  foreach ($plugins_to_override as $plugin_id) {
    if (!isset($plugin_definitions[$plugin_id])) {
      return;
    }
    $plugin_definition = $plugin_definitions[$plugin_id]->toArray();
    // Make plugin-specific alterations. Disallow the General HTML Support
    // plugin from controlling links with the attributes handled by the
    // Anchor plugin.
    $plugin_definition['ckeditor5']['config']['htmlSupport']['disallow'][] = [
      'name' => 'a',
      'attributes' => [
        'id',
        'name',
      ],
      'classes' => [
        'ck-anchor',
      ],
    ];
    // Update plugin definitions.
    $plugin_definitions[$plugin_id] = new CKEditor5PluginDefinition($plugin_definition);
  }
}

Hello @SKAUGHT,

I tried to replicate the issue on my local but no luck. I used the Drupal core 11.x-dev branch and https://www.drupal.org/project/navigation latest version.

Production build 0.71.5 2024