simditor icon indicating copy to clipboard operation
simditor copied to clipboard

add autolink option in config when init simditor

Open oakland opened this issue 6 years ago • 0 comments

在配置中增加了 autolink 选项,用来启用或者禁用 getValue() 时,是否将链接自动展示为 <a> 标签。

调用 getValue() 方法时会默认启用 autolink() 方法,导致本来已经在文本中禁用的链接可能会被再次自动启用。比如 www.google.com 我只希望是文字状态,但是发现每次调用 getValue() 后都会形成 <a href="http://www.google.com">www.google.com</a> 的形式。

Add autolink option to config object, to enable or disable autolink function when using simditor.getValue() method. By default, simditor will automatically replace url text like 'www.google.com' in to a tag when callling getValue() method. This should be configed instead of doing it by default.

oakland avatar Jul 05 '18 05:07 oakland