craftcms / craftcms/ckeditor

CKEditor auto wrapping HTML elements in p tags

Open
#392 3 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

Description

When adding a tags ckeditor is auto wrapping with p tags, the config 'autoParagraph: false' does not seem to work

Steps to reproduce
  1. Add a link in the ckeditor
  2. Edit source and see the wrapping p tag
Additional info
  • Craft version: 5.6.11 PRO
  • PHP version: 8.2.27
  • Database driver & version: MariaDB 10.6.21
  • Plugins & versions: "craftcms/ckeditor": "4.6.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 by adding a link in CKEditor and inspecting the source output, using the reported Craft, PHP, database, and craftcms/ckeditor versions as a reference. No file or test is named, so first locate the plugin's handling of the autoParagraph setting; done means the configured link output no longer gains an unexpected p wrapper.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, php
Domain
content
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.