-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
BUGFIX: Fix ckeditor inline mode autoparagraph: false
#3532
Conversation
We now have to decide to still use this hack or adjust the CK plugin to fix this in the model.... |
Since there is still no native support for a inline ckeditor mode. ckeditor/ckeditor5#762 we will continue our hacky road ;) This fixes several issues: - Inserting text with newlines will now correctly insert soft breaks (br) - We use our own pseodo `<neos-inline-wrapper>` tag to avoid the issue of having to parse html with regex and doing it wrong #2918 i also added a test for some inline editing behavior. (Like that there are no outer span or p tags) But writing a tests for #2918 is currently impossible, as our tests currently dont use `https` which means we cant access the `navigator.clipboard` and test that ckeditor works correctly when content is pasted.
autoparagraph: false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as expected
We must also test this carefully with other ck plugins ^^ |
…HtmlUnclosedSpanTags
I just found a regression in 7.3 which doesn't appear in 8.3: This made no sense in my head, as the node type definition were exactly the same and i though the code base should have changed much and that we should both have ckeditor v16 installed. Turns out wrong. This 2020 update (Neos 5.2) https://github.com/neos/neos-ui/pull/2624/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R97-R106 - which supposedly updated ckeditor from 11/12 to 16 actually only changed the double declared dependencies in the root package json, but the "real" dependencies on the ckeditor-bindings package neos-ui/packages/neos-ui-ckeditor5-bindings/package.json Lines 13 to 24 in 14e1a0b
I will revert the "optional" Edit 2the issue I believe that this is not an issue, but we simply use "isLimit" wrong ^^.
So while it makes sense to not be able to set the heading like Also |
@@ -0,0 +1,21 @@ | |||
<html lang="en"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i added some manual tests, which can be used to test our ckeditor integration without a fully fledged neos
Fix bug in the case you had multiple paragraphs and a headline and switched to autoparagrahp: false
We actually dont need To enable inserting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Bug from #2018
Resolves: #2918
Since there is still no native support for a inline ckeditor mode. ckeditor/ckeditor5#762 we will continue our hacky road ;)
This fixes several issues:
<neos-inline-wrapper>
tag to avoid the issue of having to parse html with regex and doing it wrong Bug: Copy Paste Ckeditor Invalid HTML code in DB properties #2918i also added a test for some inline editing behavior. (Like that there are no outer span or p tags)
But writing a tests for #2918 is currently impossible, as our tests currently dont use
https
which means we cant access thenavigator.clipboard
and test that ckeditor works correctly when content is pasted. For that reasons you can use the new manual testing environment to check everything is working correctly.We remove the outer tags in the first place, so they are not included in the final html.
Without processing:
What I did
How I did it
How to verify it