resolve/refinerycms — Issue #1267: Wymeditor : applying styles to mixed content
Author: robink
Created: 2012-01-31 18:33:15+00:00
State: open

Is the following a feature?

Consider the following selection and content in Wymeditor

```html
lorem ipsum dolor sin ametlorem ipsum dolor anec dominus
```

If I try to apply style2 on this, the editor go nuts.

I suspect the switchTo function to not work properly... I guess it should close any "cutted" tag before doing the bold command. https://github.com/resolve/refinerycms/blob/master/core/app/assets/javascripts/wymeditor/jquery.refinery.wymeditor.js.erb#L1174