# HG changeset patch # User Dan Fuhry # Date 1289928278 18000 # Node ID 3df4818b99bfd73454489db108e7d51650a21293 # Parent d423fc0e9bc9e45862676235635499fe075afe9d editor: removed extraneous debug info; changed around the order by which the textarea is created and appended to the DOM diff -r d423fc0e9bc9 -r 3df4818b99bf includes/clientside/static/editor.js --- a/includes/clientside/static/editor.js Tue Nov 16 12:23:10 2010 -0500 +++ b/includes/clientside/static/editor.js Tue Nov 16 12:24:38 2010 -0500 @@ -197,14 +197,15 @@ var ta_wrapper = document.createElement('div'); ta_wrapper.style.margin = '10px 0'; + // ta_wrapper.style.clear = 'both'; + var textarea = document.createElement('textarea'); + textarea.id = 'ajaxEditArea'; + // A hook allowing plugins to create a toolbar on top of the textarea eval(setHook('editor_gui_toolbar')); - // ta_wrapper.style.clear = 'both'; - var textarea = document.createElement('textarea'); ta_wrapper.appendChild(textarea); - textarea.id = 'ajaxEditArea'; textarea.rows = '20'; textarea.cols = '60'; textarea.style.width = '98.7%'; @@ -450,7 +451,10 @@ form.appendChild(ta_wrapper); if ( !readonly ) form.appendChild(tblholder); - form.innerHTML += '
' + toolbar + '
'; + var tbdiv = document.createElement('div'); + tbdiv.innerHTML = toolbar; + tbdiv.style.margin = '10px 0 0 0'; + form.appendChild(tbdiv); edcon.appendChild(form); if ( response.edit_notice && !readonly ) @@ -879,19 +883,12 @@ }, onclick: function() { - console.info('setAjaxLoading'); setAjaxLoading(); - console.info('editor_open = false'); editor_open = false; - console.info('enableUnload'); enableUnload(); - console.info('destroyMCE'); $dynano('ajaxEditArea').destroyMCE(false); - console.info('destroyModal()'); ajaxEditorDestroyModalWindow(); - console.info('ajaxReset'); ajaxReset(); - console.info('miniPromptDestroy'); miniPromptDestroy(this); return false; }