fixed plain editor instance, lastely
This commit is contained in:
parent
86c78f5122
commit
c1215bb57e
|
@ -1,3 +1,7 @@
|
|||
2.8:
|
||||
----
|
||||
fixed 2.7, since staticpages and entryforms set the [id] different
|
||||
|
||||
2.7:
|
||||
----
|
||||
fixed wrong instance name for plain editor drop
|
||||
|
|
|
@ -50,7 +50,7 @@ function emoticonchooser(instance_name = '', this_instance = '', cke_txtarea = '
|
|||
tinyMCE.execInstanceCommand(this_instance, 'mceInsertContent', false, img);
|
||||
} else {
|
||||
// default case: no wysiwyg editor
|
||||
txtarea = document.getElementById(instance_name);
|
||||
txtarea = document.getElementById(cke_txtarea); // must be this, since staticpages and entryforms set the [id] different
|
||||
if (txtarea.createTextRange && txtarea.caretPos) {
|
||||
caretPos = txtarea.caretPos;
|
||||
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + ' ' + img + ' ' : caretPos.text + ' ' + img + ' ';
|
||||
|
|
|
@ -30,7 +30,7 @@ class serendipity_event_emoticonchooser extends serendipity_event
|
|||
'smarty' => '2.6.7',
|
||||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('version', '2.7');
|
||||
$propbag->add('version', '2.8');
|
||||
$propbag->add('event_hooks', array(
|
||||
'backend_entry_toolbar_extended' => true,
|
||||
'backend_entry_toolbar_body' => true,
|
||||
|
@ -128,7 +128,7 @@ class serendipity_event_emoticonchooser extends serendipity_event
|
|||
}
|
||||
}
|
||||
|
||||
// CKEDITOR needs this little switch
|
||||
// CKEDITOR and plain editor need this little switch
|
||||
if (preg_match('@^nugget@i', $func)) {
|
||||
$cke_txtarea = $func;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue