{"id":15602,"date":"2011-11-06T21:16:29","date_gmt":"2011-11-06T21:16:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dont-break-the-code\/"},"modified":"2014-07-30T04:04:00","modified_gmt":"2014-07-30T04:04:00","slug":"dont-break-the-code","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/dont-break-the-code\/","author":442239,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":".3.1","stable_tag":"0.3.1","tested":"3.9.40","requires":"3.3","requires_php":"","requires_plugins":"","header_name":"Don't Break The Code","header_author":"Stranger Studios (WordCamp Philly)","header_description":"","assets_banners_color":"","last_updated":"2014-07-30 04:04:00","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.strangerstudios.com\/wp\/dont-break-the-code\/","header_author_uri":"http:\/\/www.strangerstudios.com","rating":5,"author_block_rating":0,"active_installs":30,"downloads":5168,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.2.3","0.3","0.3.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[3711,246,2150,2796],"plugin_category":[],"plugin_contributors":[78328],"plugin_business_model":[],"class_list":["post-15602","plugin","type-plugin","status-closed","hentry","plugin_tags-disable","plugin_tags-html","plugin_tags-tab","plugin_tags-visual-editor","plugin_contributors-strangerstudios","plugin_committers-strangerstudios"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dont-break-the-code.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The idea for this plugin came from a presentation at WordCamp Philly \n2011.<\/p>\n\n<p>Code from these other plugins has served as reference and inspiration, and was sometimes borrowed from:<\/p>\n\n<p>http:\/\/wordpress.org\/extend\/plugins\/disable-visual-editor-wysiwyg\/\nhttp:\/\/wordpress.org\/extend\/plugins\/raw-html\/<\/p>\n\n<p>Plans:<\/p>\n\n<ul>\n<li>Hide the disable option from non-admins.<\/li>\n<li>Possibly remove certain filters from the the_content filter, similar to the Raw HTML or Preserved HTML Editor Markup plugins.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>dont-break-the-code<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> \ndirectory of your site.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Look for the visual editor checkbox in the Screen Options of the edit \npost page.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>.3.1<\/h4>\n\n<ul>\n<li>Still works. Just updated the readme.<\/li>\n<\/ul>\n\n<h4>.2.3<\/h4>\n\n<ul>\n<li>Fixed bug where strikethrough wasn't being applied when toggling checkbox back and forth.<\/li>\n<\/ul>\n\n<h4>.2.2<\/h4>\n\n<ul>\n<li>Now only admins (current_user_can(\"manage_options\")) can see\/edit the disable visual editor checkbox.<\/li>\n<\/ul>\n\n<h4>.2.1<\/h4>\n\n<ul>\n<li>The checkbox wasn't showing up on the Edit Page page. Now it is. May need to figure a way to make this work with custom post types.<\/li>\n<\/ul>\n\n<h4>.2<\/h4>\n\n<ul>\n<li>Moved the checkbox into the screen options space.<\/li>\n<li>Updated the checkbox to switch disable\/enable and switch tabs without requiring a save or update.<\/li>\n<\/ul>\n\n<h4>.1<\/h4>\n\n<ul>\n<li>Initial Version. Pulled code from \"Disable the Visual Editor WYSIWYG\" (http:\/\/wordpress.org\/extend\/plugins\/disable-visual-editor-wysiwyg\/) and rewrote a few parts pased on my preferences for doing jQuery and which hook to use to determine we're on the edit post page.<\/li>\n<\/ul>","raw_excerpt":"Allows admins to disable the Visual editor tab on a per post basis.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=15602"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/strangerstudios"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15602"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15602"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15602"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15602"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15602"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}