{"id":130,"date":"2006-08-01T19:48:40","date_gmt":"2006-08-01T10:48:40","guid":{"rendered":"https:\/\/tksm.org\/wordpress\/2006\/08\/01\/20060801194840.php"},"modified":"2009-12-05T16:33:07","modified_gmt":"2009-12-05T07:33:07","slug":"fckeditormovabletype","status":"publish","type":"post","link":"https:\/\/tksm.org\/wp\/archives\/130","title":{"rendered":"FCKeditor(MovableType)"},"content":{"rendered":"<p>MovableType\u306bWYSIWYG\u30a8\u30c7\u30a3\u30bf\u306e<a href=\"http:\/\/www.fckeditor.net\/\">FCKeditor<\/a>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b<br \/>\nWYSIWYG\u30a8\u30c7\u30a3\u30bf\u3068\u3057\u3066\u3060\u3051\u3067\u3042\u308c\u3070\u3001MovableType\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u306f\u3042\u308b\u3082\u306e\u306e\u6bd4\u8f03\u7684\u7c21\u5358\u3067\u3059\u3002<br \/>\n\u306a\u306b\u304c\u5927\u5909\u304b\u3068\u3044\u3046\u3068\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308bImageBrowser\u306e\u6a5f\u80fd\u3092\u52d5\u304f\u3088\u3046\u306b\u3059\u308b\u306e\u3067\u4e38\u4e8c\u65e5\u30cf\u30de\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002<\/p>\n<p>\u8a2d\u5b9a\u76ee\u6a19<\/p>\n<ul>\n<li>MovableType\u306f\u30013.31<\/li>\n<li>FCKeditor\u306f\u30012.3.1<\/li>\n<li>\u30a8\u30f3\u30c8\u30ea\u30fc\u306e\u90e8\u5206\u3092FCKeditor\u306b\u5909\u66f4\u3059\u308b<\/li>\n<li>ImageBrowser\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/li>\n<li>ImageBrowser\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5148\u3001\u53c2\u7167\u5148\u306f\u3001http:\/\/servername\/mt\/upload\/username\/<\/li>\n<li>ImageBrowser\u306fPHP\u3092\u4f7f\u7528\u3059\u308b<\/li>\n<li>\u8907\u6570\u306e\u30d6\u30ed\u30b0\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a9\u30eb\u30c0\u3092\u5206\u3051\u308b<\/li>\n<li>\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3057\u305f\u5834\u5408\u3092\u8003\u3048\u3066\u306a\u308b\u3079\u304f\u5909\u66f4\u306f\u3057\u306a\u3044<\/li>\n<\/ul>\n<p>\n\u5c0e\u5165\u624b\u9806<\/p>\n<ol>\n<li>FCKeditor\u3092<a href=\"http:\/\/www.fckeditor.net\/\">\u3053\u306e\u3078\u3093<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff082006\/07\/31\u6642\u70b9\u30672.3.1)<\/li>\n<li>FCKeditor_2.3.1.zip\u3092\u6d77\u6771\u3057\u3066\u3001<strong>mt-static\/FCKeditor<\/strong> \u30d5\u30a9\u30eb\u30c0\u3078\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/li>\n<li>FCKeditor\u306e\u8a2d\u5b9a\uff08\u81ea\u5206\u7528\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\uff09<\/li>\n<p><strong>mt-static\/FCKeditor\/fckconfig.js<\/strong> \u3092 <strong>mt-static\/FCKeditor\/myfckconfig.js<\/strong>\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3057\u3066\u4ee5\u4e0b\u306e\u90e8\u5206\u3092\u8ffd\u52a0\u30fb\u5909\u66f4<\/p>\n<pre><code>\nFCKConfig.ToolbarSets[\"MTStyle\"] = [\n['Source','-','Save','Preview','-','Templates'],\n['Cut','Copy','Paste','PasteText','PasteWord','-'],\n['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],\n'\/',\n['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],\n['OrderedList','UnorderedList','-','Outdent','Indent'],\n['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],\n['Link','Unlink','Anchor'],\n['Image','Flash','Table','Rule','SpecialChar','PageBreak'],\n['TextColor','BGColor'],\n['FitWindow','-','About'],\n'\/',\n['Style','FontFormat','FontName','FontSize']\n] ;\nvar _FileBrowserLanguage\t= 'php' ;\t\/\/ asp | aspx | cfm | lasso | perl | php | py\nvar _QuickUploadLanguage\t= 'php' ;\t\/\/ asp | aspx | cfm | lasso | php\nFCKConfig.LinkUpload = false ;\nFCKConfig.ImageUpload = false ;\nFCKConfig.FlashUpload = false ;\n<\/code><\/pre>\n<li>MovableType\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7de8\u96c6<\/li>\n<p><strong>tmpl\/cms\/edit_entry.tmpl<\/strong><br \/>\n4\u884c\u76ee\u3050\u3089\u3044\u304b\u3089\u633f\u5165\uff08<code>\u008bdiv id=\"edit-entry\"\u009b<\/code>\u306e\u4e0b\u3050\u3089\u3044\uff09<br \/>\n\uff08\u6ce8\uff09\u65e5\u672c\u8a9e\u3067\u30b3\u30e1\u30f3\u30c8\u3044\u308c\u305f\u5834\u5408\u306f\u3001MT\u306e\u6587\u5b57\u30b3\u30fc\u30c9\uff08\u4f8b\u3048\u3070UTF-8)\u3067\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3002<\/p>\n<pre><code>\n\u008bscript type=\"text\/javascript\" src=\"\u008bTMPL_VAR NAME=STATIC_URI\u009bFCKeditor\/fckeditor.js\"\u009b\u008b\/script\u009b\n\u008bscript type=\"text\/javascript\"\u009b\nwindow.onload = function()\n{\n\/\/\u521d\u671f\u5316\nvar fck = new FCKeditor(\"text\");\n\/\/\u30d9\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a\nfck.BasePath = \"\u008bTMPL_VAR NAME=STATIC_URI\u009bFCKeditor\/\";\n\/\/\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u7528\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\nfck.Config[\"CustomConfigurationsPath\"] = fck.BasePath + \"myfckconfig.js\";\n\/\/\u30c4\u30fc\u30eb\u30d0\u30fc\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\nfck.ToolbarSet = \"MTStyle\";\n\/\/\u9ad8\u3055\u3092\u5897\u3084\u3059\nfck.Height = 600;\npath = '\/UserFile\/';\nif (  == 1 ){\n\/\/\u30d6\u30ed\u30b0\uff11\u306e\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0(\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u304b\u3089\u306e\u30d5\u30a9\u30eb\u30c0\uff09\npath = '\/mt\/upload\/hoge1\/';\n} else if (  == 2 ){\n\/\/\u30d6\u30ed\u30b0\uff12\u306e\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0(\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\u304b\u3089\u306e\u30d5\u30a9\u30eb\u30c0\uff09\npath = '\/mt\/upload\/hoge2\/';\n}\n\/\/\u30a4\u30e1\u30fc\u30b8\u30d6\u30e9\u30a6\u30b6\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u6307\u5b9a\nconnector = 'connectors\/php\/connector.php';\nurl = fck.BasePath + 'editor\/filemanager\/browser\/default\/browser.html';\nfck.Config['LinkBrowserURL'] = url + '?Connector=' + connector + '&amp;ServerPath=' + path ;\nfck.Config['ImageBrowserURL'] = url + '?Connector=' + connector + '&amp;ServerPath=' + path + '&amp;Type=Image';\nfck.Config['FlashBrowserURL'] = url + '?Connector=' + connector + '&amp;ServerPath=' + path + '&amp;Type=Flash';\nurl = fck.BasePath + 'editor\/filemanager\/upload\/php\/upload.php';\nfck.Config['LinkUploadURL'] = url + '?ServerPath=' + path;\nfck.Config['ImageUploadURL'] = url + '?ServerPath=' + path + '&amp;Type=Image';\nfck.Config['FlashUploadURL'] = url + '?ServerPath=' + path + '&amp;Type=Flash';\n\/\/textarea\u30bf\u30b0\u3068\u7f6e\u63db\nfck.ReplaceTextarea();\n}\n\u008b\/script\u009b\n<\/code><\/pre>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u88c5\u98fe\u30dc\u30bf\u30f3\u3092\u524a\u9664\u3059\u308b\u5834\u5408<\/p>\n<pre><code>\nif (canFormat &amp;&amp; false) {\n<\/code><\/pre>\n<li>FCKeditor\u306e\u4fee\u6b63<\/li>\n<p><strong>mt-static\/FCKeditor\/editor\/filemanager\/browser\/default\/connectors\/php\/config.php<\/strong><\/p>\n<pre><code>\n$Config['Enabled'] = true ;\n\/\/$Config['UserFilesPath'] = '\/UserFiles\/' ;\n<\/code><\/pre>\n<p><strong><br \/>\nmt-static\/FCKeditor\/editor\/filemanager\/browser\/default\/connectors\/php\/io.php<\/strong><br \/>\n\u4e8c\u3064\u76ee\u306e\u30d6\u30ed\u30b0\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u9055\u3046\u5834\u5408\u4fee\u6b63\u5fc5\u8981(\u30a4\u30e1\u30fc\u30b8\u306e\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u304c\u76f8\u5bfe\u30d1\u30b9\u306b\u306a\u308b\u305f\u3081\uff09<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306eFCKConfig.BaseHref\u3067\u6307\u5b9a\u3067\u304d\u305d\u3046\u306a\u306e\u3060\u3051\u3069\u3001\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u30bd\u30fc\u30b9\u3092\u66f8\u304d\u63db\u3048\u305f<\/p>\n<pre><code>\nfunction GetUrlFromPath( $resourceType, $folderPath )\n{\nif ( $resourceType == '' )\n`\/\/\t\treturn RemoveFromEnd( $GLOBALS[\"UserFilesPath\"], '\/' ) . $folderPath ;\nreturn 'http:\/\/' . $_SERVER['SERVER_NAME'] . RemoveFromEnd( $GLOBALS[\"UserFilesPath\"], '\/' ) . $folderPath ;\n`\telse\n`\/\/\t\treturn  $GLOBALS[\"UserFilesPath\"] . $resourceType . $folderPath ;\nreturn 'http:\/\/' . $_SERVER['SERVER_NAME'] . $GLOBALS[\"UserFilesPath\"] . $resourceType . $folderPath ;\n}\n<\/code><\/pre>\n<p><strong><br \/>\nmt-static\/FCKeditor\/editor\/filemanager\/upload\/php\/config.php<\/strong><\/p>\n<pre><code>\n$Config['Enabled'] = true ;\n<\/code><\/pre>\n<li>\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<\/li>\n<pre><code>\nmkdir \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\/mt\/upload\/hoge1\nmkdir \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\/mt\/upload\/hoge2\nchmod 777 \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\/mt\/upload\/hoge1\nchmod 777  \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\/mt\/upload\/hoge2\n<\/code><\/pre>\n<\/ol>\n<p>\n\u203b\u305d\u306e\u4ed6<\/p>\n<ul>\n<li>\u30d7\u30e9\u30b0\u30a4\u30f3<\/li>\n<p>ImageBrowser\u3092\u7f6e\u304d\u63db\u3048\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3042\u308b\u3088\u3046\u3067<a href=\"http:\/\/sourceforge.net\/tracker\/?group_id=75348&amp;atid=737639\">SOURCEFORGE\u306eFCKeditor\u306ePlugin<\/a>\u306e\u3068\u3053\u308d\u306bkfm kae&#8217;s file manager \u3068\u3044\u3046\u306e\u304c\u3042\u308a\u3001\u3053\u308c\u3092\u4f7f\u3046\u3068\u30a4\u30e1\u30fc\u30b8\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u304c\u53ef\u80fd\u306b\u306a\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\uff08\u5165\u308c\u3066\u307f\u305f\u3068\u3053\u308d\u3044\u3044\u611f\u3058\u3067\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u306e\u30d5\u30a9\u30fc\u30e0\u306e\u3042\u308b\u5834\u6240\u304c\u308f\u304b\u308a\u306b\u304f\u3044\u3088\u3046\u306a\u6c17\u304c\u3057\u305f\u306e\u3067\u3001\u4eca\u56de\u306f\u3084\u3081\u307e\u3057\u305f\uff09<\/p>\n<li>\u30c4\u30fc\u30eb\u30d0\u30fc\u306e\u30dc\u30bf\u30f3\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/li>\n<pre><code>\n\/\/office2003\u98a8\nFCKConfig.SkinPath = FCKConfig.BasePath + 'skins\/office2003\/' ;\n\/\/\u30b7\u30eb\u30d0\u30fc\u98a8\nFCKConfig.SkinPath = FCKConfig.BasePath + 'skins\/silver\/' ;\n<\/code><\/pre>\n<\/ul>\n<p>\n\u53c2\u8003\u306b\u3057\u305fURL<br \/>\n<a>Full Featured FCKeditor on Movable Type<\/a><br \/>\n<a href=\"http:\/\/fckeditor.wikiwikiweb.de\/Developer%27s_Guide\/Configuration\/Built_in_File_Browser\">Built in File Browser<\/a><br \/>\n<a href=\"http:\/\/akira.matrix.jp\/index.php?ID=58\">FCKeditor &#8211; \u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u6a5f\u80fd\u7de8<\/a><br \/>\n<a href=\"http:\/\/www.cmpunch.com\/tips\/000104.php\">Movable Type\u3067WYSIWYG\u30a8\u30c7\u30a3\u30bf(FCKeditor)<\/a><br \/>\n<a href=\"http:\/\/gon.onioni.org\/archives\/2005\/07\/movabletypefcke.html\">MovableType\u306bFCKeditor\u3092\u7d44\u307f\u8fbc\u3080<\/a><br \/>\n<a href=\"http:\/\/weblog.leidenuniv.nl\/users\/klaassenplf\/archives\/2005\/06\/10\/tutorial_wysiwyg_under_movable_type_3x.html\">Tutorial: WYSIWYG under Movable Type 3.x<\/a><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MovableType\u306bWYSIWYG\u30a8\u30c7\u30a3\u30bf\u306eFCKeditor\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u308b WYSIWYG\u30a8\u30c7\u30a3\u30bf\u3068\u3057\u3066\u3060\u3051\u3067\u3042\u308c\u3070\u3001MovableType\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u306f\u3042\u308b\u3082\u306e\u306e\u6bd4\u8f03\u7684\u7c21\u5358\u3067\u3059\u3002  &hellip; <a href=\"https:\/\/tksm.org\/wp\/archives\/130\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;FCKeditor(MovableType)&#8221;\u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-blog"],"views":4278,"_links":{"self":[{"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":1,"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":753,"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/posts\/130\/revisions\/753"}],"wp:attachment":[{"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tksm.org\/wp\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}