Skip to content

Commit 8e2c302

Browse files
committed
fix: js dependency loading without server
1 parent ce38e2e commit 8e2c302

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/demo/js/options/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export const renderOptions = {
3434
external,
3535
elements: {
3636
tinymce: {
37-
dependencies: { js: 'cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.11/tinymce.min.js' },
3837
action: {
3938
onRender: elem => {
4039
if (elem.id) {

src/lib/js/common/loaders.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const insertScript = src => {
4343
attrs: {
4444
type: 'text/javascript',
4545
async: true,
46-
src: `//${src.replace(/^https?:\/\//, '')}`,
46+
src,
4747
},
4848
action: {
4949
load: () => onLoadJavascript(script, resolve),

src/lib/js/components/controls/html/tinymce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class TinyMCEControl extends Control {
1717
attrs: {
1818
required: false,
1919
},
20-
dependencies: { js: 'cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.11/tinymce.min.js' },
20+
dependencies: { js: 'https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.11/tinymce.min.js' },
2121
// this action is passed to the rendered control/element
2222
// useful for actions and events on the control preview
2323
action: {

0 commit comments

Comments
 (0)