【问题标题】:Add regexp to wysihtml5 Parser Rules将正则表达式添加到 wysihtml5 解析器规则
【发布时间】:2016-07-10 17:39:31
【问题描述】:

是否可以将正则表达式添加到 wysihtml5 解析器规则? 例如 //

wysihtml5ParserRulesSimple: ->
 tags:
  strong: {}
  b:      {}
  i:      {}
  em:     {}

【问题讨论】:

    标签: javascript wysihtml5 bootstrap-wysihtml5


    【解决方案1】:

    目前不支持正则表达式匹配标签名称。另一方面,示例中的 RegExp 用于匹配注释节点,可以在当前支持的 wysihtml 的 Voog 分支中使用此参数启用这些节点。

    https://github.com/Voog/wysihtml/blob/master/parser_rules/advanced_and_extended.js#L122

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-26
      • 2012-10-17
      • 2012-06-15
      相关资源
      最近更新 更多