respect github sourcecode prettify

This commit is contained in:
Ian 2013-05-31 21:05:05 +02:00
parent e7c93ad835
commit 230175edd4

View File

@ -214,7 +214,7 @@ function serendipity_imageSelector_addToBody (str, textarea)
oEditor = xinha_editors[textarea];
} else {
// this is the last chance to retrieve the instance of the editor !
// editor has not been registered by the name of it's textarea
// editor has not been registered by the name of its textarea
// so we must iterate over editors to find the good one
for (var editorName in xinha_editors) {
if ('serendipity[' + textarea + ']' == xinha_editors[editorName]._textArea.name) {
@ -227,7 +227,7 @@ function serendipity_imageSelector_addToBody (str, textarea)
// the actual insert for the xinha editor
if (oEditor) {
if (oEditor._editMode != 'textmode') {
// if here the editior is in WYSIWYG mode so use the insert html function
// if here the editor is in WYSIWYG mode so use the insert html function
oEditor.insertHTML(str);
} else {
// if here just insert the text to the textarea ( named with the value of textarea variable )