0
我一直在使用CuteEditor控件的現有項目。 我發現爲了啓用iframe標記,我需要添加屬性EnableStripIframeTags
並將其設置爲false。但是,CuteEditor控件出現在很多頁面中。從配置設置CuteEditor EnableStripIframeTags屬性
是否可以從CuteEditor的配置文件中設置EnableStripIframeTags
?
我一直在使用CuteEditor控件的現有項目。 我發現爲了啓用iframe標記,我需要添加屬性EnableStripIframeTags
並將其設置爲false。但是,CuteEditor控件出現在很多頁面中。從配置設置CuteEditor EnableStripIframeTags屬性
是否可以從CuteEditor的配置文件中設置EnableStripIframeTags
?
我不認爲這是可能的。我的解決方案是創建一個方法來設置屬性並從每個頁面調用它。
通常還有其他一些屬性需要更改,這些屬性也可以添加到該方法中。
public void initialiseEditor(CuteEditor.Editor editor) {
editor.EnableStripIframeTags = true;
editor.EnableStripScriptTags = true;
editor.EnableStripStyleTagsCodeInjection = true;
}