瀏覽代碼

accept any href in text editor link

Joscha Jaeger 10 年之前
父節點
當前提交
75b329ccea
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/allplatforms/libs/wysihtml5/wysihtml5-parser.js

+ 3 - 1
src/allplatforms/libs/wysihtml5/wysihtml5-parser.js

@@ -280,12 +280,14 @@ var wysihtml5ParserRules = {
 		},
 		"a": {
 			"check_attributes": {
-				"href": "href", // if you compiled master manually then change this from 'url' to 'href'
+				"href": "any", // if you compiled master manually then change this from 'url' to 'href'
 				"target": "any"
 			},
+			/*
 			"set_attributes": {
 				"rel": "nofollow"
 			},
+			*/
 			"keep_styles": {
 				"textAlign": 1,
 				"float": 1,