Skip to content

Commit

Permalink
Make sure we load the plugins before loading tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Aug 11, 2014
1 parent b22cf91 commit 1cc15b5
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions patterns/tinymce/pattern.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,27 @@ toolbar: "undo redo | styleselect | bold italic | alignleft aligncenter alignrig

/*global alert:true */


define([
'jquery',
'underscore',
'mockup-patterns-base',
'mockup-patterns-relateditems',
'mockup-patterns-modal',
'tinymce',
'mockup-patterns-autotoc',
'text!mockup-patterns-tinymce-url/templates/result.xml',
'text!mockup-patterns-tinymce-url/templates/selection.xml',
'mockup-utils',
'mockup-patterns-tinymce-url/js/links',
'mockup-i18n'
], function($, _,
Base, RelatedItems, Modal, tinymce,
AutoTOC, ResultTemplate, SelectionTemplate,
utils, LinkModal, i18n) {
'use strict';


require(['tinymce'],
function(tinymce){
require([
Expand Down Expand Up @@ -107,26 +128,6 @@ require(['tinymce'],
function(undefined){
})
})

define([
'jquery',
'underscore',
'mockup-patterns-base',
'mockup-patterns-relateditems',
'mockup-patterns-modal',
'tinymce',
'mockup-patterns-autotoc',
'text!mockup-patterns-tinymce-url/templates/result.xml',
'text!mockup-patterns-tinymce-url/templates/selection.xml',
'mockup-utils',
'mockup-patterns-tinymce-url/js/links',
'mockup-i18n'
], function($, _,
Base, RelatedItems, Modal, tinymce,
AutoTOC, ResultTemplate, SelectionTemplate,
utils, LinkModal, i18n) {
'use strict';

i18n.loadCatalog('widgets');
var _t = i18n.MessageFactory('widgets');

Expand Down

0 comments on commit 1cc15b5

Please sign in to comment.