-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
RichText: Format boundaries without DOM #13697
Merged
Merged
Conversation
This file contains 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
ellatrix
requested review from
aduth,
ajitbohra,
gziolo,
jorgefilipecosta,
nerrad,
noisysocks,
oandregal,
ntwb,
Soean and
talldan
as code owners
February 6, 2019 12:41
This was referenced Feb 18, 2019
youknowriad
pushed a commit
that referenced
this pull request
Mar 6, 2019
* Avoid flickering by setting boundary class when creating the DOM tree * Remove TinyMCE boundaries * Remove TinyMCE so it doesn't interfere with our boundaries * Fix failing unit tests * Only have one boundary class at a time * Remove filterString param * Build in own padding and boundary classes * Update styling * valueToFormat shouldn't create editable tree * Add zero with spaces around formatting * Remove old boundary compatibility code * Update dom diff, prevent browser selection overwrite on boundary * Update UI * Fix inserting format with shortcut * Add check * Remove nbsp inserted by TinyMCE from test * Do not mutate attirbutes object * Fix link e2e tests * WIP * WIP: try boundaries without DOM * Remove zero width space everywhere * Fix e2e tests * Clean up * Revert selection snapshots * Correctly remove dependencies * Add nested boundary test * Add backtick test * Fix annotation tests: they now have boundaries * Merge logic * Fix getActiveFormat test * Update some docs and dependencies * Fix block CSS * Return focus to editable after pressing format button * Update docs * Update changelogs * Add changelog headings * Remove obsolete onFocus class method from Editable * Restore :focus * Update TinyMCE mentions * Use Escape instead of mouse move * Update isHorizontalEdge comment * Add docs for fromFormat * Create test content manually
youknowriad
pushed a commit
that referenced
this pull request
Mar 6, 2019
* Avoid flickering by setting boundary class when creating the DOM tree * Remove TinyMCE boundaries * Remove TinyMCE so it doesn't interfere with our boundaries * Fix failing unit tests * Only have one boundary class at a time * Remove filterString param * Build in own padding and boundary classes * Update styling * valueToFormat shouldn't create editable tree * Add zero with spaces around formatting * Remove old boundary compatibility code * Update dom diff, prevent browser selection overwrite on boundary * Update UI * Fix inserting format with shortcut * Add check * Remove nbsp inserted by TinyMCE from test * Do not mutate attirbutes object * Fix link e2e tests * WIP * WIP: try boundaries without DOM * Remove zero width space everywhere * Fix e2e tests * Clean up * Revert selection snapshots * Correctly remove dependencies * Add nested boundary test * Add backtick test * Fix annotation tests: they now have boundaries * Merge logic * Fix getActiveFormat test * Update some docs and dependencies * Fix block CSS * Return focus to editable after pressing format button * Update docs * Update changelogs * Add changelog headings * Remove obsolete onFocus class method from Editable * Restore :focus * Update TinyMCE mentions * Use Escape instead of mouse move * Update isHorizontalEdge comment * Add docs for fromFormat * Create test content manually
This was referenced May 13, 2019
This was referenced Apr 30, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
[Feature] Rich Text
Related to the Rich Text component that allows developers to render a contenteditable
[Package] Rich text
/packages/rich-text
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.
Description
This PR adds boundary logic to the Rich Text package. Every format will now have boundaries, not just some registered element tags.
Fixes 10 known bugs: closes #13153, closes #12973, closes #12978, closes #11091, closes #11178, closes #11276, closes #12529, closes #11741, closes #11423, closes #11812.
How has this been tested?
Screenshots
Types of changes
Checklist: