Skip to content

DeveloperWil/always-edit-in-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== Always Edit In HTML ===
Contributors: DeveloperWil
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BEUW6MXMN7WWE
Tags: HTML edit,always edit in HTML,HTML Tab,HTML Mode,edit post in HTML
Requires at least: 5.2
Requires Plugins: classic-editor
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 2.4.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Always opens up a specific page or post in HTML mode to preserve HTML code (classic editor only).

== Description ==

If you find yourself entering HTML code into the WordPress page/post editor only to have it reformatted or worse removed when in Visual mode then here is the solution for you.

Always Edit In HTML is a WordPress plugin that removes the "Visual" tab in the page/post editor and opens up your page or post in HTML mode, preserving your HTML code.

*Why would you need this plugin?*

The WordPress page/post editor has two tabs at the top right - "Visual" and "Text".

   1. The Text tab allows you to enter HTML code onto the page or post and when saving or publishing the post it preserves your code just the way you entered it.
   2. The Visual tab has all the fancy writing style tools but when you save or publish your page or post, WordPress parses and formats the content which may results in your HTML code not working or even being removed.

WordPress does not remember the tab option for each page or post.  It will open up a page or post using whichever Visual or Text tab you last used.

This means that if you were editing a post using the Visual tab, saved it and then edited the page or post you had entered the HTML code into, that page would open in Visual mode and you could loose your HTML code.

If only there was a plugin that gave you the option to always open up a page or post in HTML

Ta da!  Here's one.

Note: For WordPress 5.x users, this plugin will still work when the Classic Editor plugin is installed and enabled.  It does not work with the Gutenberg block editor.

= Plugin Page =
[Always Edit In HTML](http://www.limecanvas.com/wordpress-plugins/always-edit-in-html-wordpress-plugin/ "Always Edit In HTML WordPress Plugin")

== Installation ==

1. Download the plugin zip file & unzip it
2. Copy the folder always-edit-in-html into the directory /wp-content/plugins/ 
3. Activate the plugin through the 'Plugins' menu in WordPress

Open up a page, post or publicly declared custom post type and you will now see the "Always Edit In HTML" option box on the right column.

Check the option and save.

Next time you open the same page or post it will open up in HTML mode, removing the "Visual" and "Text" tabs.

Uncheck the option at any time to get the "Visual" and "Text" buttons and default opening behaviour back.

== Frequently Asked Questions ==

= Does the plugin do anything else? =

Nope.

== Screenshots ==

1. Always edit in HTML options box.  Check to turn on.
2. Option turned on and page/post is in HTML mode.  Visual and Text tabs removed.

== Changelog ==
= 2.4.6 =
* Tested on WordPress 6.6 with Classic Editor plugin activated
* Added tag Requires Plugins: classic-editor

= 2.4.5 =
* Testing on WordPress 6.2 with Classic Editor plugin activated

= 2.4.4 =
* Fixed PHP fatal error in PHP 8.x

= 2.4.3 =
* Tested on WordPress 6.0 with Classic Editor plugin activated

= 2.4.2 =
* Tested on WordPress 5.6 with Classic Editor plugin activated

= 2.4.1 =
* Tested on WordPress 5.0.3 with Classic Editor plugin activated
* Added note to readme - this plugin works on 5.0 in conjunction with the Classic Editor plugin

= 2.4.0 =
* Moved to minor release versioning (added extra .0)
* Tested on WordPress 4.8.1
* Added Requires PHP tag

= 2.3 =
* Corrected spelling mistake

= 2.2 =
* Changed PayPal donate link from Gravitational FX to Zero Point Development
* Tested on WordPress 4.7
* Corrected changelog version for limecanvas removal

= 2.1 =
* Added correct contributor DeveloperWil
* Updated screen shots
* Brand image replacement with Zero Point Development mark
* Changed all references of "HTML tab" to "Text tab"
* Checked compatibility with 4.5.2
* Removed limecanvas contributor

= 2.0 =
* Checked compatibility with 4.4
* Changed contributor to DeveloperWil

= 1.9 =
* Checked compatibility with 4.3

= 1.8 =
* Checked compatibility with 4.2.2
* Changed some mentions of "HTML" to "Text" for the reference to the editor tabs.
* Now supports any publicly declared custom post types

= 1.7 =
* Checked compatibility with 4.1.1
* Modified to work with UI changes from 4.1

= 1.6 =
* Checked compatibility with 4.1
* Added asset icon
* Addressed PHP notice generated by not checking to see if the wpnonce exists before verifying in *_save_postdata

= 1.5 =
* Checked compatibility with 4.0
* Changed getHTMLEditStatus() function name to always_edit_in_html_get_html_edit_status()

= 1.4 =
* Checks to make sure we're in the backend Dashboard
* Checks to make sure the global $post is set
* Checked compatibility with 3.9.1

= 1.3 =
* Fixed the bug that opened the window in Visual mode even though the tab was missing - doh!
* Checked compatibility with 3.9 RC1

= 1.2 =
* Tested with 3.5.1
* Now works with textarea HTML attribute
* Added language support

= 1.1 =
* Tested with 3.4 (beta 4).

= 1.0 =
* Initial release.

About

WordPress Plugin: Always Edit in HTML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages