aha, isn't that just the way - as soon as your desperate enough to go begging
for help, it all falls into place ;-)
<cfcase value="ktml">
<cfsavecontent variable="ktml_content">
<cfoutput>
<style type="text/css">
##plp-content .ktml_skin table {
width: auto;
float: none;
}
##plp-content .ktml_skin table td {
padding: inherit;
border: auto;
}
.ktml_bg tr {
background: none;
}
</style>
<script
src="#application.url.farcry#/includes/lib/ktml/includes/common/js/base.js"
type="text/javascript"></script>
<script
src="#application.url.farcry#/includes/lib/ktml/includes/common/js/utility.js"
type="text/javascript"></script>
<script
src="#application.url.farcry#/includes/lib/ktml/includes/ktm/core/ktml.js"
type="text/javascript"></script>
<script
src="#application.url.farcry#/includes/lib/ktml/includes/resources/ktml.js"
type="text/javascript"></script>
<script
src="#application.url.farcry#/includes/lib/ktml/includes/ktm/core/modules.js"
type="text/javascript"></script>
<link
href="#application.url.farcry#/includes/lib/ktml/includes/ktm/core/styles/ktml.css"
rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript">
ktml_init_object = {
'debugger_params': true,
'path':
"#application.url.farcry#/includes/lib/ktml/includes/ktm/",
'server': "cfm"
};
</script>
<script type="text/javascript">
#attributes.textareaname#_config = {
width: 700,
height: 500,
show_toolbar: "load",
show_pi: true,
background_color: '##ffffff',
strip_server_location: false,
auto_focus: true,
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", "fonttype_list",
"fontsize_list"]],
[2, "insert", ["insert_link", "insert_anchor", "insert_table",
"insert_image", "insert_file", "insert_template", "horizontal_rule",
"insert_character"]],
[3, "form", ["insert_form", "insert_textfield",
"insert_hiddenfield", "insert_textarea", "insert_checkbox",
"insert_radiobutton", "insert_listmenu", "insert_filefield",
"insert_button", "insert_label", "insert_fieldset"]]
]
};
<cfinclude
template="/farcry/farcry_core/admin/includes/lib/ktml/includes/ktm/ktml4.cfm">
<cfscript>
ktml4_obj1 = Request.KTML4_CreateObject("ktml4");
ktml4_obj1.init("#attributes.textareaname#");
ktml4_obj1.setModuleProperty("filebrowser", "AllowedModule",
"true", false);
ktml4_obj1.setModuleProperty("filebrowser", "MaxFileSize",
"2000", true);
ktml4_obj1.setModuleProperty("filebrowser", "RejectedFolders",
".svn,.thumbnails", false);
ktml4_obj1.setModuleProperty("file", "UploadFolder",
"uploads/files/", false);
ktml4_obj1.setModuleProperty("file", "UploadFolderUrl",
"uploads/files/", true);
ktml4_obj1.setModuleProperty("file", "AllowedFileTypes", "doc,
pdf, txt", true);
ktml4_obj1.setModuleProperty("media", "UploadFolder",
"uploads/media/", false);
ktml4_obj1.setModuleProperty("media", "UploadFolderUrl",
"uploads/media/", true);
ktml4_obj1.setModuleProperty("media", "AllowedFileTypes",
"bmp,mov,mpg,avi,mpeg,swf,wmv,jpg,jpeg,gif,png", true);
ktml4_obj1.setModuleProperty("templates", "AllowedModule",
"true", false);
ktml4_obj1.setModuleProperty("templates", "UploadFolder",
"uploads/templates/", false);
ktml4_obj1.setModuleProperty("xhtml", "AllowedModule", "true",
false);
ktml4_obj1.setModuleProperty("xhtml", "xhtml_view_source",
"true", true);
ktml4_obj1.setModuleProperty("xhtml", "xhtml_save", "true",
true);
ktml4_obj1.setModuleProperty("spellchecker", "AllowedModule",
"true", false);
ktml4_obj1.setModuleProperty("css", "PathToStyle",
"/farcry/farcry_core/admin/includes/ktm/styles/KT_styles.css", true);
ktml4_obj1.setModuleProperty("hyperlink_browser",
"ServiceProvider",
"/farcry/farcry_core/admin/includes/ktm/hyperlink_service.cfm", true);
ktml4_obj1.Execute();
</cfscript>
</script>
</cfoutput>
</cfsavecontent>
<cfhtmlhead text="#ktml_content#">
<cfoutput>
<input type="hidden" id="#attributes.textareaname#"
name="#attributes.textareaname#"
value="#Request.KT_escapeAttribute(attributes.value)#" />
<script>
ktml_#attributes.textareaname# = new
ktml('#attributes.textareaname#');
</script>
</cfoutput>
</cfcase>
--
View this message in context:
http://www.nabble.com/KTML-tf3157863s621.html#a8758408
Sent from the FarCry - Dev mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---