mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
#125 - FIX: firefox support for disconnecting tinyMCE
This commit is contained in:
parent
1719ee3248
commit
92e3fd6d9a
@ -26,13 +26,13 @@
|
|||||||
placeholder: 'ui-state-highlight',
|
placeholder: 'ui-state-highlight',
|
||||||
forcePlaceholderSize: true,
|
forcePlaceholderSize: true,
|
||||||
start: function (e, ui) {
|
start: function (e, ui) {
|
||||||
htmleditors = $(e.srcElement).closest('.Widget').find('textarea.htmleditor');
|
htmleditors = $(ui.item).closest('.Widget').find('textarea.htmleditor');
|
||||||
$.each(htmleditors, function (k, i) {
|
$.each(htmleditors, function (k, i) {
|
||||||
tinyMCE.execCommand('mceRemoveControl', false, $(i).attr('id'));
|
tinyMCE.execCommand('mceRemoveControl', false, $(i).attr('id'));
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
stop: function (e, ui) {
|
stop: function (e, ui) {
|
||||||
htmleditors = $(e.srcElement).closest('.Widget').find('textarea.htmleditor');
|
htmleditors = $(ui.item).closest('.Widget').find('textarea.htmleditor');
|
||||||
$.each(htmleditors, function (k, i) {
|
$.each(htmleditors, function (k, i) {
|
||||||
tinyMCE.execCommand('mceAddControl', true, $(i).attr('id'));
|
tinyMCE.execCommand('mceAddControl', true, $(i).attr('id'));
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user