我一直在处理一个使用CuteEditor控件的现有项目。我发现为了启用iframe标签,我需要添加属性EnableStripIframeTags并将其设置为false。但是,CuteEditor控件出现在很多页面中。
是否有从CuteEditor的配置文件中设置EnableStripIframeTags的选项?
发布于 2013-05-25 03:29:42
我认为这是不可能的。我的解决方案是创建一个方法,该方法设置属性并从每个页面调用它。
通常还需要更改其他几个属性,这些属性也可以添加到该方法中。
public void initialiseEditor(CuteEditor.Editor editor) {
editor.EnableStripIframeTags = true;
editor.EnableStripScriptTags = true;
editor.EnableStripStyleTagsCodeInjection = true;
} https://stackoverflow.com/questions/12564995
复制相似问题