craftcms / craftcms/ckeditor

<strong> tag removing spaces if in between tags

Open
#473 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
47
Forks
32
PR merge metrics
No merged PRs in 30d

Description

We're having issues with how tags are being outputted.

<strong>Hello World</strong> is showing the correct output of Hello World

But users are usually double clicking word for word to highlight and then select "Bold" resulting in
<strong>Hello</strong><strong>World</strong>

While in the editor is still has a space as "Hello World" but in the actual web page it shows "HelloWorld" it removes all spaces

Additional info
  • Craft version: 4.16.11
  • CKEditor version: 3.14.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in Craft 4.16.11 with CKEditor 3.14.0 by applying bold separately to adjacent words and comparing the editor content with the rendered page. Trace where adjacent strong tags are converted or rendered; done means the space between separately bolded words remains visible in the page output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.