argous 1.2.205 → 1.2.206
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.
|
@@ -290,9 +290,9 @@ var Editor = /** @class */ (function (_super) {
|
|
|
290
290
|
});
|
|
291
291
|
};
|
|
292
292
|
Editor.prototype.getScriptSrc = function () {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
if (typeof this.props.tinymceScriptSrc === 'string') {
|
|
294
|
+
return this.props.tinymceScriptSrc;
|
|
295
|
+
}
|
|
296
296
|
var channel = this.props.cloudChannel;
|
|
297
297
|
var apiKey = this.props.apiKey ? this.props.apiKey : 'no-api-key';
|
|
298
298
|
return "https://cdn.tiny.cloud/1/" + apiKey + "/tinymce/" + channel + "/tinymce.min.js";
|
|
@@ -179,12 +179,13 @@ export class Editor extends React.Component<IAllProps> {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
private getScriptSrc() {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
182
|
+
if (typeof this.props.tinymceScriptSrc === 'string') {
|
|
183
|
+
return this.props.tinymceScriptSrc;
|
|
184
|
+
}
|
|
185
|
+
|
|
185
186
|
const channel = this.props.cloudChannel;
|
|
186
187
|
const apiKey = this.props.apiKey ? this.props.apiKey : 'no-api-key';
|
|
187
|
-
|
|
188
|
+
|
|
188
189
|
return `https://cdn.tiny.cloud/1/${apiKey}/tinymce/${channel}/tinymce.min.js`;
|
|
189
190
|
}
|
|
190
191
|
|