Closed zzxming closed 2 weeks ago
The changes involve updates to the mention
module's documentation and the implementation of the Mention
and MentionLink
classes. The documentation now includes a section on link navigation, detailing the configuration of link properties. The dataAttributes
property has been removed from the MentionOption
interface. Additionally, modifications have been made to how links are handled within the Mention
and MentionLink
classes, including updates to import statements and method functionalities.
File Path | Change Summary |
---|---|
packages/docs/fluent-editor/docs/mention.md |
Updated documentation for link navigation; removed dataAttributes property from MentionOption interface. |
packages/fluent-editor/src/mention/Mention.ts |
Modified import statements; updated defaultOptions.target from '_blank' to 'about:blank' ; refined insertMentionBlot method to conditionally set link and target properties; added warning for missing search function. |
packages/fluent-editor/src/mention/MentionLink.ts |
Updated import statement; enhanced create method for node creation with link attributes; modified value method to include link and target properties; adjusted constructor parameters. |
packages/docs/fluent-editor/demos/mention-link.vue |
Introduced new Vue component utilizing Composition API; added method for toggling editor's editable state. |
mention
module.documentation
🐰 In the garden of code, where changes bloom,
Themention
now shines, dispelling the gloom.
Links dance with joy, and options refine,
A hop and a skip, all functions align!
With each little tweak, our features grow bright,
In the world of the editor, all feels just right! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
mention 中还有一个
dataAttributes
选项,但是从来没有使用过,我暂时把它注释了。这个选项是要实现什么功能?Summary by CodeRabbit
New Features
mention
module, adding a section on link navigation and configuration options.Bug Fixes
Refactor