No, it's here in GenericControls.template.php
$editor_container[\'', $editor_id, '\'].width("100%").height("100%");', $editor_context['rich_active'] ? '' : '
$editor_data[\'', $editor_id, '\'].setTextMode();', '
When rich_active is false it prints $editor_id'].setTextMode(); into the script because only 'the $editor_data[\'' is viewed as the other half of the ? : operation.
You need to make the whole '
$editor_data[\'', $editor_id, '\'].setTextMode();'
be one operation after the ? : operator.
BTW is there a way to NOT use this editor in elk and get the old one in SMF back? This editor just seems buggy in general to me. I've been fighting the thing trying to post this as cut and past into it awful. It gets totally confused on my linux box with cut and paste. It lets me middle mouse click to paste sometimes, other times not. It often doesn't know how to undo after pastes. When I was trying to fix the code tag problem it would often get get locked into code mode where everytime I hit enter it would open a new code box even though the code icon had been unclicked.
I'm really not sure what this editor is supposed to bring to the table.