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

Add a span inside of div when backspacing to previous line. #1482

Merged
merged 3 commits into from
Jan 5, 2023

Conversation

BryanValverdeU
Copy link
Contributor

Add a span inside of div when backspacing to previous line, in order to keep the default format in the State

@BryanValverdeU BryanValverdeU marked this pull request as ready for review January 5, 2023 16:51
this.editor?.runAsync(editor => {
const position = editor.getFocusedPosition();
if (position && block == position.element) {
editor.ensureTypeInContainer(position, event.rawEvent);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If user changed to another format, will this go back to default format?

Copy link
Contributor Author

@BryanValverdeU BryanValverdeU Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it will go back to default format, that seem to be the same behavior when the Experimental Feature is OFF.
Only when we do backspace after 2 Enters

@BryanValverdeU BryanValverdeU merged commit 1b03fe8 into master Jan 5, 2023
@JiuqingSong JiuqingSong deleted the u/bvalverde/spanOnBckspc branch September 8, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants