Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit c611f5e

Browse files
Jakobovskideeg
authored andcommitted
Fixed bug in scenario when options.baseURL is undefined.
1 parent 1973297 commit c611f5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tinymce.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ angular.module('ui.tinymce', [])
109109
// element to be present in DOM before instantiating editor when
110110
// re-rendering directive
111111
$timeout(function() {
112-
tinymce.baseURL = options.baseURL;
112+
if (options.baseURL){
113+
tinymce.baseURL = options.baseURL;
114+
}
113115
tinymce.init(options);
114116
toggleDisable(scope.$eval(attrs.ngDisabled));
115117
});

0 commit comments

Comments
 (0)