{"id":1195,"date":"2010-12-10T22:11:57","date_gmt":"2010-12-10T22:11:57","guid":{"rendered":"http:\/\/www.codingfriends.com\/?p=1195"},"modified":"2010-12-10T22:11:57","modified_gmt":"2010-12-10T22:11:57","slug":"ckeditor-adding-custom-style-sheet","status":"publish","type":"post","link":"https:\/\/www.codingfriends.com\/index.php\/2010\/12\/10\/ckeditor-adding-custom-style-sheet\/","title":{"rendered":"CKEditor &#8211; adding custom style sheet"},"content":{"rendered":"<p>Within the <a href=\"http:\/\/ckeditor.com\">CKEditor<\/a> editor you can add in custom style sheets to assist with styling of the content within the editor and here is how you do it<\/p>\n<pre lang=\"javascript\">\r\nCKEDITOR.config.contentsCss = '\/css\/mycssfilename.css' ;\r\n<\/pre>\n<p>After you have created the instance of the CKEditor you just need to add in to the configuration the contents cascading style sheet file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Within the CKEditor editor you can add in custom style sheets to assist with styling of the content within the editor and here is how you do it CKEDITOR.config.contentsCss = &#8216;\/css\/mycssfilename.css&#8217; ; After you have created the instance of the CKEditor you just need to add in to the configuration the contents cascading style sheet &hellip; <a href=\"https:\/\/www.codingfriends.com\/index.php\/2010\/12\/10\/ckeditor-adding-custom-style-sheet\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">CKEditor &#8211; adding custom style sheet<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[277,27,282],"class_list":["post-1195","post","type-post","status-publish","format-standard","hentry","category-html","tag-ckeditor","tag-css","tag-style-sheet"],"_links":{"self":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/1195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/comments?post=1195"}],"version-history":[{"count":1,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/1195\/revisions"}],"predecessor-version":[{"id":1196,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/posts\/1195\/revisions\/1196"}],"wp:attachment":[{"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/media?parent=1195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/categories?post=1195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codingfriends.com\/index.php\/wp-json\/wp\/v2\/tags?post=1195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}