Commit 47f4d084 authored by zhangbobell's avatar zhangbobell

fix(hyperlink): set default hyperlink

parent 6f2c54c5
......@@ -91,6 +91,8 @@ define(function(require, exports, module) {
update: function(link, node, box) {
var href = node.getData('hyperlink');
link.setHref('#');
var allowed = ['^http:', '^https:', '^ftp:', '^mailto:'];
for (var i = 0; i < allowed.length; i++) {
var regex = new RegExp(allowed[i]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment