简体   繁体   English

CKEditor渲染角度自定义指令

[英]CKEditor render angular custom directive

I have an HTML editor using CKEditor on my page. 我的页面上有一个使用CKEditor的HTML编辑器。 Now we decided create some custom directives using AngularJS but CKEditor replaces the "unknown" tags by other HTML Tags. 现在我们决定使用AngularJS创建一些自定义指令,但是CKEditor用其他HTML标记替换了“未知”标记。

example: 例:

 <custom-table
      dataset="Person"
      headers = "['Name', 'Email']"
      fields = "['name', 'email']">
 </custom-table>

is replaced by: 替换为:

<p>&nbsp</p>

I don't want to render that custom tag. 我不想呈现该自定义标签。 I just want to make CKEditor allows "unknown" tags without change it. 我只想让CKEditor允许“未知”标签而不更改它。 Is that possible? 那可能吗?

If you refer to the documentation for CK Editor here: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent 如果您在此处参考CK编辑器的文档: http : //docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent

It mentions a extraContentAllowed option, letting you specify which HTML elements are valid. 它提到了extraContentAllowed选项,可让您指定哪些HTML元素有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM