css and ie: clear

by prettyscripts on 2010-02-16 11:12:26 • Leave a comment »

css

i always have a clear class in my css to clear any floating elements:.clear { clear: both; } and commonly used in html code such as follows:<div id="floating_1">something</div><div class="clear"></div><div id="float… more »

Tags: clear, css, ie

tinymce: clear field

by prettyscripts on 2008-09-22 16:22:57 • 2 comments »

freejavascriptxajaxtinymce

the normal way to clear <textarea> field: document.formname.textareaid.value = ''; for <textarea> converted into tinymce editor, the above javascript call does not work. you need to call tinyMCE.setContent() tinyMCE.getInstanceById('texta… more »

Tags: clear, editor, textarea, tinymce, xajax