diff -r 79d52c2d50a2 -r d2377425d3f2 app/tiny_mce/plugins/advhr/js/rule.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/tiny_mce/plugins/advhr/js/rule.js Tue Sep 16 16:49:25 2008 +0000 @@ -0,0 +1,43 @@ +var AdvHRDialog = { + init : function(ed) { + var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; + + w = dom.getAttrib(n, 'width'); + f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); + f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; + f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); + selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); + }, + + update : function() { + var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; + + h = '