jQWidgets Forums

jQuery UI Widgets Forums Editors Editor Verdana font

This topic contains 7 replies, has 2 voices, and was last updated by  silvochka 9 years, 8 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Verdana font Posts
  • Verdana font #75239

    silvochka
    Participant

    Hi!

    Could you please help me? I’m using your jqEditor and try to apply font ‘Verdana’.
    But this font doesn’t applied. If I see sources of entered text, I see that other fonts is applied to text and only Verdana is not applied:

    
    <span style="font-family: &quot;Comic Sans MS&quot;,cursive,sans-serif;">comic sans</span>
    <br>verdana<br>
    <span style="font-family: &quot;Times New Roman&quot;,Times,serif;">times new roman</span><br>
    

    There is source: http://jsfiddle.net/hrzfjpmo/2/

    May be there some issues in my code or bug in jqeditor?

    Thanks,
    Evgenia

    Verdana font #75242

    Vladimir
    Participant

    Hello Evgenia,

    From what I see in your example. The default font-style for the document body on the editor page is already set to Verdana, and this is why setting text to Verdana removes the element style because it is already the active font.
    If you change the default font, it will properly set inline style for the element for fonts different than the default one.

    Best Regards,
    Vladimir

    jQWidgets Team
    http://www.jqwidgets.com

    Verdana font #75244

    silvochka
    Participant

    Hi Vladimir,

    Could you please specify where is setting up ‘Verdana’ font as font by default?

    Thanks,
    Evgenia

    Verdana font #75254

    Vladimir
    Participant

    Hello Evgenia,

    This is the default settings for the jqxEditor and is auto generated on widget creation.
    You can overwrite the styles using the stylesheets: option.
    example:
    stylesheets: ['editor.css'],

    You can check this demo for an example.

    Best Regards,
    Vladimir

    jQWidgets Team
    http://www.jqwidgets.com

    Verdana font #75255

    silvochka
    Participant

    Thank you!

    Verdana font #75268

    silvochka
    Participant

    Hi again 🙂

    Is it possible to change behavior of jqEditor by some option?
    I mean, always set font to text, even if this font is default.

    Thanks,
    Evgenia

    Verdana font #75271

    Vladimir
    Participant

    Hello Evgenia,

    I am sorry but there is no such option.
    What you can do is change the default font to a font that you will not be using.
    This way you will have the font you have selected for each text.

    Best Regards,
    Vladimir

    jQWidgets Team
    http://www.jqwidgets.com

    Verdana font #75273

    silvochka
    Participant

    ok, anyway, thank you for help!

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.