私は自分のウェブサイト用に小さなwebappを構築していて、ビジュアルエディタとしてtinyMCEを含めました。 私のサイトは無料のテンプレートを使用していますが、contentareaには#left_sideというIDがあり、ほぼすべてのスタイルが参照している記事に関連しています。tinymceエディタのコンテンツが正しく表示されない
私はcontent_cssとして提供したスタイルが適合しないので、エディタは一種のwysiwygですが、スタイルが間違っています。
これは、#left_side idがiframeのどこにもないためです。
私は今かなりの時間グーグルで行ってしまって、tinyMCEにこのIDを持つdivをエディタのコンテンツの周りに追加する方法がないので、CSSが機能します。
私は現在、ちょうど見当がつかない、それが実現するのは難しいとは思わないか...: -/
任意のアイデアは?
EDIT:それについて
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
// Theme options
theme_advanced_buttons1 : "save,newdocument,|,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,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "/cms/static/style/site.css",
....
どのようにcontent_cssを設定しましたか?あなたのtinymceのinitを提供してください – Thariama