- Issue created by @DamienMcKenna
- πΊπΈUnited States DamienMcKenna NH, USA
WIP, I'm stuck because of #3360216.
- Status changed to Needs review
over 1 year ago 11:35am 15 May 2023 - πΊπΈUnited States DamienMcKenna NH, USA
This works, though it takes a bit of finagling to make it work correctly due to #3360216.
- πΊπΈUnited States DamienMcKenna NH, USA
In order to make #3 work I had to manually modify the config file for the text format like this:
filter_html: id: filter_html provider: filter status: true weight: -48 settings: allowed_html: '<br> <p class="text-align-left text-align-center text-align-right text-align-justify"> <h2 class="text-align-left text-align-center text-align-right text-align-justify"> <h3 class="text-align-left text-align-center text-align-right text-align-justify"> <h4 class="text-align-left text-align-center text-align-right text-align-justify"> <h5 class="text-align-left text-align-center text-align-right text-align-justify"> <h6 class="text-align-left text-align-center text-align-right text-align-justify"> <strong> <em> <s> <sub> <sup> <blockquote> <a href data-entity-type data-entity-uuid data-entity-substitution> <ul> <ol reversed start> <li> <hr> <drupal-media data-entity-type data-entity-uuid alt data-caption data-align> <div class="page-break" style="page-break-after"> <span style="display">' filter_html_help: false filter_html_nofollow: false
The new bits are the DIV and SPAN items at the end.
It's worth noting that the plugin in #3 looks for
<div class="page-break"
rather than the full string provided by the Pagebreak plugin. - πΊπΈUnited States DamienMcKenna NH, USA
Now with the config file I forgot to add before. I also renamed the plugin to be more specific.
- Status changed to Needs work
5 months ago 11:50am 22 June 2024 - πΊπΈUnited States DamienMcKenna NH, USA
Moving to the CKEditor 5 Plugin Pack module.
The patch needs to be rerolled.
- Status changed to Needs review
5 months ago 11:52am 22 June 2024 - Status changed to Needs work
4 months ago 12:41pm 10 July 2024 - π΅π±Poland dolszewski
Hello @damienmckenna
In Drupal 10.3 I can't submit a Text Format form. I have an error:Error message 'node' is not a supported key. 'file' is not a supported key. 'media' is not a supported key. 'taxonomy_term' is not a supported key. 'user' is not a supported key.
Possible it is a similar case as in the shortcode module: https://www.drupal.org/project/shortcode/issues/3457731 π Unable to save text format config form in 10.3 Fixed
- Status changed to Needs review
4 months ago 5:23pm 10 July 2024 - πΊπΈUnited States DamienMcKenna NH, USA
Please open a new issue for the problem you're running into, it's a different problem to what this issue is focused on. Thank you.
- Status changed to Needs work
4 months ago 6:40am 11 July 2024 - π΅π±Poland dolszewski
@damienmckenna
I had that error when I applied your patch, so it is related to this issue.
On Drupal 10.2 I can save text format but on 10.3 it doesn't work. - Status changed to Needs review
4 months ago 10:48am 26 July 2024 - πΊπΈUnited States DamienMcKenna NH, USA
I worked out a fix for this - the config schema needed to use a "sequence", not a "mapping".
- Status changed to Closed: works as designed
3 months ago 8:17am 26 August 2024 We've decided not to include this change in the module as it seems to be quite use-case specific.
We'll be happy to reconsider in the future in case there would be more people requesting this feature.