Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add autolink option in config when init simditor #529

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oakland
Copy link

@oakland oakland commented Jul 5, 2018

在配置中增加了 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants