=== Tooltester Clean Paste for Google Docs === Contributors: tooltester Tags: google docs, paste, cleanup, formatting, spans Requires at least: 5.0 Tested up to: 6.9 Requires PHP: 7.2 Stable tag: 1.0.3 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Removes the messy inline formatting Google Docs leaves behind when you paste into the WordPress editor. == Description == When you copy content from Google Docs and paste it into WordPress, you get messy HTML like this: `Your perfectly normal text.` And list items end up looking like this: `
` or `` blocks (safe for tutorial sites that show HTML examples)
* Custom fields, widgets, menus, or anything outside the post editor
No settings. No admin page. No JavaScript. Just one lightweight filter that runs on save.
**Trademark notice:** This plugin is not affiliated with, endorsed by, or sponsored by Google LLC. "Google Docs" is a trademark of Google LLC and is used here only to describe the source of the formatting this plugin cleans up.
== Installation ==
1. Upload the `tooltester-clean-paste-for-google-docs` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu in WordPress
3. That's it. Paste from Google Docs and save as usual.
== Frequently Asked Questions ==
= Does this clean up posts I already published? =
It cleans content when you save. So if you open an older post and hit Update, it will clean that post. It does not automatically batch-process existing posts.
= Will it break my formatting? =
No. `font-weight: 400` means "normal weight," which is the browser default. Removing it changes nothing visually. The plugin only removes formatting that has zero visible effect on your site.
= Does it work with the block editor (Gutenberg)? =
Yes. The cleanup runs server-side on save, so it works with both the block editor and the classic editor.
= Does it work with code blocks? =
Yes. Content inside `` and `` tags is left completely untouched. If you write tutorials that include HTML examples, those examples are safe.
= Can I use this with other paste-cleanup plugins? =
Yes. This plugin uses a standard WordPress filter and plays nicely with others.
== Screenshots ==
1. Before: messy Google Docs markup in the code editor view
2. After: clean HTML after saving with the plugin active
== Changelog ==
= 1.0.3 =
* Added a one-time, dismissible admin notice with a link to the Tooltester newsletter
= 1.0.2 =
* Moved trademark notice to the end of the description for better readability
= 1.0.1 =
* Added cleanup of `style="font-weight: 400;"` on list items
* Added cleanup of `aria-level` attributes on list items
* Protected `` and `` blocks from being modified
= 1.0.0 =
* Initial release
* Strips `` wrappers from post content on save