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

277 lexical editor #24

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

277 lexical editor #24

wants to merge 6 commits into from

Conversation

irahopkinson
Copy link
Collaborator

No description provided.

// 'empty' editor
const value: SerializedEditorState<SerializedElementNode> = {
root: {
children: [emptyParaNode],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does emptyParaNode here need to be shallow cloned?

};
if (scrChapters.length >= 1 && scrChapters[0].chapter >= 0) {
value.root.children = recurseNodes(
scrChapters[0].contents,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is Lexical loading in only the first chapter? It seems to be loading just one chapter for me when I have "edit whole book" checked.

@irahopkinson irahopkinson marked this pull request as draft September 25, 2023 02:54
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

Successfully merging this pull request may close these issues.

2 participants