0
CKeditorには、エディタからデータを取得するための2つの関数があります。CKeditorのgetHtml()とgetData()の違い
次の例では、p_editor
という名前のインスタンスがあり、両方の関数の出力は同じです。
var p_editor=CKEDITOR.replace('question_editor');
$('#PostQuestion').on('click', function() {
console.log(p_editor.getData());
console.log(p_editor.document.getBody().getHtml());
console.log(p_editor.document.getBody().getText());
});
この2つの機能の違いは何ですか?