Results 1 to 6 of 6

Thread: Triton, HtmlEditor and Open Sans issue

    You found a bug! We've classified it as EXTJS-18545 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Feb 2014
    Posts
    15
    Vote Rating
    2
      0  

    Default Triton, HtmlEditor and Open Sans issue

    Hello.

    For quite some time that i have been using a html editor (with pretty much defaults settings, including font families) on a window and, till this day, never had any issue.
    After updating to Extjs 6 (b4 changing theme), the html editor was still working nice.

    However, after changing to the new theme, Triton (which i love, so job well done on that one), the html editor started having a rather heratic behaviour.

    Whenever i launch my window that has the html editor, the 'Open Sans' font family appears on the font dropbox, like this:

    htmledit1.PNG

    When i start editing anything, that said font on the dropdown disappears, like this:

    htmledit2.PNG

    So, unless i choose a different font, it keeps disappearing.
    If i do choose Open Sans, it gets applied, as u can see via the following source code:

    htmledit3.PNG

    But, like the 2nd image above, the text doesnt change to Open Sans (i believe that is Times New Roman).

    I have done a few tests like, for example:
    - Different browsers (Chrome and IE)
    - Changing the theme back to my old one (Crisp) and problem disappears and the Open Sans doesnt appear anymore
    - manually changing the fontFamilies on the htmleditor to, for example, just ['Arial'] makes it show 'Open Sans' and Arial.
    - Searching through the entire source code of the Extjs, i cannot find any reference to Open Sand except on CSS files. We cannot figure out how this font family ends up added to a dropdown.

    ALSO, im not sure if its related but the ext-all-rlt-debug is shouting the following warning on the console whenever i open the htmleditor window:

    Code:
    "[W] targetCls is missing. This may mean that getTargetEl() is being overridden but not applyTargetCls(). htmleditor-1050"
    Hope it helps...
    Thanks.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Vote Rating
    293
      0  

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Feb 2014
    Posts
    15
    Vote Rating
    2
      0  

    Default

    Your welcome... Good work and good luck

  4. #4
    Sencha Premium User alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    322
    Vote Rating
    51
      0  

    Default

    To work around, add this to your stylesheet:
    Code:
    .x-html-editor-wrap textarea {
     font-family:tahoma, arial, verdana, sans-serif; // Circumvents bug EXTJS-18545 in ExtJS 6.0.1
    }

  5. #5
    Sencha Premium Member
    Join Date
    Aug 2010
    Location
    Germany
    Posts
    35
    Vote Rating
    1
      0  

    Default

    Hi,

    I added the workaround to my stylesheet, but the problem is not solved.....

  6. #6
    Sencha User
    Join Date
    Feb 2014
    Posts
    15
    Vote Rating
    2
      0  

    Default

    Quote Originally Posted by michi-- View Post
    I added the workaround to my stylesheet, but the problem is not solved.....
    Hmm... worked on my project... the workaround, that is.

Similar Threads

  1. Jetty 9 with Theme Triton issues
    By andersonv1 in forum Ext 6: Q&A
    Replies: 1
    Last Post: 3 Jun 2015, 3:26 PM
  2. [OPEN] [OPEN] Problem HtmlEditor
    By pandim in forum Ext Designer: Bugs
    Replies: 5
    Last Post: 2 Jun 2011, 5:00 PM
  3. [OPEN-765][3.1.2]HtmlEditor FF3.6 Tab character failure
    By vtswingkid in forum Ext 3.x: Bugs
    Replies: 0
    Last Post: 22 Mar 2010, 9:50 AM
  4. Errors when open Ext.Window with htmleditor
    By Rafael in forum Ext 3.x: Help & Discussion
    Replies: 14
    Last Post: 15 May 2009, 1:47 PM
  5. Opera Sans Javascript No Workie
    By cklester in forum Ext 1.x: Help & Discussion
    Replies: 6
    Last Post: 17 Apr 2007, 9:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •