{"id":228400,"date":"2022-10-13T12:55:00","date_gmt":"2022-10-13T09:55:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=228400"},"modified":"2022-11-09T02:15:03","modified_gmt":"2022-11-08T23:15:03","slug":"specialne-formatuvannja-redaktora-tinymce-u-wordpress","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/uk\/specialne-formatuvannja-redaktora-tinymce-u-wordpress\/","title":{"rendered":"\u0421\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 TinyMCE \u0443 WordPress"},"content":{"rendered":"<p><a href=\"https:\/\/hashnode.com\/@wholesomecode\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external\"><\/a><\/p>\n<p>\u0406\u043d\u043e\u0434\u0456 \u043f\u0456\u0434 \u0447\u0430\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f \u0431\u043b\u043e\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 WordPress \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e, \u0449\u043e\u0431 \u0432\u0456\u043d \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0432 \u043f\u0435\u0432\u043d\u0438\u043c \u0447\u0438\u043d\u043e\u043c. \u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043c\u0438 \u0440\u043e\u0431\u0438\u043c\u043e \u0446\u0435, \u0434\u043e\u0434\u0430\u044e\u0447\u0438 \u0441\u0442\u0438\u043b\u0456 \u0434\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0456\u0432 \u0442\u0435\u043a\u0441\u0442\u0443, \u0430\u043b\u0435 \u043c\u0438 \u043d\u0435 \u0437\u0430\u0432\u0436\u0434\u0438 \u0445\u043e\u0447\u0435\u043c\u043e, \u0449\u043e\u0431 \u043d\u0430\u0448\u0456 \u043a\u043b\u0456\u0454\u043d\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0432\u0430\u043b\u0438 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0438\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0456 \u0437\u0440\u043e\u0431\u0456\u0442\u044c \u0446\u0435 \u0432\u0440\u0443\u0447\u043d\u0443.<\/p>\n<p>\u0423 \u0446\u044c\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456 \u043c\u0438 \u0441\u0442\u0432\u043e\u0440\u0438\u043c\u043e \u043d\u0435\u0432\u0435\u043b\u0438\u043a\u0438\u0439 \u0444\u0456\u043b\u044c\u0442\u0440, \u044f\u043a\u0438\u0439 \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0434\u0430\u0442\u0438 \u0434\u043e \u0441\u0432\u043e\u0433\u043e <code>functions.php<\/code>\u0444\u0430\u0439\u043b\u0443, \u0449\u043e\u0431 \u043d\u0430\u0434\u0430\u0442\u0438 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0435\u0432\u0456 \u0434\u0435\u044f\u043a\u0456 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f, \u0449\u043e\u0431 \u0434\u043e\u0434\u0430\u0442\u0438 \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c \u0430\u0431\u0437\u0430\u0446\u0443 \u00abLead\u00bb.<\/p>\n<h2>\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0441\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f TinyMCE<\/h2>\n<p>\u041e\u0441\u044c \u0434\u0443\u0436\u0435 \u0448\u0432\u0438\u0434\u043a\u0438\u0439 \u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u0444\u0456\u043b\u044c\u0442\u0440\u0430 \u0432 \u0434\u0456\u0457. \u0412\u0456\u043d \u043f\u043e\u043a\u0430\u0437\u0443\u0454 \u0432\u0430\u043c:<\/p>\n<ul>\n<li>\u042f\u043a \u043f\u0435\u0440\u0435\u043c\u043a\u043d\u0443\u0442\u0438 \u043f\u0430\u043d\u0435\u043b\u044c \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0456\u0432, \u0449\u043e\u0431 \u0432\u0438 \u043c\u043e\u0433\u043b\u0438 \u0431\u0430\u0447\u0438\u0442\u0438 \u043c\u0435\u043d\u044e \u00ab\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u00bb.<\/li>\n<li>\u042f\u043a \u0437\u0430\u0441\u0442\u043e\u0441\u0443\u0432\u0430\u0442\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u043c\u0435\u043d\u044e \u00ab\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u00bb.<\/li>\n<li>\u042f\u043a \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u0438 \u0441\u0442\u0438\u043b\u0456<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\" alt=\"\u0421\u043f\u0435\u0446\u0456\u0430\u043b\u044c\u043d\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 TinyMCE \u0443 WordPress\" \/>\u0424\u043e\u0440\u043c\u0430\u0442\u0443\u0432\u0430\u043d\u043d\u044f TinyMCE \u0432 \u0434\u0456\u0457<\/p>\n<h2>\u041a\u043e\u0434<\/h2>\n<p>\u041a\u043e\u0434 \u0434\u0443\u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u0438\u0439, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0456\u0434\u043a\u043b\u044e\u0447\u0456\u0442\u044c <code>tiny_mce_before_init<\/code>\u0456 \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u0441\u0432\u0456\u0439 \u0432\u043b\u0430\u0441\u043d\u0438\u0439 \u0441\u0442\u0438\u043b\u044c \u0434\u043e <code>style_formats<\/code>\u043c\u0430\u0441\u0438\u0432\u0443. \u041e\u0431\u043e\u0432&#8217;\u044f\u0437\u043a\u043e\u0432\u043e \u0432\u043a\u0430\u0436\u0456\u0442\u044c \u043d\u0430\u0437\u0432\u0443, \u0442\u0438\u043f \u0435\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u044f\u043a\u0438\u0439 \u0432\u0438 \u0431\u0430\u0436\u0430\u0454\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438, \u0456, \u043d\u0430\u0439\u0433\u043e\u043b\u043e\u0432\u043d\u0456\u0448\u0435, \u043a\u043b\u0430\u0441.<\/p>\n<pre><code>\nfunction wholesomecode_tinymce_formatting( $settings) {\n    $style_formats = array(\n        array(\n            'title'   =&gt; 'Lead Paragraph',\n            'block'   =&gt; 'p',\n            'classes' =&gt; 'lead',\n            'wrapper' =&gt; false,\n        ),\n    );\n    $settings['style_formats'] = json_encode( $style_formats );\n    return $settings;\n}\nadd_filter( 'tiny_mce_before_init', 'wholesomecode_tinymce_formatting' );\n<\/code><\/pre>\n<h3>\u0421\u0442\u0438\u043b\u0456<\/h3>\n<p>\u0417\u0432\u0438\u0447\u0430\u0439\u043d\u043e, \u0431\u0435\u0437 \u043d\u0435\u0432\u0435\u043b\u0438\u043a\u043e\u0457 \u0441\u0442\u0430\u0439\u043b\u0456\u043d\u0433\u0443 \u043d\u0456\u0447\u043e\u0433\u043e \u043d\u0435 \u0432\u0438\u0439\u0434\u0435. \u041e\u0431\u043e\u0432\u2019\u044f\u0437\u043a\u043e\u0432\u043e \u0434\u043e\u0434\u0430\u0439\u0442\u0435 \u0441\u0442\u0438\u043b\u0456 \u0434\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e WordPress <code>styles.css<\/code>, \u0449\u043e\u0431 \u0432\u0430\u0448 Lead \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0430\u0432\u0441\u044f \u043d\u0430 \u043f\u0435\u0440\u0435\u0434\u043d\u044c\u043e\u043c\u0443 \u043f\u043b\u0430\u043d\u0456, \u0430 \u0442\u0430\u043a\u043e\u0436 \u043e\u0431\u043e\u0432\u2019\u044f\u0437\u043a\u043e\u0432\u043e \u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0439\u0442\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044e \u0441\u0442\u0438\u043b\u0456\u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430, \u0449\u043e\u0431 \u043a\u043e\u0434 \u0432\u0456\u0434\u043e\u0431\u0440\u0430\u0436\u0430\u0432\u0441\u044f \u0432 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0456 (\u0446\u0435 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/add_editor_style\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\"><code>add_editor_style()<\/code><\/a>\u0434\u043b\u044f \u0446\u044c\u043e\u0433\u043e).<\/p>\n<pre><code>\n.lead {\n    font-size: 120%;\n}\n<\/code><\/pre>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/wholesomecode.ltd\" class=\"external external_icon\">wholesomecode.ltd<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0406\u043d\u043e\u0434\u0456 \u043f\u0456\u0434 \u0447\u0430\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044f \u0431\u043b\u043e\u043a\u0443 \u0442\u0435\u043a\u0441\u0442\u0443 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 WordPress \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e, \u0449\u043e\u0431 \u0432\u0456\u043d \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0432 \u043f\u0435\u0432\u043d\u0438\u043c \u0447\u0438\u043d\u043e\u043c. \u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043c\u0438 \u0440\u043e\u0431\u0438\u043c\u043e \u0446\u0435, \u0434\u043e\u0434\u0430\u044e\u0447\u0438 \u0441\u0442\u0438\u043b\u0456 \u0434\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0456\u0432 \u0442\u0435\u043a\u0441\u0442\u0443, \u0430\u043b\u0435 \u043c\u0438 \u043d\u0435 \u0437\u0430\u0432\u0436\u0434\u0438 \u0445\u043e\u0447\u0435\u043c\u043e&#8230;<\/p>\n","protected":false},"author":1,"featured_media":224229,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[902,849,923,725],"tags":[1174],"class_list":["post-228400","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kod-3","category-pidruchnyky","category-inshyj","category-rozrobnyk","tag-affiai-uk"],"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/228400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/comments?post=228400"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/posts\/228400\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media\/224229"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/media?parent=228400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/categories?post=228400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/uk\/wp-json\/wp\/v2\/tags?post=228400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}