Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

CKEditor auto wrapping HTML elements in p tags

Open
#392 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

bug
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"
Dominant language
PHP
Stars
47
Forks
32
Avg merge
3d 20h
Merged PRs (30d)
3

Getting set up

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.

More from craftcms/ckeditor

All issues in craftcms/ckeditor

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.