NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

Hope that the component of nz-mention can support the trigger element of which is contenteditable #6880

Open simo-an opened 3 years ago

simo-an commented 3 years ago

What problem does this feature solve?

IF the component of nz-mention can support the trigger element of contenteditable, we can use it in Rich Text Editor!

What does the proposed API look like?

We can use it like following html code!

<nz-mention>
  <div nzMentionTrigger
          contenteditable>
  </div>
</nz-mention>

Waiting for the implemention!

wzhudev commented 3 years ago

Inputing text in the editing area and show panel like this?

simo-an commented 3 years ago

Yeah, I want to use this component in Rich Text Editor!

I implement it base on the existing code, i works like this. I it runs not so well, so, I hope that can be support officially.

image