Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I properly disable the paragraph plugin? #17483

Open
rgpublic opened this issue Nov 18, 2024 · 1 comment
Open

How can I properly disable the paragraph plugin? #17483

rgpublic opened this issue Nov 18, 2024 · 1 comment
Labels
type:question This issue asks a question (how to...).

Comments

@rgpublic
Copy link

I'd like to create a normal editor with only a Bold and Italic button where the user can input just a single line of text / a single paragraph. The enter key should be disabled. Not more than one P tag should be allowed. (I only need a single line but it'd be okay if the content was enclosed in a single P tag though). I had some success with:

removePlugins=['Essentials'];
plugins=['Typing'];

I can now type and the Enter key is disabled. Great! But I'd also like to be able to copy and paste (and have undo capabilities) . But as soon as I add 'Clipboard' as a plugin, the enter key starts working again :-(

Why does the Clipboard plugin depend on Paragraphs? Is there any way around this? How can I configure CKEditor5 to only allow a single paragraph with working clipboard?

@rgpublic rgpublic added the type:question This issue asks a question (how to...). label Nov 18, 2024
@Witoso
Copy link
Member

Witoso commented Nov 22, 2024

I think #762 would need to be done before it works on an acceptable level. But I'm surprised Clipboard depends on Paragraph and I could find the connection quickly. @niegowski do you know?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question This issue asks a question (how to...).
Projects
None yet
Development

No branches or pull requests

2 participants