Hi Chris.
Just had a quick look and the only difference I can see is I had my script blow the actual KTML Object.
Code: Select all
<script type="text/javascript">
ktml_init_object = {
"debugger_params": false,
"path": "../includes/ktm/",
"server": "php"
};
</script>
<script type="text/javascript">
<!--
pg_content_config = {
"width": 900,
"height": 600,
"show_toolbar": "load",
"show_pi": true,
"font_family": "Verdana, Arial, Helvetica, sans-serif",
"font_size": "12px",
"background_color": "#FFFFFF",
"strip_server_location": true,
"auto_focus": false,
"module_props": { },
"buttons": [
[1, "standard", ["cut", "copy", "paste", "undo", "redo", "find_replace", "toggle_visible", "spellcheck", "toggle_editmode", "toggle_fullscreen", "help"]],
[1, "formatting", ["bold", "italic", "underline", "align_left", "align_center", "align_right", "align_justify", "numbered_list", "bulleted_list", "outdent", "indent", "clean_menu", "foreground_color", "background_color", "superscript", "subscript"]],
[2, "styles", ["heading_list", "style_list", "fontsize_list"]],
[2, "insert", ["insert_link", "insert_anchor", "insert_table", "insert_image", "insert_template", "horizontal_rule", "insert_character"]]
]
};
<?php
$ktml_pg_content = new ktml4("pg_content");
$ktml_pg_content->setModuleProperty("filebrowser", "AllowedModule", "true", false);
$ktml_pg_content->setModuleProperty("filebrowser", "MaxFileSize", "1024", true);
$ktml_pg_content->setModuleProperty("filebrowser", "RejectedFolders", "", false);
$ktml_pg_content->setModuleProperty("file", "UploadFolder", "../uploads/files/", false);
$ktml_pg_content->setModuleProperty("file", "UploadFolderUrl", "../uploads/files/", true);
$ktml_pg_content->setModuleProperty("file", "AllowedFileTypes", "ttt", true);
$ktml_pg_content->setModuleProperty("media", "UploadFolder", "../uploads/media/", false);
$ktml_pg_content->setModuleProperty("media", "UploadFolderUrl", "../uploads/media/", true);
$ktml_pg_content->setModuleProperty("media", "AllowedFileTypes", "bmp, jpg, jpeg, gif, png, wm, swf", true);
$ktml_pg_content->setModuleProperty("templates", "AllowedModule", "true", false);
$ktml_pg_content->setModuleProperty("templates", "UploadFolder", "../uploads/templates/", false);
$ktml_pg_content->setModuleProperty("xhtml", "AllowedModule", "true", false);
$ktml_pg_content->setModuleProperty("xhtml", "xhtml_view_source", "true", true);
$ktml_pg_content->setModuleProperty("xhtml", "xhtml_save", "true", true);
$ktml_pg_content->setModuleProperty("spellchecker", "AllowedModule", "true", false);
$ktml_pg_content->setModuleProperty("css", "PathToStyle", "../styles/KT_styles.css", true);
$ktml_pg_content->Execute();
?>
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
There is a couple of issues with KTML that I found to much hassle to try and correct. So I am using TinyMCE as well as a jquery based file manages to replace KTML.
Works well and is easy to integrate.