Git Product home page Git Product logo

dont-break-the-code's Introduction

=== Don't Break The Code ===
Contributors: strangerstudios
Tags: disable, visual editor, html, tab
Requires at least: 3.0
Tested up to: 3.2.1
Stable tag: .2.3

Allows admins to disable the Visual editor tab on a per post basis.

== Description ==
The idea for this plugin came from a presentation at WordCamp Philly 
2011.

Code from these other plugins has served as reference and inspiration, and was sometimes borrowed from:

http://wordpress.org/extend/plugins/disable-visual-editor-wysiwyg/
http://wordpress.org/extend/plugins/raw-html/

Plans:

* Hide the disable option from non-admins.
* Possibly remove certain filters from the the_content filter, similar to the Raw HTML or Preserved HTML Editor Markup plugins.

== Installation ==

1. Upload the `dont-break-the-code` directory to the `/wp-content/plugins/` 
directory of your site.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Look for the visual editor checkbox in the Screen Options of the edit 
post page.

== Frequently Asked Questions ==

== Changelog ==

= .2.3 =
* Fixed bug where strikethrough wasn't being applied when toggling checkbox back and forth.

= .2.2 =
* Now only admins (current_user_can("manage_options")) can see/edit the disable visual editor checkbox.

= .2.1 =
* 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.

= .2 =
* Moved the checkbox into the screen options space.
* Updated the checkbox to switch disable/enable and switch tabs without requiring a save or update.

= .1 =

* 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.

dont-break-the-code's People

Contributors

ideadude avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.