如何在ckeditor </script>中添加<script>标记

时间:2014-07-16 07:35:24

标签: html ckeditor

我正在尝试在ckeditor(源模式)中添加脚本标记,但在添加标记后,它会转换为无效标记。我试着像这样改变config.js文件

CKEDITOR.editorConfig = function( config ) {
    config.allowedContent = {
    script: true,
    $1: {
        // This will set the default set of elements
        elements: CKEDITOR.dtd,
        attributes: true,
        styles: true,
        classes: true
    }
};

};

我也想尝试这个bbcode,例子[script] [/ script] 如何在cfeditor中添加脚本标记?

0 个答案:

没有答案