source editor removes <br /> tags

Topics: Troubleshooting, Visual editor
Sep 14, 2011 at 8:16 PM


source editor removes <br /> tags inside a  <p> tag.

is there a way to prevent that, anyone knows?


Sep 15, 2011 at 8:34 AM

Hello, it is known issue for 2.1.1 version  and it is fixed in version 2.1.3+

Workaround: locate file ~\Composite\content\misc\editors\visualeditor\bindings\VisualEditorPageBinding.js , edit it and locate if there is code like this: 

		//Fix <br> in tag <pre> for FF < 4.0
		if (html.indexOf("<br>") > -1) {
			html = html.replace(/<br>/g, "\n");
If it exists, just comment it and save file. Clear browser cache and check out.

Sep 15, 2011 at 7:05 PM

 You made my day.  thanks a lot Inna