jQuery UI Widgets Forums Editors Editor Standard HTML Across Browsers in jqxEditor

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Standard HTML Across Browsers in jqxEditor #102004

    henry_tk
    Participant

    Hello,

    I am curious if there is a way to standardize the HTML inserted into a jqxEditor across browsers. For example, when text is bolded using an editor, if you’re in Firefox, a <b> tag is added. But, if the same action is done in Chrome, a <span> tag with a style attribute of “font-weight:bold;” is added instead.

    Is there a way to make the editor add HTML in the same way regardless of the browser being used? My preference would be that, in the bolding example, a <b> is always added no matter what.

    Thanks,
    Henry

    Standard HTML Across Browsers in jqxEditor #102020

    Hristo
    Participant

    Hello Henry,

    The case where we have underline style it is created with style="text-decoration-line: underline;" in Chrome and Firefox but this style is not supported in IE. This is the reason for differences in the browsers.
    It is possible to make some workaround. Maybe check which browser is used at the current moment and replace this ‘underline’ style with <u/> tag.
    Thank you for the understanding.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.