add autolink option in config when init simditor #529
+9
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在配置中增加了 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.