0
我做了一些类,初始化TinyMCE的 例如:初始化TinyMCE的
var tinyMce_reader = function (rp_documentPath, objectID_arr){
this.objectID_arr = objectID_arr;
this.idx = 0;
this.rp_documentPath = rp_documentPath;
this.doc_sent_arr = [];
this.doc_modif_arr = [];
}
tinyMce_reader.prototype.init = function(){
tinymce.init({
menu : {},
plugins: "preview,print,fullpage",
toolbar: "fontsizeselect undo redo | bold italic underline | aligncenter alignjustify | bullist numlist outdent indent | print preview",
statusbar : false,
valid_elements : '*[*]',
selector: "textarea",
width : 798,
height : 405,
content_css : "courriers.css"
});
for(var i = 0; i < this.objectID_arr.length; i++) {
this.doc_sent_arr.push(0);
this.doc_modif_arr.push(0);
}
}
当我实例化从文件的对象,everithing顺利,但如果我从另一个文件做到这一点,它不没有工作。
工作:
$(document).ready(function(){
var objectID = ['1371','1377'];
var instance = new tinyMce_Fax_reader('<?= $_SESSION['rp_parameters']->rp_urlPath ?>courrier_MR_prereservation.php', objectID,<?= rp_appSession::rp_GetConseiller()->getConseillerID() ?>);//.?object_id='+objectId[0]);
instance.init();
不工作:
include_once(ROOT_PATH."/includes/components/rp_componentTinyMce.php");
$(document).ready(function(){
var objectID = ['1371','1377'];
var instance = new tinyMce_Fax_reader('<?= $_SESSION['rp_parameters']->rp_urlPath ?>courrier_MR_prereservation.php', objectID,<?= rp_appSession::rp_GetConseiller()->getConseillerID() ?>);//.?object_id='+objectId[0]);
instance.init();
你们这些人有什么想法? 谢谢
什么是添加的textarea标签'rp_componentTinyMce.php'样子? – egig
我有这个: