{"id":3547,"date":"2022-04-06T14:02:48","date_gmt":"2022-04-06T05:02:48","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=3547"},"modified":"2024-01-06T19:15:49","modified_gmt":"2024-01-06T10:15:49","slug":"post-3547","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/3547","title":{"rendered":"CKEditor(WYSIWYG\u30a8\u30c7\u30a3\u30bf)\u306e\u8a2d\u7f6e\u65b9\u6cd5\u3068\u65e5\u672c\u8a9e\u5316"},"content":{"rendered":"<p>\u4eca\u307e\u3067WYSIWYG\u30a8\u30c7\u30a3\u30bf\u3092\u5c0e\u5165\u3059\u308b\u969b\u306fNicEdit\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u304c\u3001\u3042\u3093\u307e\u308a\u898b\u305f\u76ee\u304c\u597d\u304d\u3058\u3083\u306a\u304b\u3063\u305f\u3002\u8a2d\u7f6e\u304c\u697d\u3067\u898b\u305f\u76ee\u3082\u4eca\u98a8\u3063\u307d\u3044\u306e\u304c\u4f55\u304b\u7121\u3044\u304b\u63a2\u3057\u305f\u3068\u3053\u308dCKEditor\u304c\u826f\u304b\u3063\u305f\u3002\u4ee5\u4e0b\u306b\u8a2d\u7f6e\u65b9\u6cd5\u3068\u65e5\u672c\u8a9e\u5316\u306e\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u516c\u5f0f\u30b5\u30a4\u30c8<\/h2>\n<h3>\u30d0\u30fc\u30b8\u30e7\u30f34<\/h3>\n<p><a href=\"https:\/\/ckeditor.com\/docs\/ckeditor4\/latest\/\" target=\"_blank\" rel=\"noopener\">https:\/\/ckeditor.com\/docs\/ckeditor4\/latest\/<\/a><\/p>\n<h3>\u30d0\u30fc\u30b8\u30e7\u30f35<\/h3>\n<p><a href=\"https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/\" target=\"_blank\" rel=\"noopener\">https:\/\/ckeditor.com\/docs\/ckeditor5\/latest\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u30b5\u30f3\u30d7\u30eb<\/h2>\n<h3>\u30d0\u30fc\u30b8\u30e7\u30f34<\/h3>\n<p><a href=\"https:\/\/taitan916.info\/sample\/CKEditor\/\" target=\"_blank\" rel=\"noopener\">https:\/\/taitan916.info\/sample\/CKEditor\/<\/a><\/p>\n<h3>\u30d0\u30fc\u30b8\u30e7\u30f35<\/h3>\n<p><a href=\"https:\/\/taitan916.info\/sample\/CKEditor\/index2.php\" target=\"_blank\" rel=\"noopener\">https:\/\/taitan916.info\/sample\/CKEditor\/index2.php<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9(\u30d0\u30fc\u30b8\u30e7\u30f34)<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\"&gt;\r\n&lt;title&gt;CKEditor&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n    &lt;?php if( $_POST ){ ?&gt;\r\n        &lt;div&gt;\u9001\u4fe1\u7d50\u679c:&lt;\/div&gt;\r\n        &lt;pre&gt;&lt;?php var_dump($_POST['editor']);?&gt;&lt;\/pre&gt;\r\n    &lt;?php } ?&gt;\r\n\r\n    &lt;form action=\".\/\" method=\"post\"&gt;\r\n        &lt;textarea name=\"editor\" class=\"ckeditor\"&gt;&lt;\/textarea&gt;&lt;br&gt;\r\n        &lt;input type=\"submit\" value=\"\u9001\u4fe1\"&gt;\r\n    &lt;\/form&gt;\r\n\r\n    &lt;script src=\"\/\/cdn.ckeditor.com\/4.5.9\/standard\/ckeditor.js\"&gt;&lt;\/script&gt;\r\n    &lt;script&gt;\r\n    CKEDITOR.replace('editor');\r\n    &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f34\u306f\u7279\u306b\u8a2d\u5b9a\u3057\u306a\u304f\u3066\u3082\u65e5\u672c\u8a9e\u5316\u3055\u308c\u3066\u3044\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9(\u30d0\u30fc\u30b8\u30e7\u30f35)<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">&lt;html lang=\"ja\"&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=\"Content-Type\" content=\"text\/html; charset=UTF-8\"&gt;\r\n&lt;title&gt;CKEditor&lt;\/title&gt;\r\n&lt;style&gt;\r\n.ck-editor__editable_inline {\r\n    min-height: 200px;\r\n}\r\n&lt;\/style&gt;\r\n\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n\r\n    &lt;?php if( $_POST ){ ?&gt;\r\n        &lt;div&gt;\u9001\u4fe1\u7d50\u679c:&lt;\/div&gt;\r\n        &lt;pre&gt;&lt;?php var_dump($_POST['editor']);?&gt;&lt;\/pre&gt;\r\n    &lt;?php } ?&gt;\r\n\r\n    &lt;form action=\".\/index2.php\" method=\"post\"&gt;\r\n        &lt;textarea name=\"editor\" id=\"editor\"&gt;&lt;\/textarea&gt;&lt;br&gt;\r\n        &lt;input type=\"submit\" value=\"\u9001\u4fe1\"&gt;\r\n    &lt;\/form&gt;\r\n\r\n    &lt;script src=\"\/\/cdn.ckeditor.com\/ckeditor5\/33.0.0\/classic\/ckeditor.js\"&gt;&lt;\/script&gt;\r\n    &lt;script src=\"\/\/cdn.ckeditor.com\/ckeditor5\/33.0.0\/classic\/translations\/ja.js\"&gt;&lt;\/script&gt;\r\n\r\n    &lt;script&gt;\r\n    ClassicEditor.create( document.querySelector( '#editor' ), {\r\n        language: 'ja'\r\n    }).then( editor =&gt; {\r\n        console.log( editor );\r\n    }).catch( error =&gt; {\r\n        console.error( error );\r\n    });\r\n    &lt;\/script&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f35\u306f\u300c&lt;script src=\"\/\/cdn.ckeditor.com\/ckeditor5\/33.0.0\/classic\/translations\/ja.js\"&gt;&lt;\/script&gt;\u300d\u3092\u547c\u3073\u51fa\u3059\u306e\u3068\u3001\u300clanguage: 'ja'\u300d\u3067\u8a00\u8a9e\u6307\u5b9a\u304c\u5fc5\u8981\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u6240\u611f<\/h2>\n<p>\u3069\u3061\u3089\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3082CDN\u3067\u4f7f\u3048\u3066\u4fbf\u5229\u3002\u30d0\u30fc\u30b8\u30e7\u30f35\u306e\u65b9\u304c\u898b\u305f\u76ee\u306f\u826f\u3055\u3052\u3002\u4eca\u5f8cWYSIWYG\u30a8\u30c7\u30a3\u30bf\u3092\u5c0e\u5165\u3059\u308b\u969b\u306f\u9078\u629e\u80a2\u306e\u4e00\u3064\u3068\u3057\u3066\u899a\u3048\u3066\u304a\u304f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u307e\u3067WYSIWYG\u30a8\u30c7\u30a3\u30bf\u3092\u5c0e\u5165\u3059\u308b\u969b\u306fNicEdit\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u304c\u3001\u3042\u3093\u307e ... <\/p>\n","protected":false},"author":1,"featured_media":1067,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[4],"tags":[86],"class_list":["post-3547","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-wysiwyg"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=3547"}],"version-history":[{"count":0,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/3547\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1067"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=3547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=3547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=3547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}