Repository navigation
Rich Text: Remove NewBlock event handling - #7617
Merged
Merged
Conversation
aduth
force-pushed
the
remove/rich-text-new-block
branch
from
June 28, 2018 19:16
4662692 to
713ffc5
Compare
Member
|
Nice. I thought this was used by the quote block but it doesn't appears so now... I think the block could be split on double enter to escape the quote, much like how you describe the list block. Doesn't work in master atm, and there's no e2e test. |
ellatrix
approved these changes
Jul 9, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request seeks to remove the
NewBlockevent handling from theRichTextcomponent. The function neither has DocBlock nor is publicly documented in the RichText documentation, so I was unable to determine its reason for being. Prompting justification on its introduction in #409 (comment) was further unsuccessful in determining that it needs to exist. We currently have no core components which are bothmultiline="p"and have anonSplitfunction passed to itsRichText, so it appears to be unreachable. Per its introduction in #409, it may have been useful for when the text block could allow enter presses and a second press responsible for creating the split block.Based on explorations in #7583, we may want to leverage TinyMCE's
NewBlockevent, but I believe we should do so consistent for all splitting behavior. In the meantime, it should be removed.Testing instructions:
Verify there are no regressions for block splitting, namely:
There should be end-to-end tests for this. See also #6467.