Bug Report T300888
Visible to All Users

ASPxHtmlEditor - Direction of text selection produces different results in IE on applying custom styles to text

created 9 years ago

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.

Comments (3)
DevExpress Support Team 9 years ago

    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?

    CD CD
    Castiglioni Dario 9 years ago

      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.

      DevExpress Support Team 9 years ago

        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.

        Answers approved by DevExpress Support

        created 9 years ago

        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.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.