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

Whitespaces inside an inline object are not processed while loading editor data #17199

Closed
niegowski opened this issue Oct 2, 2024 · 0 comments · Fixed by #17197
Closed

Whitespaces inside an inline object are not processed while loading editor data #17199

niegowski opened this issue Oct 2, 2024 · 0 comments · Fixed by #17197
Assignees
Labels
type:bug This issue reports a buggy (incorrect) behavior.

Comments

@niegowski
Copy link
Contributor

niegowski commented Oct 2, 2024

📝 Provide detailed reproduction steps (if any)

  1. Add the following to some editor:
editor.model.schema.register( 'button', {
	allowWhere: '$text',
	isInline: true,
	allowChildren: [ '$text' ]
} );

editor.conversion.elementToElement( {
	model: 'button',
	view: 'button'
} );
  1. Load editor with:
<p>
	This is
	<button>
		a button
	</button>
	inside a paragraph.
</p>

✔️ Expected result

Model:
Screenshot 2024-10-02 at 10 33 22

❌ Actual result

Model:
Screenshot 2024-10-02 at 10 33 00

❓ Possible solution

📃 Other details

  • Browser: …
  • OS: …
  • First affected CKEditor version: …
  • Installed CKEditor plugins: …

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

@niegowski niegowski added the type:bug This issue reports a buggy (incorrect) behavior. label Oct 2, 2024
@niegowski niegowski self-assigned this Oct 2, 2024
@CKEditorBot CKEditorBot added this to the iteration 79 milestone Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants