>
Download This Plugin | |
Download Elegant Themes | |
Name | Save Me |
Version | 1.1 |
Author | David F. Carr |
Rating | 20 |
Last updated | 2011-03-21 12:57:00 |
Downloads |
718
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Save Me plugin added 3 bytes of resources to the Home page and 6 bytes of resources to the sample Post page.
Save Me plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Save Me plugin ads no tables to your Wordpress blog database.The Save Me plugin saves JavaScript and other inline code from distortion by the WordPress rich text editor. Add code in the editor's VISUAL mode, bracketing it with the shortcode [saveme][/saveme]
.
While it is possible without a plugin to switch to HTML editing mode and paste JavaScript into a post, often the code will be scrambled if you toggle back and forth between the HTML and Visual modes. For example, the TinyMCE editor sometimes eliminates what it doesn't understand -- like empty divs into which your JavaScript or AJAX widget needs to inject content. And since JavaScript code is not displayed with any representation in the visual editor, it's easy to accidentally delete.
In rich tech mode, the editor will treat your code as if it were a code sample you were writing about, rather than a script to be executed. You may see distortions, like quotation marks being turned into curly quotes, but at least you can keep track of where you inserted the code. The saveme shortcode function reverses HTML entity transformations and turns your JavaScript widget back into executable code.
The saveme shortcode has been tested with Facebook social widgets and Google Adsense JavaScript blocks. If you encounter JavaScript that does not work after being passed through this function, contact me through Carr Communications Inc. and I will try to determine why not.
This is a spinoff of a similar function in Facebook Tab Manager for WordPress