You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.
Hi, Im trying to use ui-tinymce with lazy loaded the tynyMCE npm module via webpack like:
// Main module
require('angular-ui-tinymce');
angular.module('pages', [
'ui.tinymce'
]);
// And then in my directive for text edit I load the tinymce
constructor () {
// Import TinyMCE
require.ensure([], function(require) {
require('tinymce/tinymce.min.js');
// List of plugins you want to use in TinyMCE
require('tinymce/plugins/advlist');
require('tinymce/plugins/anchor');
// TinyMCE theme
require('tinymce/themes/modern');
}, 'tinymce_bundle');
}
You could have your lazy loader add tinymce to the window. Otherwise, this library's link function would need to check that tinymce's module is available.
Hi, Im trying to use ui-tinymce with lazy loaded the tynyMCE npm module via webpack like:
Html template of my directive:
And it doesn't work,
textarea
always if just simply textarea.How can I use ui-tinymce with lazy loaded tinyCME core lib?
The text was updated successfully, but these errors were encountered: