サーバーからのコンテンツの下にあり、tinymce に添付されたテキストエリアの下に表示されています
<p>Test1</p>
<p>Test2</p>
以下のpタグでブラウザに表示されます
<p>Test1</p> <p>Test2</p>
それは次のように表示する必要があります
Test1
Test2
ここで何が欠けているのかわかりませんか?firebug コンソールにエラーが表示されません。firebug からテキストエリアを調べると、テキストエリアは tinymce で正しく接続されていますが、HTML コンテンツが正しい形式で表示されませんか? 私はStruts 2 textArea ieを使用しています
これが私のtinymce構成です:-
function attachTinyMCE() {
tinyMCE.init({
mode: "textareas",
theme: "advanced",
plugins: "preview",
readonly: true,
theme_advanced_buttons1: "forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,|,formatselect,fontselect,fontsizeselect,sub,sup,|,bold,italic,underline,strikethrough",
theme_advanced_buttons2: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_path: false,
theme_advanced_resizing: true,
entity_encoding: "raw"
});
}
更新:-サーバーから以下のコンテンツを送信した場合、つまり
<p>Test1</p>
<p>Test2</p>
それ以外の
<p>Test1</p>
<p>Test2</p>
tinymce i、eで正しく表示されます
Test1
Test2