| | |
| | | ed.windowManager.open({
|
| | | file : url + '/acronym.htm',
|
| | | width : 350 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)),
|
| | | height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_width', 0)),
|
| | | height : 250 + parseInt(ed.getLang('xhtmlxtras.acronym_delta_height', 0)),
|
| | | inline : 1
|
| | | }, {
|
| | | plugin_url : url
|
| | |
| | | ed.windowManager.open({
|
| | | file : url + '/abbr.htm',
|
| | | width : 350 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)),
|
| | | height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_width', 0)),
|
| | | height : 250 + parseInt(ed.getLang('xhtmlxtras.abbr_delta_height', 0)),
|
| | | inline : 1
|
| | | }, {
|
| | | plugin_url : url
|
| | |
| | | ed.windowManager.open({
|
| | | file : url + '/del.htm',
|
| | | width : 340 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)),
|
| | | height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_width', 0)),
|
| | | height : 310 + parseInt(ed.getLang('xhtmlxtras.del_delta_height', 0)),
|
| | | inline : 1
|
| | | }, {
|
| | | plugin_url : url
|
| | |
| | | ed.windowManager.open({
|
| | | file : url + '/ins.htm',
|
| | | width : 340 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)),
|
| | | height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_width', 0)),
|
| | | height : 310 + parseInt(ed.getLang('xhtmlxtras.ins_delta_height', 0)),
|
| | | inline : 1
|
| | | }, {
|
| | | plugin_url : url
|
| | |
| | | ed.addCommand('mceAttributes', function() {
|
| | | ed.windowManager.open({
|
| | | file : url + '/attributes.htm',
|
| | | width : 380,
|
| | | height : 370,
|
| | | width : 380 + parseInt(ed.getLang('xhtmlxtras.attr_delta_width', 0)),
|
| | | height : 370 + parseInt(ed.getLang('xhtmlxtras.attr_delta_height', 0)),
|
| | | inline : 1
|
| | | }, {
|
| | | plugin_url : url
|
| | |
| | | ed.addButton('del', {title : 'xhtmlxtras.del_desc', cmd : 'mceDel'});
|
| | | ed.addButton('ins', {title : 'xhtmlxtras.ins_desc', cmd : 'mceIns'});
|
| | | ed.addButton('attribs', {title : 'xhtmlxtras.attribs_desc', cmd : 'mceAttributes'});
|
| | |
|
| | | if (tinymce.isIE) {
|
| | | function fix(ed, o) {
|
| | | if (o.set) {
|
| | | o.content = o.content.replace(/<abbr([^>]+)>/gi, '<html:abbr $1>');
|
| | | o.content = o.content.replace(/<\/abbr>/gi, '</html:abbr>');
|
| | | }
|
| | | };
|
| | |
|
| | | ed.onBeforeSetContent.add(fix);
|
| | | ed.onPostProcess.add(fix);
|
| | | }
|
| | |
|
| | | ed.onNodeChange.add(function(ed, cm, n, co) {
|
| | | n = ed.dom.getParent(n, 'CITE,ACRONYM,ABBR,DEL,INS');
|