RADEditor and css media types

3 posts, 1 answers
  1. Ivan
    Ivan avatar
    5 posts
    Member since:
    Oct 2012

    Posted 12 Jul 2012 Link to this post

    Hi,

    Is it allowed to include stylesheet classes inside @media and use them from Apply CSS Class Dropdown?

    For example: 

    @media screen {
      .test1 {
        background: red;
      }
      .test2 {
        background: blue;
      }
    }
      .test3 {
        background: green;
      }
      .test4 {
        background: yellow;
      }

    Why are there two different behaviors in Internet Explorer and Chrome/FireFox? Is it a bug?

    Result in Internet Explorer: 

    Apply CSS Class dropdown list has test1, test2, test3, test4 items. 

    Result in FireFox and Chrome: 

    Apply CSS Class dropdown list has only test3, test4 items. 

  2. Answer
    Rumen
    Admin
    Rumen avatar
    14437 posts

    Posted 17 Jul 2012 Link to this post

    Hello,

    Thank you for reporting this browser behavior.

    I logged the issue in our PITS system and we will enhance the Apply Class dropdown in one of the upcoming versions of RadEditor. Here you can find the PITS Issue: Public URL. The improvement is a complex task and if you want to display the test1 and test2 classes in the dropdown you should declare them outside of the media rule.

    We do appreciate your feedback and I updated your Telerik points.

    All the best,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. Ivan
    Ivan avatar
    5 posts
    Member since:
    Oct 2012

    Posted 18 Jul 2012 Link to this post

    Thank you for the answer. 
Back to Top