mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 09:05:53 +00:00
BUGFIX: is tinyMCE is not loaded, we cannot call its function. This is specially important in a pop-up of ComplexTableField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@94238 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
d99445c01b
commit
233690b24d
@ -881,14 +881,16 @@ function nullConverter(url) {
|
|||||||
Behaviour.register({
|
Behaviour.register({
|
||||||
'textarea.htmleditor' : {
|
'textarea.htmleditor' : {
|
||||||
initialize : function() {
|
initialize : function() {
|
||||||
tinyMCE.execCommand("mceAddControl", true, this.id);
|
if(typeof tinyMCE != 'undefined'){
|
||||||
this.isChanged = function() {
|
tinyMCE.execCommand("mceAddControl", true, this.id);
|
||||||
return tinyMCE.getInstanceById(this.id).isDirty();
|
this.isChanged = function() {
|
||||||
}
|
return tinyMCE.getInstanceById(this.id).isDirty();
|
||||||
this.resetChanged = function() {
|
}
|
||||||
inst = tinyMCE.getInstanceById(this.id);
|
this.resetChanged = function() {
|
||||||
if (inst) inst.startContent = tinymce.trim(inst.getContent({format : 'raw', no_events : 1}));
|
inst = tinyMCE.getInstanceById(this.id);
|
||||||
}
|
if (inst) inst.startContent = tinymce.trim(inst.getContent({format : 'raw', no_events : 1}));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user