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

TinyMCE per block: Handle focus as state instead of using imperative API #167

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

youknowriad
Copy link
Contributor

@youknowriad youknowriad commented Mar 2, 2017

This PR seeks to move focusing blocks as state instead of using an imperative API.

This is not complete, since focusing is only triggered when changing the focusedIndex or when using the start and end attribute. Inside a block, focus position changes are not tracked. Tracking these internal focus changes is not useful for now, and trying to implement it caused some bugs when merging/splitting blocks (we could revisit later)

Noting this change will be useful while implementing undo/redo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant