CKEditor auto wrapping HTML elements in p tags
Open
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
- Add a link in the ckeditor
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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