upport master → 2.0 in 2k11/serendipity_editor.js.tpl (fixed typos)
Do not forget to remove engl short (not) notations in js file doc notes, to help github prettifier
This commit is contained in:
@@ -304,7 +304,7 @@ function serendipity_imageSelector_addToBody (str, textarea)
|
|||||||
oEditor = xinha_editors[textarea];
|
oEditor = xinha_editors[textarea];
|
||||||
} else {
|
} else {
|
||||||
// this is the last chance to retrieve the instance of the editor !
|
// 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
|
// so we must iterate over editors to find the good one
|
||||||
for (var editorName in xinha_editors) {
|
for (var editorName in xinha_editors) {
|
||||||
if ('serendipity[' + textarea + ']' == xinha_editors[editorName]._textArea.name) {
|
if ('serendipity[' + textarea + ']' == xinha_editors[editorName]._textArea.name) {
|
||||||
@@ -317,7 +317,7 @@ function serendipity_imageSelector_addToBody (str, textarea)
|
|||||||
// the actual insert for the xinha editor
|
// the actual insert for the xinha editor
|
||||||
if (oEditor) {
|
if (oEditor) {
|
||||||
if (oEditor._editMode != 'textmode') {
|
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);
|
oEditor.insertHTML(str);
|
||||||
} else {
|
} else {
|
||||||
// if here just insert the text to the textarea ( named with the value of textarea variable )
|
// if here just insert the text to the textarea ( named with the value of textarea variable )
|
||||||
|
|||||||
Reference in New Issue
Block a user