Problem/Motivation

There are probably more places that would be possible to do this, but let's start with this simple case. To retain the visual styling, I added tag filtering to ones except the inline tags CKEditor is configured to support in XB. This is not beautiful exactly in terms of how the template should be done but for demo good enough IMHO.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Testimonial now supports formatting!

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gábor hojtsy created an issue. See original summary.

kristen pol’s picture

Title: Make testimonial field support limited HTML to demonstrate CKEDitor » Make testimonial field support limited HTML to demonstrate CKEditor

I see this is the correct information in the yml as noted here:

https://www.drupal.org/project/experience_builder/issues/3519135#comment...

I don't understand the striptags though... you are stripping out all the links and bold and such? Doesn't this defeat the purpose of the CKEditor area? Or maybe I haven't had enough caffeine yet

kristen pol’s picture

Status: Needs review » Reviewed & tested by the community

Oh... haha:

https://twig.symfony.com/doc/3.x/filters/striptags.html

You can also provide tags which should not be stripped:

{{ some_html|striptags('<br><p>') }}

That is not obvious DX :D

Okay... then this seems fine. I'll merge

kristen pol’s picture

Status: Reviewed & tested by the community » Fixed

The starshot-paragraph component is another good one where this could be added

kristen pol’s picture

kristen pol’s picture

Status: Fixed » Closed (fixed)

closing