includes/clientside/static/editor.js
changeset 399 a3a9e463c62f
parent 397 06415d243d09
child 404 fb4f9e6f378f
--- a/includes/clientside/static/editor.js	Sat Feb 02 23:14:32 2008 -0500
+++ b/includes/clientside/static/editor.js	Mon Feb 04 05:19:20 2008 -0500
@@ -110,6 +110,8 @@
   //
   
   var heading = document.createElement('h3');
+  heading.style.cssFloat = 'left';
+  heading.style.styleFloat = 'left';
   heading.appendChild(document.createTextNode($lang.get('editor_msg_editor_heading')));
   
   // Plaintext/wikitext toggler
@@ -120,6 +122,9 @@
   {
     var toggler = document.createElement('p');
     toggler.style.marginLeft = '0';
+    toggler.style.cssFloat = 'right';
+    toggler.style.styleFloat = 'right';
+    toggler.style.paddingTop = '4pt';
     
     var span_wiki = document.createElement('span');
     var span_mce  = document.createElement('span');
@@ -162,6 +167,7 @@
   // Form (to allow submits from MCE to trigger a real save)
   var form = document.createElement('form');
   form.action = 'javascript:void(0);';
+  form.style.clear = 'both';
   form.onsubmit = function()
   {
     ajaxEditorSave();
@@ -174,10 +180,12 @@
   preview_anchor.id = 'ajax_preview';
   var preview_container = document.createElement('div');
   preview_container.id = 'enano_editor_preview';
+  preview_container.style.clear = 'both';
   
   // Textarea containing the content
   var ta_wrapper = document.createElement('div');
   ta_wrapper.style.margin = '10px 0';
+  ta_wrapper.style.clear = 'both';
   var textarea = document.createElement('textarea');
   textarea.value = content;
   textarea._edTimestamp = timestamp;