bgneal@45: var AdvHRDialog = { bgneal@45: init : function(ed) { bgneal@45: var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; bgneal@45: bgneal@45: w = dom.getAttrib(n, 'width'); bgneal@45: f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); bgneal@45: f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; bgneal@45: f.noshade.checked = !!dom.getAttrib(n, 'noshade') || !!dom.getStyle('border-width'); bgneal@45: selectByValue(f, 'width2', w.indexOf('%') != -1 ? '%' : 'px'); bgneal@45: }, bgneal@45: bgneal@45: update : function() { bgneal@45: var ed = tinyMCEPopup.editor, h, f = document.forms[0], st = ''; bgneal@45: bgneal@45: h = '