ブラウザソースから FormBlog チャンクの [*blogContent*] の部分が JavaScript として展開されている部分をコピーします。
<script language="javascript" type="text/javascript" src="/modx/assets/plugins/tinymce3201/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="/modx/assets/plugins/tinymce3201/xconfig.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode : "exact",
width : "520",
height : "350",
relative_urls : true,
document_base_url : "http://xxx.s78.coreserver.jp/modx/",
remove_script_host : true,
language : "ja",
elements : "tvblogContent",
valid_elements : tinymce_valid_elements,
extended_valid_elements : tinymce_extended_valid_elements,
invalid_elements : tinymce_invalid_elements,
content_css : "/modx/assets/templates/maruwa/editor.css",
entity_encoding : "named",
cleanup: true,
apply_source_formatting : true,
remove_linebreaks : false,
convert_fonts_to_spans : "true",
file_browser_callback : "myFileBrowser",
theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6,div,blockquote,code,pre,address",
plugins : "style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media",
theme_advanced_buttons0 : "",
theme_advanced_buttons1 : "undo,redo,selectall,separator,pastetext,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help",
theme_advanced_buttons2 : "bold,italic,underline,strikethrough,sub,sup,separator,separator,blockquote,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,formatselect,separator,styleprops",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
theme_advanced_disable : "",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "iframe[*]",
button_tile_map : false
});
function myFileBrowser (field_name, url, type, win) {
var cmsURL = '/modx/manager/media/browser/mcpuk/browser.php?Connector=/modx/manager/media/browser/mcpuk/connectors/php/connector.php&ServerPath=/modx/&editor=tinymce&editorpath=/modx/assets/plugins/tinymce3201'; // script URL - use an absolute path!
switch (type) {
case "image":
type = 'images';
break;
case "media":
break;
case "flash":
break;
case "file":
type = 'files';
break;
default:
return false;
}
if (cmsURL.indexOf("?") < 0) {
//add the type as the only query parameter
cmsURL = cmsURL + "?type=" + type;
}
else {
//add the type as an additional query parameter
// (PHP session ID is now included if there is one at all)
cmsURL = cmsURL + "&type=" + type;
}
tinyMCE.activeEditor.windowManager.open({
file : cmsURL,
width : screen.width * 0.7, // Your dimensions may differ - toy around with them!
height : screen.height * 0.7,
resizable : "yes",
inline : "yes", // This parameter only has an effect if you use the inlinepopups plugin!
close_previous : "no"
}, {
window : win,
input : field_name
});
return false;
}
function myCustomOnChangeHandler() {
documentDirty = true;
}
</script>
コンテンツが TinyMCE で開けば成功です。