View | Details | Raw Unified | Return to bug 48812 | Differences between
and this patch

Collapse All | Expand All

(-)a/management/univention-web/js/widgets/Editor.js (-1 / +9 lines)
 Lines 32-45   define([ Link Here 
32
	"dojo/_base/declare",
32
	"dojo/_base/declare",
33
	"dijit/Editor",
33
	"dijit/Editor",
34
	"umc/widgets/_FormWidgetMixin",
34
	"umc/widgets/_FormWidgetMixin",
35
	"dompurify/purify",
35
	"dijit/_editor/plugins/ViewSource",
36
	"dijit/_editor/plugins/ViewSource",
36
	"dijit/_editor/plugins/FullScreen",
37
	"dijit/_editor/plugins/FullScreen",
37
	"dojox/editor/plugins/PrettyPrint"
38
	"dojox/editor/plugins/PrettyPrint"
38
], function(declare, Editor, _FormWidgetMixin) {
39
], function(declare, Editor, _FormWidgetMixin, purify) {
39
	return declare("umc.widgets.Editor", [ Editor, _FormWidgetMixin ], {
40
	return declare("umc.widgets.Editor", [ Editor, _FormWidgetMixin ], {
40
		labelPosition: 'top',
41
		labelPosition: 'top',
41
		extraPlugins: ['viewSource', 'fullscreen', 'prettyprint'],
42
		extraPlugins: ['viewSource', 'fullscreen', 'prettyprint'],
42
43
44
		contentPreFilters: [
45
			purify.sanitize
46
		],
47
		contentPostFilters: [
48
			purify.sanitize
49
		],
50
43
		ready: function() {
51
		ready: function() {
44
			return this.onLoadDeferred;
52
			return this.onLoadDeferred;
45
		}
53
		}

Return to bug 48812