@innovastudio/contentbuilder 1.3.22 → 1.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -70702,7 +70702,15 @@ class Rte {
|
|
|
70702
70702
|
element = element.parentNode;
|
|
70703
70703
|
}
|
|
70704
70704
|
|
|
70705
|
-
|
|
70705
|
+
let cssUrl = '';
|
|
70706
|
+
|
|
70707
|
+
if (this.builder.googleFontPath) {
|
|
70708
|
+
const cssFileName = fontfamily.split(',')[0].toLowerCase().replace(/\s/g, '-') + '.css';
|
|
70709
|
+
cssUrl = this.builder.googleFontPath + cssFileName;
|
|
70710
|
+
dom.appendHtml(element, `<link href="${cssUrl}" rel="stylesheet" property="stylesheet" type="text/css">`);
|
|
70711
|
+
} else {
|
|
70712
|
+
dom.appendHtml(element, '<link href="//fonts.googleapis.com/css?family=' + fontname + d + o + '" rel="stylesheet" property="stylesheet" type="text/css">');
|
|
70713
|
+
}
|
|
70706
70714
|
}
|
|
70707
70715
|
}
|
|
70708
70716
|
|
|
@@ -73890,6 +73898,8 @@ class ContentBuilder {
|
|
|
73890
73898
|
assetPath: 'assets/',
|
|
73891
73899
|
// Used for the location of ionicons/ (see rte.js 2788) & scripts/ (see plugins/preview/plugin.js 237)
|
|
73892
73900
|
fontAssetPath: 'assets/fonts/',
|
|
73901
|
+
// Option for self-hosted fonts:
|
|
73902
|
+
// googleFontPath: 'assets/googlefonts/', // If set, will be used
|
|
73893
73903
|
snippetData: 'assets/minimalist-blocks/snippetlist.html',
|
|
73894
73904
|
// Deprecated
|
|
73895
73905
|
snippetUrl: 'assets/minimalist-blocks/content.js',
|