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

Insert blots/embed and typing Chinese, the first letter will appear in the editor. #1904

Closed
zhuowenli opened this issue Jan 8, 2018 · 5 comments

Comments

@zhuowenli
Copy link

let BlockEmbed = Quill.import('blots/embed');

class CustomBlock extends BlockEmbed {
    static create(value) {
        let node = super.create();
        node.innerText = value;
        return node;
    }
    static value(node) {
        return node.innerText;
    }
}

CustomBlock.blotName = 'custom-block';
CustomBlock.tagName = 'mark';

Quill.register(CustomBlock);

Steps for Reproduction

  1. Visit https://codepen.io/zhuowenli/pen/GyyqwQ?editors=0010
  2. Click # button
  3. Input any word and submit.
  4. Move the cursor behind the embed, then input Chinese

2018-01-08 15 12 15

Other selection range is OK:

2018-01-08 15 12 48

Platforms:
OS: macOS High Sierra 10.13.1
Chrome: 64.0.3282.71

Version:
1.3.4

@jayrom123
Copy link

i have same problem
Mac OS: 11.5.2
chorme: 94.0.4606.61

@jayrom123
Copy link

2021-10-14.17.15.12.mov

@OldDream
Copy link

OldDream commented Jan 7, 2022

2021-10-14.17.15.12.mov

same here,with Chrome/94.0.4606.81 ,quill 1.3.7. Any solution here ?

@foriacus
Copy link

foriacus commented Nov 1, 2023

sad, same problem.

@quill-bot
Copy link

Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide 🙏

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

5 participants