Word文書からコピーして貼り付けると、問題なく、ほぼ正確なコピーが作成されます。
(cssの干渉を防ぐために)iframe内にコンテンツを表示すると、エディターの場合とまったく同じように表示されます。
私がこれを行う場合:
tinyMCE.execCommand("mceReplaceContent",false, $("#frameBody").contents().find("#txtBody").html());
tinyMCEウィンドウにコピーしますが、フォーマットは少し異なります。箇条書きは通常の円ではなく中空の円であり、かなりの間隔があります。
どうすればこれを修正できますか?
私は次のようにtinyMCEを作成しています:
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,searchreplace,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,code,|,insertdate,inserttime,|,forecolor,backcolor",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
// Skin options
skin : "o2k7",
skin_variant : "silver",
});
<textarea name='FishBody' style='width:919px; height:600px' id='txtFishBody'></textarea>