为什么不用ckeditor在textarea中包含元素的样式?

Leo*_*oki 2 css styles ckeditor

美好的一天.

我在我的页面上使用ckeditor

码:

<textarea class="ckeditor" cols="80" name="header" rows="5" id="ursopr" required>
 </textarea>
Run Code Online (Sandbox Code Playgroud)

我有风格:

.about span {
    display: inline-block;
    padding: 5px 20px;
}

.about {
    color: #feffff;
}

.about {
    color: #feffff;
}

.about b {
    font-size: 30px;
    font-weight: normal;
    vertical-align: middle;
}
Run Code Online (Sandbox Code Playgroud)

对于ckeditor,不要ul在config.js中删除类,我添加行:

CKEDITOR.editorConfig = function( config ) {

    config.allowedContent = true;
};
Run Code Online (Sandbox Code Playgroud)

但添加此行后,我发现在textarea(iframe ckeditor)中不包含元素的样式.

但在textarea与ckeditor我得到:

此搜索 图像2

请告诉我如何使用ckeditor包含textarea中元素的样式?

ror*_*cko 5

config.contentsCss = 'path/to/style.css';
Run Code Online (Sandbox Code Playgroud)

我现在无法测试它,它来自内存所以我希望它有所帮助!

请参阅config.contentsCss文档.