=== Raw HTML Pro ===
Contributors: whiteshadow
Tags: posts, formatting, javascript, html, css, code, disable
Requires at least: 3.0
Tested up to: 5.3
Stable tag: 1.9.1

Lets you use raw HTML or any other code in your posts, as well as disable smart quotes and other automatic formatting on a per-post basis.

== Description ==

Tired of WordPress mangling your content? Is the visual editor messing up the code you entered in the HTML view? With this plugin, you can prevent that. Just surround the content you want to protect with [raw]...[/raw] tags, and the plugin will ensure WordPress leaves it alone.

Also, the plugin will add a new editor widget that lets you disable formatting like "smart quotes" and automatic paragraphs on a per-post basis.

**Usage**

To prevent a part of your post or page from being formatted by WordPress, switch to the HTML view and surround that content with `[raw]...[/raw]` tags. Any text, HTML, JS, CSS, XML or other code you enter between those tags will be preserved exactly.

Example:

`[raw]
This 

is 

a 'test'!
[/raw]`

Note that any content protected by [raw] tags will no longer be editable in the Visual editor. You'll need to switch to HTML mode to modify it. Of course, you can still edit the rest of your post in the Visual editor.

== Installation ==

To install the plugin follow these steps :

1. Download the raw-html-pro.zip file to your computer.
1. Unzip the file.
1. Upload the "raw-html-pro" folder to your "/wp-content/plugins/" directory.
1. Deactivate the previous version of the plugin (if applicable).
1. Activate the new plugin through the 'Plugins' menu in WordPress.

== Frequently Asked Questions ==

= Is there a way to make the "Disable ..." settings be "On" by default? =

Yes. Open to the post editor and click the "Screen Options" button in the top-right part of the page. A settings panel will appear. Locate the "Raw HTML defaults" section and tick the appropriate checkboxes. Any changes you make to these settings will only affect new and edited posts.

== Changelog ==

= 1.9.1 =
* Fixed a conflict with Jetpack that could cause Raw HTML to trigger a fatal error during certain cron jobs.
* Tested up to WordPress 5.3 (only with the Classic Editor plugin).

= 1.9 =
* Added a way to preserve [raw] blocks in post excerpts. By default, the plugin will automatically remove any code that's inside [raw]...[/raw] tags from post excerpts. Now you can prevent that by adding this line to wp-config.php: `define('RAW_HTML_KEEP_RAW_IN_EXCERPTS', true);`
* Fixed the "<raw code>" placeholder not showing up when used in the "Classic" block in Gutenberg.

= 1.8.4 =
* Enabled the "Raw HTML" metabox for most custom post types. This box lets you turn off certain automatic formatting options like graphical smilies and automatic paragraph breaks.
* Tested up to WP 4.9.7.

= 1.8.3 =
* Fixed a bug where selecting text inside a [raw]...[/raw] block and then switching to the "Visual" tab would corrupt the text. This bug is similar to the one fixed in version 1.8.2.
* Mark as tested with WP 4.9.2.

= 1.8.2 =
* Fixed a compatibility issue where editing the contents of a [raw] shortcode and then immediately switching to the "Visual" tab could cause the shortcode to be replaced with a corrupted image.
* Tested up to WP 4.9.1.

= 1.8.1 =
* Added limited support for the page builder included with GoodLayers themes (e.g. Mediso).
* Fixed a crash when trying to activate the Pro version while the free version is still active. Now the plugin will display a notice telling the user to deactivate the old version first.
* Tested with WP 4.8.2 and 4.9-beta.

= 1.8 =
* Added a way to run shortcodes inside [raw] tags. To enable shortcodes, add the `shortcodes=1` attribute to the tag. Example: `[raw shortcodes=1]some code ... [my-shortcode] ... other code[/raw]`.
* Fixed a conflict with Events Calendar Pro (+ Community Events add-on). This should also fix conflicts with other plugins that remove default post filters like `wpautop`.
* Tested with WP 4.6-beta2.

= 1.7.2 =
* Fixed a "trying to get property of a non-object" notice.
* Tested up to WordPress 4.2.

= 1.7.1 =
* Tested with WP 4.0.

= 1.7 =
* Fixed a rare bug where all [raw]...[/raw] blocks in a post would be replaced with the content of the first block.
* Tested with WP 3.5.1 and WP 3.6-beta2.

= 1.6 =
* Fixed: Prevent WordPress from wrapping each [raw]...[/raw] block in a paragraph. Note: Doesn't affect inline [raw] blocks.
* Tested with WP 3.5-beta2.

= 1.5 =
* Fixed: Activating RawHTML Pro no longer breaks plugins that embed the Visual editor in their admin pages.
* Tested with WP 3.4.2 and WP 3.5-beta-1.

= 1.4 =
* Fixed a bug where switching from HTML to Visual mode could still mess up code protected by [raw] tags if it contained anything looking like a gallery shortcode.
* Fixed a conflict with WP-Syntax.
* Tested on WP 3.4.1

= 1.3 =
* Store per-post disable_* flags in a single post meta field instead of one field per flag.
* Tested on WordPress 3.4 (alpha).

= 1.2 =
* Fixed a minor conflict with the "Really simple Facebook Twitter share buttons" plugin. 
* Fixed incompatibility with SyntaxHighlighter Evolved.
* Tested on WordPress 3.3 (release candidate).

= 1.1 =
* Tested on WordPress 3.2.1
* Improved the checkbox layout in the plugin's post editor widget (extra whitespace).

= 1.0 =
* Initial release.
* Changes from the free version: added visual editor support.