ckeditor / ckeditor5-inspector

CKEditor 5 inspector.
https://ckeditor.com/ckeditor-5
Other
31 stars 6 forks source link

Add an option for inspecting DOM <=> Model/View #123

Open pomek opened 3 years ago

oleq commented 3 years ago

What would it look like?

magda-chrzescian commented 3 years ago

It should provide a possibility to quickly find the place in the editor, that is being watched in the inspector at the given moment, and vice versa. It would useful especially for long documents, where it is hard to "synchronize" the editor content with the inspector.

So the basic functionality would be:

Or maybe it would be enough to implement only the simpler of these solutions?

FYI @jacekbogdanski

pomek commented 3 years ago

I agree that looking for DOM elements based on our model/view can be annoying. CKEditor creates complex structures, and navigating into nested elements consumes some time. An option "Jump to DOM element" from model/view would be awesome.