craftcms / craftcms/ckeditor

How can I prevent line breaks?

Open
#341 5 comments 1 reaction 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

Hello,

I'm using the CKEditor in Craft 5. I'd like to prevent line-breaks/returns so I can have CKEditor fields with a single paragraph/heading but with a single text element. As a former user of Redactor, this was very easily achieved by adding a couple of lines to the config.

I have scoured the Internet for a response but I could not find one.

Please help!

Thanks.

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

This issue is a configuration question about preventing line breaks in CKEditor fields used with Craft 5. Start by checking the CKEditor and Craft 5 configuration documentation for paragraph and heading behavior; done means identifying a supported configuration or documenting that the requested single-text-element behavior is unavailable.

Written by the indexing model from the issue text.

Assessment

Domain
content, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.