trohrer
Member
Posted 4 years ago #
This problem with TinyMCE eating div tags is all over the support forum.
But there is a way to keep using the visual editor and make things work better--use a plugin like quicktags or write a set of replacement functions to provide formatted div code in your theme's functions.php.
I did the latter for my rounded corners inside wordpress posts article...
neurophyre
Member
Posted 4 years ago #
Why is this not fixed? It's been months. :|
richarduk
Member
Posted 4 years ago #
Yes, I'm looking as well :-)
Don't look :)
the wysiwyg animal is NOT for posting code. It's for code illiterates. If you want your code - disable it. Period.
neurophyre
Member
Posted 4 years ago #
Uh, we're using the code view to post code. The editor is still replacing div tags with p tags. There's no excuse for that, but thanks for playing.
Ben Tremblay
Member
Posted 4 years ago #
dhackney
Member
Posted 4 years ago #
If you are not using Safari and running at least WP 2.0, this is a solution:
link:
http://www.deanlee.cn/wordpress/fckeditor-for-wordpress-plugin/
or here:
http://wordpress.org/extend/plugins/fckeditor-for-wordpress-plugin/
It solved all problems mentioned in this thread that I shared.
- Displays and retains all raw code
- No elimination of code toggling between WSIWYG and code
- No elimination of code publishing and re-editing
- Enables copy and paste from MS Word with full retention of formatting (if desired)
I am running WP 2.2.2