Fix regression with projector loading.
Projector requires Editor provider in core/base.js instead of site.js because MotionComments (in motions/base.js) uses now Editor factory.
This commit is contained in:
parent
8ec6681e81
commit
e315cbad89
@ -460,6 +460,40 @@ angular.module('OpenSlidesApp.core', [
|
||||
}
|
||||
])
|
||||
|
||||
// Options for TinyMCE editor used in various create and edit views.
|
||||
// Required in core/base.js because MotionComment factory which used this
|
||||
// factory has to placed in motions/base.js.
|
||||
.factory('Editor', [
|
||||
'gettextCatalog',
|
||||
function (gettextCatalog) {
|
||||
return {
|
||||
getOptions: function (images, inlineMode) {
|
||||
if (inlineMode === undefined) {
|
||||
inlineMode = false;
|
||||
}
|
||||
return {
|
||||
language_url: '/static/tinymce/i18n/' + gettextCatalog.getCurrentLanguage() + '.js',
|
||||
theme_url: '/static/js/openslides-libs.js',
|
||||
skin_url: '/static/tinymce/skins/lightgray/',
|
||||
inline: inlineMode,
|
||||
statusbar: false,
|
||||
browser_spellcheck: true,
|
||||
image_advtab: true,
|
||||
image_list: images,
|
||||
plugins: [
|
||||
'lists link autolink charmap preview searchreplace code fullscreen',
|
||||
'paste textcolor colorpicker image imagetools'
|
||||
],
|
||||
menubar: '',
|
||||
toolbar: 'undo redo searchreplace | styleselect | bold italic underline strikethrough ' +
|
||||
'forecolor backcolor removeformat | bullist numlist | outdent indent | ' +
|
||||
'link image charmap table | code preview fullscreen'
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
])
|
||||
|
||||
/* Model for a projector.
|
||||
*
|
||||
* At the moment we use only one projector, so there will be only one object
|
||||
|
@ -405,37 +405,6 @@ angular.module('OpenSlidesApp.core.site', [
|
||||
}
|
||||
])
|
||||
|
||||
// Options for TinyMCE editor used in various create and edit views.
|
||||
.factory('Editor', [
|
||||
'gettextCatalog',
|
||||
function (gettextCatalog) {
|
||||
return {
|
||||
getOptions: function (images, inlineMode) {
|
||||
if (inlineMode === undefined) {
|
||||
inlineMode = false;
|
||||
}
|
||||
return {
|
||||
language_url: '/static/tinymce/i18n/' + gettextCatalog.getCurrentLanguage() + '.js',
|
||||
theme_url: '/static/js/openslides-libs.js',
|
||||
skin_url: '/static/tinymce/skins/lightgray/',
|
||||
inline: inlineMode,
|
||||
browser_spellcheck: true,
|
||||
image_advtab: true,
|
||||
image_list: images,
|
||||
plugins: [
|
||||
'lists link autolink charmap preview searchreplace code fullscreen',
|
||||
'paste textcolor colorpicker image imagetools wordcount'
|
||||
],
|
||||
menubar: '',
|
||||
toolbar: 'undo redo searchreplace | styleselect | bold italic underline strikethrough ' +
|
||||
'forecolor backcolor removeformat | bullist numlist | outdent indent | ' +
|
||||
'link image charmap table | code preview fullscreen'
|
||||
};
|
||||
}
|
||||
};
|
||||
}
|
||||
])
|
||||
|
||||
// html-tag os-form-field to generate generic from fields
|
||||
// TODO: make it possible to use other fields then config fields
|
||||
.directive('osFormField', [
|
||||
|
Loading…
Reference in New Issue
Block a user