liquid_feedback_frontend
diff static/wysihtml/simple.js @ 1309:32cc544d5a5b
Cumulative patch for upcoming frontend version 4
author | bsw/jbe |
---|---|
date | Sun Jul 15 14:07:29 2018 +0200 (2018-07-15) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/static/wysihtml/simple.js Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -0,0 +1,32 @@ 1.4 +/** 1.5 + * Very simple basic rule set 1.6 + * 1.7 + * Allows 1.8 + * <i>, <em>, <b>, <strong>, <p>, <div>, <a href="http://foo"></a>, <br>, <span>, <ol>, <ul>, <li> 1.9 + * 1.10 + * For a proper documentation of the format check advanced.js 1.11 + */ 1.12 +var wysihtmlParserRules = { 1.13 + tags: { 1.14 + strong: {}, 1.15 + b: {}, 1.16 + i: {}, 1.17 + em: {}, 1.18 + br: {}, 1.19 + p: {}, 1.20 + div: {}, 1.21 + span: {}, 1.22 + ul: {}, 1.23 + ol: {}, 1.24 + li: {}, 1.25 + a: { 1.26 + set_attributes: { 1.27 + target: "_blank", 1.28 + rel: "nofollow" 1.29 + }, 1.30 + check_attributes: { 1.31 + href: "url" // important to avoid XSS 1.32 + } 1.33 + } 1.34 + } 1.35 +};