Hello, when selecting a custom css style which is valid on a div or a span the editor inserts a second element with the same class in addition to changing the selected one.
To replicate the issue simply use your on line example (http://demos.devexpress.com/ASPXHTMLEDITORDEMOS/ToolbarItems/CustomCSS.aspx), switch to HTML view, clean up all text and paste
<p>Row one</p><p>Row two</p><p>Row tree</p><p><br /></p>
switch to Design view, select "Row two", apply the "content" style by selecting it from the dropdown in the toolbar, switch to HTML view and you will see something like
<p>Row one</p><div class="CommonContent">Row two</div><div class="CommonContent"></div><p>Row tree<br /></p><p><br /></p>
This causes problems when background colors are applied by the style.
ASPxHtmlEditor - Direction of text selection produces different results in IE on applying custom styles to text
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.2.4Download Official Update
- v15.1.8Download Official Update
Hello Dario,
I have tried to reproduce the problem on my side, but my attempt was not successful. Please see the attached video and let me know if I missed something?
Hi Jenny, thank you for your quick response.
I've tried what you've done by myself and, with my big surprise, everything was right.
I've tried again and… it was wrong.
I think I guess the difference. It seems to be incredible but if you drag from right to left the result is right, if you drag from left to right it's wrong.
Please, see my attached video.
Hello,
I was able to reproduce this behavior on my side in IE 11 and passed this ticket to our developers for further research.
We will update this ticket as soon as we get the result.