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 / +12 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
		_setValueAttr: function(value) {
45
			value = purify.sanitize(value);
46
			this.inherited(arguments);
47
		},
48
49
		_getValueAttr: function() {
50
			var value = this.inherited(arguments);
51
			return purify.sanitize(value);
52
		},
53
43
		ready: function() {
54
		ready: function() {
44
			return this.onLoadDeferred;
55
			return this.onLoadDeferred;
45
		}
56
		}

Return to bug 48812