Closed shyamal890 closed 8 years ago
Hey, you can use the replaceFn
option to do this. Something like the following:
Autolinker.link( myText, {
replaceFn : function( autolinker, match ) {
var tag = match.buildTag(); // returns an `Autolinker.HtmlTag` instance
tag.setAttr( 'contenteditable', 'false' );
return tag;
}
} );
Make sure you have v0.25.0 which has the latest API
For example I would like to add 'contenteditable="false" ' in every link generated