From f61b5b0597e0c25f084ee67d402f12a43a7a9947 Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 17 Feb 2009 21:54:39 +0100 Subject: added tinymce editor for body area of pages --- .../javascripts/tiny_mce/plugins/advhr/js/rule.js | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 public/javascripts/tiny_mce/plugins/advhr/js/rule.js (limited to 'public/javascripts/tiny_mce/plugins/advhr/js') diff --git a/public/javascripts/tiny_mce/plugins/advhr/js/rule.js b/public/javascripts/tiny_mce/plugins/advhr/js/rule.js new file mode 100755 index 0000000..b6cbd66 --- /dev/null +++ b/public/javascripts/tiny_mce/plugins/advhr/js/rule.js @@ -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 = '