Mercurial > public > sg101
comparison media/js/tiny_mce/plugins/xhtmlxtras/editor_plugin_src.js @ 247:6ed2932901fa
Update tinymce to 3.3.9
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 18 Sep 2010 19:54:11 +0000 |
parents | 149c3567fec1 |
children |
comparison
equal
deleted
inserted
replaced
246:e4dc0b649fcb | 247:6ed2932901fa |
---|---|
84 ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'}); | 84 ed.addButton('abbr', {title : 'xhtmlxtras.abbr_desc', cmd : 'mceAbbr'}); |
85 ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'}); | 85 ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'}); |
86 ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'}); | 86 ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'}); |
87 ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'}); | 87 ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'}); |
88 | 88 |
89 if (tinymce.isIE) { | |
90 function fix(ed, o) { | |
91 if (o.set) { | |
92 o.content = o.content.replace(/<abbr([^>]+)>/gi, '<html:abbr $1>'); | |
93 o.content = o.content.replace(/<\/abbr>/gi, '</html:abbr>'); | |
94 } | |
95 }; | |
96 | |
97 ed.onBeforeSetContent.add(fix); | |
98 ed.onPostProcess.add(fix); | |
99 } | |
100 | |
101 ed.onNodeChange.add(function(ed, cm, n, co) { | 89 ed.onNodeChange.add(function(ed, cm, n, co) { |
102 n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS'); | 90 n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS'); |
103 | 91 |
104 cm.setDisabled('cite', co); | 92 cm.setDisabled('cite', co); |
105 cm.setDisabled('acronym', co); | 93 cm.setDisabled('acronym', co); |