![](/img/trans.png)
[英]How to render dynamically generated inline SVG by using custom directive in angular 6
[英]CKEditor render angular custom directive
我的頁面上有一個使用CKEditor的HTML編輯器。 現在我們決定使用AngularJS創建一些自定義指令,但是CKEditor用其他HTML標記替換了“未知”標記。
例:
<custom-table
dataset="Person"
headers = "['Name', 'Email']"
fields = "['name', 'email']">
</custom-table>
替換為:
<p> </p>
我不想呈現該自定義標簽。 我只想讓CKEditor允許“未知”標簽而不更改它。 那可能嗎?
如果您在此處參考CK編輯器的文檔: http : //docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
它提到了extraContentAllowed
選項,可讓您指定哪些HTML元素有效。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.