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

RichText: React tree instead of DOM tree #13838

Closed
wants to merge 1 commit into from
Closed

Conversation

ellatrix
Copy link
Member

Description

WIP!

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.

@gziolo gziolo added this to the 5.2 (Gutenberg) milestone Feb 13, 2019
@gziolo gziolo added [Status] In Progress Tracking issues with work in progress [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Enhancement A suggestion for improvement. labels Feb 13, 2019
@gziolo gziolo removed this from the 5.2 (Gutenberg) milestone Feb 13, 2019
@ellatrix
Copy link
Member Author

I'm running into issues when attempting this again. Most of the errors I get seem to be related to the fact that the DOM goes out of sync with React's virtual DOM, leaving React unable to reconcile for some reason.

react-dom.min.fa9ca8c8.js:117 DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

I'm going to close this PR for now, until I think of a way to do it better.

@ellatrix ellatrix closed this Mar 20, 2019
@ellatrix ellatrix deleted the try/react-tree-2 branch March 20, 2019 15:50
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 [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants