PDA

View Full Version : مشکل با tinyMCE



mahtab_mt
شنبه 28 مرداد 1391, 10:54 صبح
سلام.طاعات و عبادات همه قبول حق باشه.من واسه پروژه ام میخوام از tinyMCE استفاده کنم.یعنی هر چی سرچ کردم همه گفته بودند این خوبه.اما متاسفانه هر کار میکنم نمیتونم استفاده کنم.ممنون میشم مشکلم رو بهم بگین.من از این کد استفاده میکنم.مسیرش رو چند بار چک کردم مشکلی نداره یه تکست آریا معمولی میاد سمپل هاش رو هم خیلی خوندم.


<html>

<script type="text/javascript" src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "autolink,lists,spellchecker,pagebreak,style,layer, table,save,advhr,advimage,advl​ink,emotions,iesp ell,inlinepopups,insertdatetime,preview,media,sear chreplace,pri​nt,contextmenu,paste,directionalit y,fullscreen,noneditable,visualchars,nonbreaki​n g,xhtmlxtras,template",

// Theme options
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethr ough,|,justifyleft,justifycent​er,justifyright,j ustifyfull,|,styleselect,formatselect,fontselect,f ontsizeselect​",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replac e,|,bullist,numlist,|,outdent,​indent,blockquote ,|,undo,redo,|,link,unlink,anchor,image,cleanup,he lp,code,|,ins​ertdate,inserttime,preview,|,forec olor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,su p,|,charmap,emotions,iespell,m​edia,advhr,|,prin t,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,st yleprops,spellchecker,|,cite,a​bbr,acronym,del,i ns,attribs,|,visualchars,nonbreaking,template,bloc kquote,pagebr​eak,|,insertfile,insertimage",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,

// Skin options
skin : "o2k7",
skin_variant : "silver",

// Example content CSS (should be your site CSS)
content_css : "css/example.css",

// Drop lists for link/image/media/template dialogs
template_external_list_url : "js/template_list.js",
external_link_list_url : "js/link_list.js",
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js",

// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>

<form method="post" action="somepage">
<textarea name="content" style="width:100%"></textarea>
</form>
</html>

ayub_coder
شنبه 28 مرداد 1391, 17:33 عصر
معمولا 99% کار نکردن مربوط به مشکل مسیره. شما مسیر رو به صورت relative ندید. بلکه به صورت absolute بدید ببینید درست میشه.