XHanch Studio Log in | Register | Cart

Forum

[How to] Stop remov...
 
Notifications
Clear all

[How to] Stop removing br tags while switching from Visual to HTML editor

3 Posts
2 Users
0 Likes
1,190 Views
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

By default, WordPress will removing br tags while switching from Visual editor to HTML editor when editing/creating a post/page.
To prevent this, simply replace wp-admin/js/editor.js with this modified one (attached)

 
Posted : 30/04/2011 5:47 pm
(@Jungledongle)
Posts: 1
New Member Guest
 

Did not work for me

 
Posted : 23/02/2012 8:41 pm
XHanch
(@xhanch-alt)
Posts: 2105
Member Admin
Topic starter
 

Did not work for me

It should be working fine even with the latest WordPress Version (currently 3.3.1)
Have you tried to clear your browser cache? JavaScripts are mostly cached by your browser so any changes may not take effect.

 
Posted : 29/02/2012 1:47 am
Share:

× Close Menu