medium-editor-tc-mention
MediumEditor extension for mention panels like @username or #tagging
![screen shot 2015-11-11 at 4 29 30 pm](https://cdn.statically.io/img/cloud.githubusercontent.com/assets/922234/11088093/9b00fe2e-889a-11e5-801d-b6f79c568dde.png)
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