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

Retrieving state (codes, text, formatting…) #1

Open
jdittrich opened this issue Nov 20, 2024 · 4 comments
Open

Retrieving state (codes, text, formatting…) #1

jdittrich opened this issue Nov 20, 2024 · 4 comments

Comments

@jdittrich
Copy link
Collaborator

I had a look at the code and wondered how to retrieve the state of the editor, i.e. the codes, the boundaries as well as the text and its formatting.

@jankapunkt
Copy link
Member

the codes and selections are managed independent from the editor (this is because they have to be accessed by many templates at once).

The reside in useCodes and useSelections were management of the data is done beyond templates.

They are retrieved and watched in the CodingEditor.vue file, where currently all selections are (very greedy) iterated and simply added to the highlight module, which under hood uses quill's formatText function.

If you want we can also to a video meeting to have a deeper exchange on the overall design and architecture.

@jankapunkt
Copy link
Member

One more note, acessing editor content is actually defined in the quill api: https://quilljs.com/docs/api#formatting

@jdittrich
Copy link
Collaborator Author

If you want we can also to a video meeting to have a deeper exchange on the overall design and architecture.

That would be great. Shall I write to the contact on your website?

@jankapunkt
Copy link
Member

You can contact me directly via

info [at] jankuester [dot] com

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

No branches or pull requests

2 participants