良い一日。
自分のページで ckeditor を使用しています
コード:
<textarea class="ckeditor" cols="80" name="header" rows="5" id="ursopr" required>
</textarea>
そして、私はスタイルを持っています:
.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;
}
ckeditorul
が config.js のクラスを削除しないようにするには、行を追加します。
CKEDITOR.editorConfig = function( config ) {
config.allowedContent = true;
};
しかし、この行を追加した後、textarea(iframe ckeditor) に要素のスタイルが含まれていないことがわかります。
しかし、ckeditorを使用したテキストエリアでは、次のようになります:
ckeditor を使用してテキストエリアに要素のスタイルを含める方法を教えてください。