Hi guys,
It looks like a new bug was introduced in the latest 3.2 version that pisses off our customers. I have a plugin that creates <button> tag, based on <input> tag plugin. It uses editor.insertElement to insert button at current position. But, if there is new row (<br/>) before cursor, button grabs <br/> inside and looks ugly. Bug can be easily reproduced on live demo from this site - just press shift+enter to create <br>, then create html button at current position. Switch to source mode and back, you'll see that button jumped before <br>.
A fix would be great, a quick workaround would be appreciated.
It looks like a new bug was introduced in the latest 3.2 version that pisses off our customers. I have a plugin that creates <button> tag, based on <input> tag plugin. It uses editor.insertElement to insert button at current position. But, if there is new row (<br/>) before cursor, button grabs <br/> inside and looks ugly. Bug can be easily reproduced on live demo from this site - just press shift+enter to create <br>, then create html button at current position. Switch to source mode and back, you'll see that button jumped before <br>.
A fix would be great, a quick workaround would be appreciated.
Re: [BUG] insertElement grabs <br> before selection