medium-editor-tc-mention
MediumEditor extension for mention panels like @username or #tagging
Quick start: CustomizedTagComponent
{ const trigger = propscurrentMentionText; return <div> <button onClick= props> Cancel </button> <button onClick= props> Select `{ trigger }mention` </button> CustomizedTagComponent!!! </div> ;} thiseditor = thisrefseditable extensions: "mention": tagName: "b" { ReactDOM; } activeTriggerList: "#" "@" ;
Usage
medium-editor-tc-mention
requires medium-editor@^5.8.3
npm install --save medium-editor-tc-mention
Import using module loaders
// Default export// Equivalent to import {default as TCMention} from "medium-editor-tc-mention";; // Alternative named export; // ES5, commonjsvar TCMention = TCMention; ;
UMD version
You can find UMD version of this module at /lib/index.min.js
. Reference them directly in your html
:
... ...
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request