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

API to visually log ranges and positions #122

Open
oleq opened this issue Jun 21, 2021 · 0 comments
Open

API to visually log ranges and positions #122

oleq opened this issue Jun 21, 2021 · 0 comments

Comments

@oleq
Copy link
Member

oleq commented Jun 21, 2021

I think it would be pretty handy if there was an API such as CKEditorInspector.drawModelRange( ... ) (the name is just the first thing that popped into my head) that would draw the range/position in the model/view tree next to the selection. 

A lot of time I find myself struggling to understand some logic because I have to browse range/position properties manually. Seeing ranges and positions just there in the tree would be awesome. 

Also, they would naturally disappear on the next change event so probably the only sensible way of using them would mean immediately running the debugger. The question is how would it work with the inspector being built on top of React with its custom asynchronous rendering loop. Would it catch up?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant