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

Backspaces do not work when the code block contains initial data. #75

Closed
yosipy opened this issue Oct 4, 2024 · 1 comment · May be fixed by codex-team/editor.js#2836
Closed

Backspaces do not work when the code block contains initial data. #75

yosipy opened this issue Oct 4, 2024 · 1 comment · May be fixed by codex-team/editor.js#2836

Comments

@yosipy
Copy link

yosipy commented Oct 4, 2024

When we add a new code block, backspace works.

1.mp4

However, when updating a code block with initial data, backspaces do not work.

      const editorConfig = {
        data: {
          blocks: [
            
            {
              type: "code",
              data: {
                code: 'console.log("ssss")',
              },
            },
          ],
2.mp4
@neSpecc
Copy link
Contributor

neSpecc commented Oct 5, 2024

Duplicate #67

@neSpecc neSpecc closed this as completed Oct 5, 2024
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 a pull request may close this issue.

2 participants