DCTM:xCP Customize HTML Editor

Ext.define("company.form.field.HtmlEditor", {
  override: "Ext.form.field.HtmlEditor",
  initDefaultFont: function(options) {
    if (!this.enableFont) {
      return;
    }
    return this.callParent();
  },
  getDocMarkup: function() {
    var docMarkup = this.callParent();
    docMarkup = docMarkup.replace("<head>",
      "<head><link type='text/css' rel='Stylesheet' " +
      "href='component/xCPUIFonts/google_fonts_library/lib/google-fonts/css/google-fonts.css'>");
    return docMarkup;
  }
});

Leave a Reply

Your email address will not be published. Required fields are marked *