Skip to content

Commit

Permalink
Make sure self.tiny is not null before setting its attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
frapell committed Mar 26, 2018
1 parent 21f8830 commit e482db2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mockup/patterns/tinymce/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,9 @@ define([
tinymce.init(tinyOptions);
self.tiny = tinymce.get(self.tinyId);

self.tiny.initialized = true;
if (self.tiny !== null){
self.tiny.initialized = true;
}

/* tiny really should be doing this by default
* but this fixes overlays not saving data */
Expand Down

0 comments on commit e482db2

Please sign in to comment.