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