{"id":7803,"date":"2019-01-26T12:27:33","date_gmt":"2019-01-26T12:27:33","guid":{"rendered":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=7803"},"modified":"2019-02-04T07:26:30","modified_gmt":"2019-02-04T07:26:30","slug":"%e4%bd%9c%e6%a5%ad%e3%83%a1%e3%83%a2%ef%bc%88ckeditor%e3%81%a8kcfinder%ef%bc%89","status":"publish","type":"post","link":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=7803","title":{"rendered":"\u4f5c\u696d\u30e1\u30e2\uff08ckeditor\u3068kcfinder\uff09"},"content":{"rendered":"<p>(1) kcfinder \u304b\u3089 upload \u306e\u969b\u306b\u300c\u30b5\u30fc\u30d0\u30fc\u306e\u5fdc\u7b54\u304c\u4e0d\u6b63\u300d\u3068\u3044\u3046\u8fd4\u4e8b\u304c\u3042\u3063\u305f\u3002\u4e0b\u8a18\u306b\u60c5\u5831\u3042\u308a\u3002<\/p>\n<ul>\n<a href=\"https:\/\/github.com\/sunhater\/kcfinder\/issues\/171\">&#8220;Incorrect server response&#8221; on upload<\/a>\n<\/ul>\n<p> \u4e0b\u8a18\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u826f\u3044\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">CKEDITOR.replace( 'editor1', {\r\n\u3000\u3000\u3000\u3000filebrowserUploadMethod:'form'\r\n});<\/code><\/pre>\n<p>CKEditor 4.9.0 \u307e\u3067\u306f\u6709\u52b9\u306a\u8a2d\u5b9a\u3068\u3042\u3063\u305f(<a href=\"https:\/\/ckeditor.com\/docs\/ckeditor4\/latest\/api\/CKEDITOR_config.html\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a>)\u3002\u305f\u3060\u3057\u3001\u3053\u308c\u306f html \u30d5\u30a1\u30a4\u30eb\u3092\u8fd4\u3059\u306e\u3067 \u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u306e\u969b\u306b\u554f\u984c\u306b\u306a\u308b\u3088\u3046\u3060\u3002<\/p>\n<p>\u73fe\u5728\u306f\u30af\u30ed\u30b9\u30b5\u30a4\u30c8\u3067\u306e\u5229\u7528\u306f\u3057\u3066\u3044\u306a\u3044\u304c\u3001\u4eca\u306e\u6240 kcfinder\/core\/class\/uploder.php \u306e\u4e2d\u306e \u4e0b\u8a18\u306e\u95a2\u6570\u306b\u4fee\u6b63\u3092\u52a0\u3048\u3066\u5229\u7528\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">    protected function callBack($url, $message=\"\") {\r\n        $message = text::jsValue($message);\r\n\r\n        if ((get_class($this) == \"kcfinder\\\\browser\") &amp;&amp; ($this-&gt;action != \"browser\"))\r\n            return;\r\n\r\n        if (isset($this-&gt;opener['name'])) {\r\n            $method = \"callBack_{$this-&gt;opener['name']}\";\r\n            if (method_exists($this, $method))\r\n                $js = $this-&gt;$method($url, $message);\r\n        }\r\n\r\n        if (!isset($js))\r\n            $js = $this-&gt;callBack_default($url, $message);\r\n\r\n        header(\"Content-Type: text\/html; charset={$this-&gt;charset}\");\r\n\r\n        \/\/echo \"&lt;html&gt;&lt;body&gt;$js&lt;\/body&gt;&lt;\/html&gt;\";\r\n\r\n&#9;$tmpbaseName = basename($url);\r\n\r\n        echo \"{\\\"fileName\\\":\\\"$tmpbaseName\\\", \\\"uploaded\\\":1, \\\"url\\\":\\\"$url\\\"}\";\r\n\r\n    }<\/code><\/pre>\n<p>(2) kcfinder \u306e\u30d5\u30a1\u30a4\u30eb\u30a2\u30af\u30bb\u30b9\u6a29\u306e\u8a2d\u5b9a\u3067\u3042\u308b\u304c\uff0cupload \u30d5\u30a9\u30eb\u30c0\u30fc\u3060\u3051\u3067\u306a\u304f\uff0ccashe \u30d5\u30a9\u30eb\u30c0\u30fc\u3082 www-data \u306b\u4e0e\u3048\u308b\u3053\u3068\u3002kcfinder\/js\/080.files.js \u7b49\u3092\u5909\u66f4\u3057\u305f\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u3088\u3046\u3060\u3002\u5b9f\u884c\u306e\u969b\u306f cashe \u30d5\u30a9\u30eb\u30c0\u30fc\u306e js \u3092\u8aad\u307f\u8fbc\u3093\u3067\u3044\u308b\u3088\u3046\u3067\u3042\u308b\u3002kcfinder\/js\/index.php \u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u304f\u3068 js \u304c\u8fd4\u3055\u308c\u308b\u304c\uff0c\u3053\u306e php \u30d5\u30a1\u30a4\u30eb\u304c cashe \u306e\u4e2d\u8eab\u3092\u66f8\u304d\u304b\u3048\u3066\u3044\u308b\u3088\u3046\u3067\uff0ccashe\/base.js \u3092\u30e2\u30cb\u30bf\u30fc\u3059\u308b\u3068\u5909\u66f4\u3055\u308c\u305f\u3053\u3068\u304c\u5206\u304b\u308b\u3002kcfinder\/js\/index.php \u4e2d\u3067\u547c\u3073\u51fa\u3055\u308c\u308b kcfinder\/core\/class\/minifier.php \u306e\u50cd\u304d\u306b\u3088\u308b\u3082\u306e\u3068\u601d\u308f\u308c\u308b\u3002<\/p>\n<p>(3) upload \u306e\u969b\u306b\u306f\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u306e\u5236\u9650\u306b\u6ce8\u610f\u3059\u308b\u3053\u3068\u3002ubuntu \u306e\u521d\u671f\u72b6\u614b\u3067\u306f 2MB \u3068\u306a\u3063\u3066\u3044\u308b\u3002\u74b0\u5883\u306b\u3082\u3088\u308b\u304c \/etc\/php\/7.0\/apache2\/php.ini \u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\uff0c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u30b5\u30a4\u30ba\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3002post_max_size \u3068 upload_max_filesize \u3092\u9069\u5f53\u306a\u5927\u304d\u3055\u306b\u3059\u308b\u3002<\/p>\n<p>(4) ckeditor \u304b\u3089 kcfinder \u3092\u547c\u3073\u51fa\u3059\u305f\u3081\u306b\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u521d\u671f\u8a2d\u5b9a\u3057\u307e\u3059\u3002GET \u3067\u60c5\u5831\u3092\u9001\u308d\u3046\u3068\u8003\u3048\u3066\u3001\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc userInfo=myfolder \u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">&lt;body&gt;\r\n  &lt;textarea cols=\"10\" id=\"editor1\" name=\"editor1\" rows=\"10\"&gt;&amp;lt;p&amp;gt;This is some &amp;lt;strong&amp;gt;sample text&amp;lt;\/strong&amp;gt;. You are using &amp;lt;a href=&amp;quot;https:\/\/ckeditor.com\/&amp;quot;&amp;gt;CKEditor&amp;lt;\/a&amp;gt;.&amp;lt;\/p&amp;gt;&lt;\/textarea&gt;\r\n  &lt;script&gt;\r\n\r\n    CKEDITOR.replace('editor1', {\r\n      height: 300,\r\n\r\n&#9;filebrowserBrowseUrl: 'http:\/\/192.168.100.7\/kcfinder-3.12\/browse.php?opener=ckeditor&amp;type=files&amp;userInfo=myfolder',\r\n&#9;filebrowserUploadUrl: 'http:\/\/192.168.100.7\/kcfinder-3.12\/upload.php?userInfo=myfolder'\r\n\r\n    });\r\n\r\n  &lt;\/script&gt;\r\n&lt;\/body&gt;<\/code><\/pre>\n<p>\u4e0a\u624b\u304f\u6e21\u305b\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u898b\u3066\u307f\u307e\u3059\u3002\u4e0b\u8a18\u306f upload.php \u306e\u65b9\u306e\u30b3\u30fc\u30c9\u3067\u3001 $_GET \u306e\u5185\u5bb9\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u51fa\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">&lt;?php\r\n\r\n\/** This file is part of KCFinder project\r\n  *\r\n  *      @desc Upload calling script\r\n  *   @package KCFinder\r\n  *   @version 3.12\r\n  *    @author Pavel Tzonkov &lt;sunhater@sunhater.com&gt;\r\n  * @copyright 2010-2014 KCFinder Project\r\n  *   @license http:\/\/opensource.org\/licenses\/GPL-3.0 GPLv3\r\n  *   @license http:\/\/opensource.org\/licenses\/LGPL-3.0 LGPLv3\r\n  *      @link http:\/\/kcfinder.sunhater.com\r\n  *\/\r\n\r\nob_start();\r\nvar_export($_GET);\r\n$tmp = ob_get_clean();\r\n\r\n$a_file = fopen(\"\/var\/www\/html\/temporary\/log.txt\",\"w\");\r\nfputs($a_file,$tmp);\r\nfclose($a_file);\r\n\r\nrequire \"core\/bootstrap.php\";\r\n$uploader = \"kcfinder\\\\uploader\";  \/\/ To execute core\/bootstrap.php on older\r\n$uploader = new $uploader();       \/\/ PHP versions (even PHP 4)\r\n$uploader-&gt;upload();\r\n\r\n?&gt;<\/code><\/pre>\n<p>log.txt \u306e\u5185\u5bb9\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">array (\r\n  'userInfo' =&gt; 'myfolder',\r\n)<\/code><\/pre>\n<p>\u4e0a\u624b\u304f\u6e21\u305b\u3066\u3044\u307e\u3059\u3002browse.php \u306e\u65b9\u3082\u540c\u3058\u3088\u3046\u306b $_GET \u3092\u51fa\u529b\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">array (\r\n  'type' =&gt; 'files',\r\n  'lng' =&gt; 'ja',\r\n  'opener' =&gt; 'ckeditor',\r\n  'act' =&gt; 'init',\r\n)<\/code><\/pre>\n<p>userInfo \u304c\u898b\u3064\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u66f8\u304d\u51fa\u3057\u3092 &#8220;w&#8221; \u3067\u306a\u304f &#8220;a&#8221; \u306b\u5909\u3048\u3066\u3001\u30a2\u30da\u30f3\u30c9\u306b\u3057\u3066\u307f\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306a\u51fa\u529b\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">array (\r\n  'opener' =&gt; 'ckeditor',\r\n  'type' =&gt; 'files',\r\n  'userInfo' =&gt; 'myfolder',\r\n  'CKEditor' =&gt; 'editor1',\r\n  'CKEditorFuncNum' =&gt; '0',\r\n  'langCode' =&gt; 'ja',\r\n)array (\r\n  'type' =&gt; 'files',\r\n  'lng' =&gt; 'ja',\r\n  'opener' =&gt; 'ckeditor',\r\n  'act' =&gt; 'init',\r\n)<\/code><\/pre>\n<p>browse.php \u306f\u8907\u6570\u56de\u547c\u3073\u3060\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u6700\u521d\u306e\u547c\u3073\u51fa\u3057\u306b\u306f userInfo \u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u521d\u56de\u306e $_GET \u3092\u5229\u7528\u3059\u308c\u3070\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>(5) GET \u3067\u6e21\u3057\u305f\u60c5\u5831\u3067\u3001kcfinder \u306b\u304a\u3044\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u3054\u3068\u306b\u753b\u50cf\u306e\u4fdd\u5b58\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u5909\u66f4\u3057\u3088\u3046\u3068\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u304c\u96e3\u3057\u3044\u3002\u8907\u6570\u56de\u547c\u3073\u51fa\u3055\u308c\u308b\u3068\u3053\u308d\u3092\u4e57\u308a\u8d8a\u3048\u308b\u3053\u3068\u304c\u96e3\u3057\u3044\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u4e2d\u3092\u3082\u3046\u5c11\u3057\u8ffd\u3044\u304b\u3051\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u3002\u305d\u308c\u3067\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u8a66\u3057\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u4e0b\u8a18\u306b\u53c2\u8003\u30b5\u30a4\u30c8\u3092\u3042\u3052\u307e\u3059\u3002iframe \u306e\u4e2d\u3067\u5229\u7528\u3057\u3088\u3046\u3068\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306f\u907f\u3051\u305f\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3002<\/p>\n<ul>\n<a href=\"https:\/\/reminder.ysrock.com\/2016\/04\/19\/kcfinder%E3%81%AE%E4%BF%9D%E5%AD%98%E5%85%88%E3%82%92%E3%83%A6%E3%83%BC%E3%82%B6%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E5%88%86%E3%81%91%E3%81%A6%E3%81%BF%E3%81%9F\/\">KCFinder\u306e\u4fdd\u5b58\u5148\u3092\u30e6\u30fc\u30b6\u306b\u3088\u3063\u3066\u5206\u3051\u3066\u307f\u305f<\/a>\n<\/ul>\n<p>ckeditor \u3092\u30bb\u30c3\u30c8\u3059\u308b\u3068\u3053\u308d\u3092\u3053\u3093\u306a\u3075\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u306f index.php \u3068\u3057\u307e\u3059\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">&lt;?php\r\n\r\nsession_start();\r\n$_SESSION['KCFINDER']['uploadURL']=\"http:\/\/192.168.100.7\/temporary\/yourfolder\";\r\n\r\n$tmp = &lt;&lt;&lt; end_of_quote\r\n&lt;!doctype html&gt;\r\n&lt;html lang=\"ja\"&gt;\r\n\r\n&lt;head&gt;\r\n\r\n&#9;&lt;meta http-equiv='Access-Control-Allow-Origin' content='*'&gt;\r\n&#9;&lt;meta http-equiv='Access-Control-Allow-Headers' content='*'&gt;\r\n&#9;&lt;meta http-equiv='Access-Control-Allow-Methods' content=\"GET, POST, OPTIONS\"&gt;\r\n&#9;&lt;meta http-equiv='Content-Type' content=\"text\/plain\"&gt;\r\n  &lt;meta charset=\"utf-8\"&gt;\r\n  &lt;meta name=\"robots\" content=\"noindex, nofollow\"&gt;\r\n  &lt;title&gt;File Manager Integration&lt;\/title&gt;\r\n\r\n&lt;script src=\"https:\/\/cdn.ckeditor.com\/4.11.1\/standard-all\/ckeditor.js\"&gt;&lt;\/script&gt;\r\n\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n  &lt;textarea cols=\"10\" id=\"editor1\" name=\"editor1\" rows=\"10\"&gt;&amp;lt;p&amp;gt;This is some &amp;lt;strong&amp;gt;sample text&amp;lt;\/strong&amp;gt;. You are using &amp;lt;a href=&amp;quot;https:\/\/ckeditor.com\/&amp;quot;&amp;gt;CKEditor&amp;lt;\/a&amp;gt;.&amp;lt;\/p&amp;gt;&lt;\/textarea&gt;\r\n  &lt;script&gt;\r\n\r\n    CKEDITOR.replace('editor1', {\r\n      height: 300,\r\n\r\n&#9;filebrowserBrowseUrl: 'http:\/\/192.168.100.7\/kcfinder-3.12\/browse.php?opener=ckeditor&amp;type=files',\r\n&#9;filebrowserUploadUrl: 'http:\/\/192.168.100.7\/kcfinder-3.12\/upload.php'\r\n    });\r\n\r\n  &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n\r\n&lt;\/html&gt;\r\nend_of_quote;\r\n\r\necho $tmp;\r\n\r\n?&gt;<\/code><\/pre>\n<p>\u30bb\u30c3\u30b7\u30e7\u30f3\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u3001\u5168\u4f53\u3092 PHP \u3068\u3057\u3066\u3001\u30bb\u30c3\u30b7\u30e7\u30f3\u60c5\u5831\u3092\u66f8\u304d\u8fbc\u307f\u307e\u3059\u3002\u66f8\u304d\u8fbc\u307e\u308c\u305f http:\/\/192.168.100.7\/temporary\/yourfolder \u304c\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5148\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u3067\u3059\u3002\u3053\u306e\u6642\u306e kcfinder \u5074\u306e kcfinder\/conf\/config.php \u306e\u5185\u5bb9\u306f\u3001\u524d\u534a\u3060\u3051\u3067\u3059\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">$_CONFIG = array(\r\n\r\n\/\/ GENERAL SETTINGS\r\n\r\n    'disabled' =&gt; false,\r\n    'uploadURL' =&gt; \"http:\/\/192.168.100.7\/kcfinder-3.12\/upload\",\r\n    'uploadDir' =&gt; \"\",\r\n    'theme' =&gt; \"default\",<\/code><\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067\u3001kcfinder\/conf\/config.php \u306e\u8a18\u8ff0\u304c\u4e0a\u66f8\u304d\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u3002\u5b9f\u969b\u306b\u5229\u7528\u3059\u308b\u5834\u5408\u306b\u306f\u3001\u4e0a\u8a18 index.php \u3092 iframe \u306e\u4e2d\u3067\u5229\u7528\u3057\u3066\u3001\u305d\u308c\u3092\u3055\u3089\u306b\u3000Moodle \u306e SCORM \u30b3\u30f3\u30c6\u30f3\u30c4\u3068\u3057\u3066\u5229\u7528\u3057\u307e\u3059\u3002SCORM \u30b3\u30f3\u30c6\u30f3\u30c4\u306f iframe \u306e\u9818\u57df\u306a\u306e\u3067\u3001iframe \u304c\uff12\u91cd\u306b\u306a\u3063\u3066\u3044\u3066\u8907\u96d1\u3067\u3059\u3002\u7c21\u5358\u306b\u8a66\u3057\u305f\u6240\u3001IE \u3067\u306f\u306a\u305c\u304b\u6700\u521d\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u958b\u3044\u305f\u6642\u306b\u4e0a\u624b\u304f\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5148\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u304c\u8a2d\u5b9a\u3067\u304d\u306a\u304f\u3066\u3001\u3082\u3046\u4e00\u5ea6\u958b\u304d\u306a\u304a\u3059\u3068\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002\u4ed6\u306e firefox \u3084 chrome \u306f\u4e0a\u624b\u304f\u8a2d\u5b9a\u3067\u304d\u307e\u3057\u305f\u3002edge \u306f\u9a5a\u3044\u305f\u3053\u3068\u306b\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30a2\u30c9\u30ec\u30b9\u304c\u95b2\u89a7\u3067\u304d\u306a\u3044\u306e\u3067\u3059\u306d\u3002\u4eca\u56de\u521d\u3081\u3066\u77e5\u308a\u307e\u3057\u305f\u3002\u81ea\u5206\u306e\u30d1\u30bd\u30b3\u30f3\u306f DHCP \u3067\u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u3066\u3001192.168.100.xxx \u3068\u3044\u3046\u30a2\u30c9\u30ec\u30b9\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u4f8b\u3048\u3070\u3001192.168.100.7 \u306e\u30b5\u30a4\u30c8\u3092\u898b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u3057\u304b\u3057\u3001192.168.200.xxx \u304b\u3089\u306f 192.168.100.7 \u3092\u898b\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3057\u305f\u3002\u7d50\u5c40\u3001\u4fe1\u983c\u6e08\u307f\u30b5\u30a4\u30c8\u306b\u767b\u9332\u3057\u305f\u3089\u958b\u304f\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190203a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190203a.png\" alt=\"\" width=\"1123\" height=\"628\" class=\"aligncenter size-full wp-image-7837\" srcset=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190203a.png 1123w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190203a-300x168.png 300w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190203a-768x429.png 768w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190203a-1024x573.png 1024w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190203a-600x336.png 600w\" sizes=\"auto, (max-width: 1123px) 100vw, 1123px\" \/><\/a><\/p>\n<p>(6) \u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u30a4\u30f3\u30e9\u30a4\u30f3\uff08inline\uff09\u3067\u5229\u7528\u3057\u305f\u3044\u3002\u4eca\u306e\u3068\u3053\u308d\u601d\u3046\u3088\u3046\u306b\u5229\u7528\u3067\u304d\u3066\u3044\u306a\u3044\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">  &lt;div id=\"editor1\" contenteditable=\"true\" style=\"width:100%; height:100%\"&gt;&#27492;&#20966;&#12395;&#26360;&#12367;&lt;\/div&gt;\r\n  &lt;script&gt;\r\n\r\n    CKEDITOR.disableAutoInline = true;\r\n\r\n    anEditor = CKEDITOR.inline('editor1', {\r\n\r\n      height: 300,\r\n\r\n&#9;filebrowserBrowseUrl: 'http:\/\/192.168.100.7\/kcfinder-3.12\/browse.php?opener=ckeditor&amp;type=files',\r\n&#9;filebrowserUploadUrl: 'http:\/\/192.168.100.7\/kcfinder-3.12\/upload.php'\r\n\r\n    });<\/code><\/pre>\n<p>ckeditor \u306e\u30d0\u30fc\u30b8\u30e7\u30f3 4.11.1 \u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3001textarea \u306f\u30a4\u30f3\u30e9\u30a4\u30f3\u306b\u306a\u3089\u306a\u3044\u3002\u305d\u308c\u3067\u3001\u4e0a\u8a18\u3067\u306f div \u3092\u5bfe\u8c61\u3068\u3057\u3066\u3044\u308b\u3002\u30c4\u30fc\u30eb\u30d0\u30fc\u306f\u4e0b\u56f3\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p><a href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190204a.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190204a.png\" alt=\"\" width=\"651\" height=\"647\" class=\"aligncenter size-full wp-image-7842\" srcset=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190204a.png 651w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190204a-150x150.png 150w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190204a-300x298.png 300w, http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/wp-content\/uploads\/2019\/01\/20190204a-600x596.png 600w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/a><\/p>\n<p>editor \u30a8\u30ea\u30a2\u306e\u6700\u4e0b\u90e8\u306b\u8868\u793a\u3055\u308c\u308b\u3002\u3067\u304d\u308c\u3070\u30c8\u30c3\u30d7\u306b\u8868\u793a\u3057\u305f\u3044\u3068\u601d\u3046\u304c\u3084\u308a\u65b9\u304c\u5206\u304b\u3089\u306a\u3044\u3002<\/p>\n<p>ckeditor \u3067\u66f8\u3044\u305f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3059\u308b\u3002\u3053\u3053\u3067 ckeditor \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306f anEditor \u3067\u3042\u308b\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">var tmpSrc = anEditor.getData();<\/code><\/pre>\n<p>\u66f8\u304d\u8fbc\u307f\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3059\u308b\u3002\u3053\u3053\u3067 tmpSrc \u304c\u66f8\u304d\u8fbc\u307f\u305f\u3044\u30c6\u30ad\u30b9\u30c8\u3067\u3042\u308b\u3002<\/p>\n<pre><code style=\"color:midnightblue; font-size:12px;white-space:pre-wrap\">anEditor.setData(tmpSrc);<\/code><\/pre>\n<p>\u66f8\u304d\u8fbc\u3080\u3068\u3059\u3050\u306b\u53cd\u6620\u3055\u308c\u30ea\u30f3\u30af\u5148\u306e\u753b\u50cf\u3082\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(1) kcfinder \u304b\u3089 upload \u306e\u969b\u306b\u300c\u30b5\u30fc\u30d0\u30fc\u306e\u5fdc\u7b54\u304c\u4e0d\u6b63\u300d\u3068\u3044 &#8230; <a class=\"more-link\" href=\"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/?p=7803\">Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-7803","post","type-post","status-publish","format-standard","hentry","category-column"],"_links":{"self":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7803"}],"version-history":[{"count":39,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7803\/revisions"}],"predecessor-version":[{"id":7845,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7803\/revisions\/7845"}],"wp:attachment":[{"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7803"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zairyo.susi.oita-u.ac.jp\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}