tiny_mce 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG_PLUGIN.rdoc +6 -0
- data/CHANGELOG_TINYMCE +933 -912
- data/LICENSE +19 -0
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/install.rb +17 -7
- data/lib/tiny_mce.rb +14 -1
- data/lib/tiny_mce/assets/tiny_mce/langs/ca.js +65 -65
- data/lib/tiny_mce/assets/tiny_mce/langs/cs.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/langs/he.js +85 -85
- data/lib/tiny_mce/assets/tiny_mce/langs/hr.js +2 -1
- data/lib/tiny_mce/assets/tiny_mce/langs/ja.js +99 -91
- data/lib/tiny_mce/assets/tiny_mce/langs/sk.js +13 -13
- data/lib/tiny_mce/assets/tiny_mce/langs/ur.js +154 -0
- data/lib/tiny_mce/assets/tiny_mce/langs/vi.js +78 -78
- data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ca_dlg.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/he_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ja_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/ur_dlg.js +5 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/advhr/langs/vi_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ca_dlg.js +23 -23
- data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/he_dlg.js +37 -37
- data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ja_dlg.js +38 -38
- data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/sk_dlg.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/ur_dlg.js +43 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/advimage/langs/vi_dlg.js +12 -12
- data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ca_dlg.js +27 -27
- data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/he_dlg.js +39 -39
- data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ja_dlg.js +49 -49
- data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/sk_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/ur_dlg.js +52 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/advlink/langs/vi_dlg.js +16 -16
- data/lib/tiny_mce/assets/tiny_mce/plugins/autoresize/editor_plugin_src.js +23 -23
- data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ca_dlg.js +14 -14
- data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/he_dlg.js +18 -18
- data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ja_dlg.js +18 -18
- data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/ur_dlg.js +20 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/emotions/langs/vi_dlg.js +2 -2
- data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ca_dlg.js +38 -38
- data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/he_dlg.js +20 -20
- data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ja_dlg.js +75 -75
- data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/sk_dlg.js +6 -6
- data/lib/tiny_mce/assets/tiny_mce/plugins/fullpage/langs/ur_dlg.js +85 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/editor_plugin.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/editor_plugin_src.js +9 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ca_dlg.js +67 -67
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/cs_dlg.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/he_dlg.js +24 -24
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ja_dlg.js +91 -91
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/sk_dlg.js +17 -17
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/ur_dlg.js +103 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/media/langs/vi_dlg.js +11 -11
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/editor_plugin.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/editor_plugin_src.js +36 -17
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ca_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/he_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ja_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/sk_dlg.js +2 -2
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/ur_dlg.js +5 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/paste/langs/vi_dlg.js +3 -3
- data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ca_dlg.js +10 -10
- data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/he_dlg.js +14 -14
- data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ja_dlg.js +13 -13
- data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/sk_dlg.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/ur_dlg.js +16 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/searchreplace/langs/vi_dlg.js +14 -14
- data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ca_dlg.js +23 -23
- data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/he_dlg.js +43 -43
- data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ja_dlg.js +59 -59
- data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/sk_dlg.js +4 -4
- data/lib/tiny_mce/assets/tiny_mce/plugins/style/langs/ur_dlg.js +63 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/editor_plugin.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/editor_plugin_src.js +43 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ca_dlg.js +36 -36
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/he_dlg.js +54 -54
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ja_dlg.js +67 -67
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/sk_dlg.js +4 -4
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/ur_dlg.js +74 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/table/langs/vi_dlg.js +36 -36
- data/lib/tiny_mce/assets/tiny_mce/plugins/template/editor_plugin.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/template/editor_plugin_src.js +4 -4
- data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ca_dlg.js +8 -8
- data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/he_dlg.js +4 -4
- data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ja_dlg.js +13 -13
- data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/sk_dlg.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/plugins/template/langs/ur_dlg.js +15 -0
- data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ca_dlg.js +15 -15
- data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/he_dlg.js +25 -25
- data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ja_dlg.js +25 -25
- data/lib/tiny_mce/assets/tiny_mce/plugins/xhtmlxtras/langs/ur_dlg.js +32 -0
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/img/colorpicker.jpg +0 -0
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ca.js +32 -32
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ca_dlg.js +30 -30
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/cs_dlg.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/he.js +57 -57
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/he_dlg.js +49 -49
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ja.js +59 -57
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ja_dlg.js +48 -48
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/pl.js +2 -2
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sk.js +5 -5
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/sk_dlg.js +4 -4
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ur.js +62 -0
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/ur_dlg.js +51 -0
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/vi.js +57 -57
- data/lib/tiny_mce/assets/tiny_mce/themes/advanced/langs/vi_dlg.js +49 -49
- data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ca.js +4 -4
- data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/he.js +8 -8
- data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ja.js +9 -9
- data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/ur.js +11 -0
- data/lib/tiny_mce/assets/tiny_mce/themes/simple/langs/vi.js +9 -9
- data/lib/tiny_mce/assets/tiny_mce/tiny_mce.js +1 -1
- data/lib/tiny_mce/assets/tiny_mce/tiny_mce_src.js +159 -63
- data/lib/tiny_mce/base.rb +8 -0
- data/lib/tiny_mce/helpers.rb +2 -2
- data/tasks/tiny_mce.rake +8 -0
- data/tiny_mce.gemspec +28 -8
- metadata +23 -4
@@ -1 +1 @@
|
|
1
|
-
(function(){var a=tinymce.each;tinymce.create("tinymce.plugins.TablePlugin",{init:function(b,c){var d=this;d.editor=b;d.url=c;a([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(e){b.addButton(e[0],{title:e[1],cmd:e[2],ui:e[3]})});if(b.getParam("inline_styles")){b.onPreProcess.add(function(e,g){var f=e.dom;a(f.select("table",g.node),function(i){var h;if(h=f.getAttrib(i,"width")){f.setStyle(i,"width",h);f.setAttrib(i,"width")}if(h=f.getAttrib(i,"height")){f.setStyle(i,"height",h);f.setAttrib(i,"height")}})})}b.onInit.add(function(){if(!tinymce.isIE&&b.getParam("forced_root_block")){function e(){var f=b.getBody().lastChild;if(f&&f.nodeName=="TABLE"){b.dom.add(b.getBody(),"p",null,'<br mce_bogus="1" />')}}b.onKeyUp.add(e);b.onSetContent.add(e);b.onVisualAid.add(e);b.onPreProcess.add(function(f,h){var g=h.node.lastChild;if(g&&g.childNodes.length==1&&g.firstChild.nodeName=="BR"){f.dom.remove(g)}});e()}if(b&&b.plugins.contextmenu){b.plugins.contextmenu.onContextMenu.add(function(h,f,j){var k,i=b.selection,g=i.getNode()||b.getBody();if(b.dom.getParent(j,"td")||b.dom.getParent(j,"th")){f.removeAll();if(g.nodeName=="A"&&!b.dom.getAttrib(g,"name")){f.add({title:"advanced.link_desc",icon:"link",cmd:b.plugins.advlink?"mceAdvLink":"mceLink",ui:true});f.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});f.addSeparator()}if(g.nodeName=="IMG"&&g.className.indexOf("mceItem")==-1){f.add({title:"advanced.image_desc",icon:"image",cmd:b.plugins.advimage?"mceAdvImage":"mceImage",ui:true});f.addSeparator()}f.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",ui:true,value:{action:"insert"}});f.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable",ui:true});f.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete",ui:true});f.addSeparator();k=f.addMenu({title:"table.cell"});k.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps",ui:true});k.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells",ui:true});k.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells",ui:true});k=f.addMenu({title:"table.row"});k.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps",ui:true});k.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});k.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});k.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});k.addSeparator();k.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});k.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});k.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"});k.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"});k=f.addMenu({title:"table.col"});k.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});k.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});k.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{f.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",ui:true})}})}});b.onKeyDown.add(function(f,g){if(g.keyCode==9&&f.dom.getParent(f.selection.getNode(),"TABLE")){if(!tinymce.isGecko&&!tinymce.isOpera){tinyMCE.execInstanceCommand(f.editorId,"mceTableMoveToNextRow",true);return tinymce.dom.Event.cancel(g)}f.undoManager.add()}});if(!tinymce.isIE){if(b.getParam("table_selection",true)){b.onClick.add(function(f,g){g=g.target;if(g.nodeName==="TABLE"){f.selection.select(g)}})}}b.onNodeChange.add(function(f,e,h){var g=f.dom.getParent(h,"td,th,caption");e.setActive("table",h.nodeName==="TABLE"||!!g);if(g&&g.nodeName==="CAPTION"){g=null}e.setDisabled("delete_table",!g);e.setDisabled("delete_col",!g);e.setDisabled("delete_table",!g);e.setDisabled("delete_row",!g);e.setDisabled("col_after",!g);e.setDisabled("col_before",!g);e.setDisabled("row_after",!g);e.setDisabled("row_before",!g);e.setDisabled("row_props",!g);e.setDisabled("cell_props",!g);e.setDisabled("split_cells",!g||(parseInt(f.dom.getAttrib(g,"colspan","1"))<2&&parseInt(f.dom.getAttrib(g,"rowspan","1"))<2));e.setDisabled("merge_cells",!g)});if(!tinymce.isIE){b.onBeforeSetContent.add(function(e,f){if(f.initial){f.content=f.content.replace(/<(td|th)([^>]+|)>\s*<\/(td|th)>/g,tinymce.isOpera?"<$1$2> </$1>":'<$1$2><br mce_bogus="1" /></$1>')}})}},execCommand:function(f,e,g){var d=this.editor,c;switch(f){case"mceTableMoveToNextRow":case"mceInsertTable":case"mceTableRowProps":case"mceTableCellProps":case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":case"mceTableDelete":d.execCommand("mceBeginUndoLevel");this._doExecCommand(f,e,g);d.execCommand("mceEndUndoLevel");return true}return false},getInfo:function(){return{longname:"Tables",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/table",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_doExecCommand:function(r,Z,ae){var V=this.editor,au=V,g=this.url;var n=V.selection.getNode();var W=V.dom.getParent(n,"tr");var aq=V.dom.getParent(n,"td,th");var F=V.dom.getParent(n,"table");var k=V.contentWindow.document;var av=F?F.getAttribute("border"):"";if(W&&aq==null){aq=W.cells[0]}function ap(y,x){for(var ax=0;ax<y.length;ax++){if(y[ax].length>0&&ap(y[ax],x)){return true}if(y[ax]==x){return true}}return false}function aj(x,i){var y;ad=e(F);x=x||0;i=i||0;x=Math.max(o.cellindex+x,0);i=Math.max(o.rowindex+i,0);V.execCommand("mceRepaint");y=d(ad,i,x);if(y){V.selection.select(y.firstChild||y);V.selection.collapse(1)}}function ah(){var i=k.createElement("td");if(!tinymce.isIE){i.innerHTML='<br mce_bogus="1"/>'}}function j(y){var x=V.dom.getAttrib(y,"colspan");var i=V.dom.getAttrib(y,"rowspan");x=x==""?1:parseInt(x);i=i==""?1:parseInt(i);return{colspan:x,rowspan:i}}function al(ax,az){var i,ay;for(ay=0;ay<ax.length;ay++){for(i=0;i<ax[ay].length;i++){if(ax[ay][i]==az){return{cellindex:i,rowindex:ay}}}}return null}function d(x,y,i){if(x[y]&&x[y][i]){return x[y][i]}return null}function A(aC,ax){var az=[],y=0,aA,ay,ax,aB;for(aA=0;aA<aC.rows.length;aA++){for(ay=0;ay<aC.rows[aA].cells.length;ay++,y++){az[y]=aC.rows[aA].cells[ay]}}for(aA=0;aA<az.length;aA++){if(az[aA]==ax){if(aB=az[aA+1]){return aB}}}}function e(aE){var i=[],aF=aE.rows,aC,aB,ay,az,aD,ax,aA;for(aB=0;aB<aF.length;aB++){for(aC=0;aC<aF[aB].cells.length;aC++){ay=aF[aB].cells[aC];az=j(ay);for(aD=aC;i[aB]&&i[aB][aD];aD++){}for(aA=aB;aA<aB+az.rowspan;aA++){if(!i[aA]){i[aA]=[]}for(ax=aD;ax<aD+az.colspan;ax++){i[aA][ax]=ay}}}}return i}function m(aG,aD,ay,ax){var y=e(aG),aF=al(y,ay);var aH,aC;if(ax.cells.length!=aD.childNodes.length){aH=aD.childNodes;aC=null;for(var aE=0;ay=d(y,aF.rowindex,aE);aE++){var aA=true;var aB=j(ay);if(ap(aH,ay)){ax.childNodes[aE]._delete=true}else{if((aC==null||ay!=aC)&&aB.colspan>1){for(var az=aE;az<aE+ay.colSpan;az++){ax.childNodes[az]._delete=true}}}if((aC==null||ay!=aC)&&aB.rowspan>1){ay.rowSpan=aB.rowspan+1}aC=ay}B(F)}}function O(x,i){while((x=x.previousSibling)!=null){if(x.nodeName==i){return x}}return null}function af(ax,ay){var x=ay.split(",");while((ax=ax.nextSibling)!=null){for(var y=0;y<x.length;y++){if(ax.nodeName.toLowerCase()==x[y].toLowerCase()){return ax}}}return null}function B(ax){if(ax.rows==0){return}var y=ax.rows[0];do{var x=af(y,"TR");if(y._delete){y.parentNode.removeChild(y);continue}var ay=y.cells[0];if(ay.cells>1){do{var i=af(ay,"TD,TH");if(ay._delete){ay.parentNode.removeChild(ay)}}while((ay=i)!=null)}}while((y=x)!=null)}function p(ax,aA,az){ax.rowSpan=1;var x=af(aA,"TR");for(var ay=1;ay<az&&x;ay++){var y=k.createElement("td");if(!tinymce.isIE){y.innerHTML='<br mce_bogus="1"/>'}if(tinymce.isIE){x.insertBefore(y,x.cells(ax.cellIndex))}else{x.insertBefore(y,x.cells[ax.cellIndex])}x=af(x,"TR")}}function S(aF,aH,aB){var y=e(aH);var ax=aB.cloneNode(false);var aG=al(y,aB.cells[0]);var aC=null;var aA=V.dom.getAttrib(aH,"border");var az=null;for(var aE=0;az=d(y,aG.rowindex,aE);aE++){var aD=null;if(aC!=az){for(var ay=0;ay<aB.cells.length;ay++){if(az==aB.cells[ay]){aD=az.cloneNode(true);break}}}if(aD==null){aD=aF.createElement("td");if(!tinymce.isIE){aD.innerHTML='<br mce_bogus="1"/>'}}aD.colSpan=1;aD.rowSpan=1;ax.appendChild(aD);aC=az}return ax}switch(r){case"mceTableMoveToNextRow":var L=A(F,aq);if(!L){V.execCommand("mceTableInsertRowAfter",aq);L=A(F,aq)}V.selection.select(L);V.selection.collapse(true);return true;case"mceTableRowProps":if(W==null){return true}if(Z){V.windowManager.open({url:g+"/row.htm",width:400+parseInt(V.getLang("table.rowprops_delta_width",0)),height:295+parseInt(V.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:g})}return true;case"mceTableCellProps":if(aq==null){return true}if(Z){V.windowManager.open({url:g+"/cell.htm",width:400+parseInt(V.getLang("table.cellprops_delta_width",0)),height:295+parseInt(V.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:g})}return true;case"mceInsertTable":if(Z){V.windowManager.open({url:g+"/table.htm",width:400+parseInt(V.getLang("table.table_delta_width",0)),height:320+parseInt(V.getLang("table.table_delta_height",0)),inline:1},{plugin_url:g,action:ae?ae.action:0})}return true;case"mceTableDelete":var G=V.dom.getParent(V.selection.getNode(),"table");if(G){G.parentNode.removeChild(G);V.execCommand("mceRepaint")}return true;case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":if(!F){return true}if(W&&F!=W.parentNode){F=W.parentNode}if(F&&W){switch(r){case"mceTableCutRow":if(!W||!aq){return true}V.tableRowClipboard=S(k,F,W);V.execCommand("mceTableDeleteRow");break;case"mceTableCopyRow":if(!W||!aq){return true}V.tableRowClipboard=S(k,F,W);break;case"mceTablePasteRowBefore":if(!W||!aq){return true}var v=V.tableRowClipboard.cloneNode(true);var h=O(W,"TR");if(h!=null){m(F,h,h.cells[0],v)}W.parentNode.insertBefore(v,W);break;case"mceTablePasteRowAfter":if(!W||!aq){return true}var X=af(W,"TR");var v=V.tableRowClipboard.cloneNode(true);m(F,W,aq,v);if(X==null){W.parentNode.appendChild(v)}else{X.parentNode.insertBefore(v,X)}break;case"mceTableInsertRowBefore":if(!W||!aq){return true}var ad=e(F);var o=al(ad,aq);var v=k.createElement("tr");var u=null;o.rowindex--;if(o.rowindex<0){o.rowindex=0}for(var ac=0;aq=d(ad,o.rowindex,ac);ac++){if(aq!=u){var E=j(aq);if(E.rowspan==1){var J=k.createElement("td");if(!tinymce.isIE){J.innerHTML='<br mce_bogus="1"/>'}J.colSpan=aq.colSpan;v.appendChild(J)}else{aq.rowSpan=E.rowspan+1}u=aq}}W.parentNode.insertBefore(v,W);aj(0,1);break;case"mceTableInsertRowAfter":if(!W||!aq){return true}var ad=e(F);var o=al(ad,aq);var v=k.createElement("tr");var u=null;for(var ac=0;aq=d(ad,o.rowindex,ac);ac++){if(aq!=u){var E=j(aq);if(E.rowspan==1){var J=k.createElement("td");if(!tinymce.isIE){J.innerHTML='<br mce_bogus="1"/>'}J.colSpan=aq.colSpan;v.appendChild(J)}else{aq.rowSpan=E.rowspan+1}u=aq}}if(v.hasChildNodes()){var X=af(W,"TR");if(X){X.parentNode.insertBefore(v,X)}else{F.appendChild(v)}}aj(0,1);break;case"mceTableDeleteRow":if(!W||!aq){return true}var ad=e(F);var o=al(ad,aq);if(ad.length==1&&F.nodeName=="TBODY"){V.dom.remove(V.dom.getParent(F,"table"));return true}var D=W.cells;var X=af(W,"TR");for(var ac=0;ac<D.length;ac++){if(D[ac].rowSpan>1){var J=D[ac].cloneNode(true);var E=j(D[ac]);J.rowSpan=E.rowspan-1;var ak=X.cells[ac];if(ak==null){X.appendChild(J)}else{X.insertBefore(J,ak)}}}var u=null;for(var ac=0;aq=d(ad,o.rowindex,ac);ac++){if(aq!=u){var E=j(aq);if(E.rowspan>1){aq.rowSpan=E.rowspan-1}else{W=aq.parentNode;if(W.parentNode){W._delete=true}}u=aq}}B(F);aj(0,-1);break;case"mceTableInsertColBefore":if(!W||!aq){return true}var ad=e(V.dom.getParent(F,"table"));var o=al(ad,aq);var u=null;for(var aa=0;aq=d(ad,aa,o.cellindex);aa++){if(aq!=u){var E=j(aq);if(E.colspan==1){var J=k.createElement(aq.nodeName);if(!tinymce.isIE){J.innerHTML='<br mce_bogus="1"/>'}J.rowSpan=aq.rowSpan;aq.parentNode.insertBefore(J,aq)}else{aq.colSpan++}u=aq}}aj();break;case"mceTableInsertColAfter":if(!W||!aq){return true}var ad=e(V.dom.getParent(F,"table"));var o=al(ad,aq);var u=null;for(var aa=0;aq=d(ad,aa,o.cellindex);aa++){if(aq!=u){var E=j(aq);if(E.colspan==1){var J=k.createElement(aq.nodeName);if(!tinymce.isIE){J.innerHTML='<br mce_bogus="1"/>'}J.rowSpan=aq.rowSpan;var ak=af(aq,"TD,TH");if(ak==null){aq.parentNode.appendChild(J)}else{ak.parentNode.insertBefore(J,ak)}}else{aq.colSpan++}u=aq}}aj(1);break;case"mceTableDeleteCol":if(!W||!aq){return true}var ad=e(F);var o=al(ad,aq);var u=null;if((ad.length>1&&ad[0].length<=1)&&F.nodeName=="TBODY"){V.dom.remove(V.dom.getParent(F,"table"));return true}for(var aa=0;aq=d(ad,aa,o.cellindex);aa++){if(aq!=u){var E=j(aq);if(E.colspan>1){aq.colSpan=E.colspan-1}else{if(aq.parentNode){aq.parentNode.removeChild(aq)}}u=aq}}aj(-1);break;case"mceTableSplitCells":if(!W||!aq){return true}var l=j(aq);var C=l.colspan;var H=l.rowspan;if(C>1||H>1){aq.colSpan=1;for(var am=1;am<C;am++){var J=k.createElement("td");if(!tinymce.isIE){J.innerHTML='<br mce_bogus="1"/>'}W.insertBefore(J,af(aq,"TD,TH"));if(H>1){p(J,W,H)}}p(aq,W,H)}F=V.dom.getParent(V.selection.getNode(),"table");break;case"mceTableMergeCells":var ao=[];var R=V.selection.getSel();var ad=e(F);if(tinymce.isIE||R.rangeCount==1){if(Z){var t=j(aq);V.windowManager.open({url:g+"/merge_cells.htm",width:240+parseInt(V.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(V.getLang("table.merge_cells_delta_height",0)),inline:1},{action:"update",numcols:t.colspan,numrows:t.rowspan,plugin_url:g});return true}else{var U=parseInt(ae.numrows);var c=parseInt(ae.numcols);var o=al(ad,aq);if((""+U)=="NaN"){U=1}if((""+c)=="NaN"){c=1}var b=F.rows;for(var aa=o.rowindex;aa<ad.length;aa++){var ag=[];for(var ac=o.cellindex;ac<ad[aa].length;ac++){var f=d(ad,aa,ac);if(f&&!ap(ao,f)&&!ap(ag,f)){var N=al(ad,f);if(N.cellindex<o.cellindex+c&&N.rowindex<o.rowindex+U){ag[ag.length]=f}}}if(ag.length>0){ao[ao.length]=ag}var f=d(ad,o.rowindex,o.cellindex);a(au.dom.select("br",f),function(y,x){if(x>0&&au.dom.getAttrib("mce_bogus")){au.dom.remove(y)}})}}}else{var D=[];var R=V.selection.getSel();var Y=null;var an=null;var z=-1,aw=-1,w,at;if(R.rangeCount<2){return true}for(var am=0;am<R.rangeCount;am++){var ai=R.getRangeAt(am);var aq=ai.startContainer.childNodes[ai.startOffset];if(!aq){break}if(aq.nodeName=="TD"||aq.nodeName=="TH"){D[D.length]=aq}}var b=F.rows;for(var aa=0;aa<b.length;aa++){var ag=[];for(var ac=0;ac<b[aa].cells.length;ac++){var f=b[aa].cells[ac];for(var am=0;am<D.length;am++){if(f==D[am]){ag[ag.length]=f}}}if(ag.length>0){ao[ao.length]=ag}}var an=[];var Y=null;for(var aa=0;aa<ad.length;aa++){for(var ac=0;ac<ad[aa].length;ac++){ad[aa][ac]._selected=false;for(var am=0;am<D.length;am++){if(ad[aa][ac]==D[am]){if(z==-1){z=ac;aw=aa}w=ac;at=aa;ad[aa][ac]._selected=true}}}}for(var aa=aw;aa<=at;aa++){for(var ac=z;ac<=w;ac++){if(!ad[aa][ac]._selected){alert("Invalid selection for merge.");return true}}}}var s=1,q=1;var T=-1;for(var aa=0;aa<ao.length;aa++){var I=0;for(var ac=0;ac<ao[aa].length;ac++){var E=j(ao[aa][ac]);I+=E.colspan;if(T!=-1&&E.rowspan!=T){alert("Invalid selection for merge.");return true}T=E.rowspan}if(I>q){q=I}T=-1}var Q=-1;for(var ac=0;ac<ao[0].length;ac++){var M=0;for(var aa=0;aa<ao.length;aa++){var E=j(ao[aa][ac]);M+=E.rowspan;if(Q!=-1&&E.colspan!=Q){alert("Invalid selection for merge.");return true}Q=E.colspan}if(M>s){s=M}Q=-1}aq=ao[0][0];aq.rowSpan=s;aq.colSpan=q;for(var aa=0;aa<ao.length;aa++){for(var ac=0;ac<ao[aa].length;ac++){var P=ao[aa][ac].innerHTML;var K=P.replace(/[ \t\r\n]/g,"");if(K!="<br/>"&&K!="<br>"&&K!='<br mce_bogus="1"/>'&&(ac+aa>0)){aq.innerHTML+=P}if(ao[aa][ac]!=aq&&!ao[aa][ac]._deleted){var o=al(ad,ao[aa][ac]);var ar=ao[aa][ac].parentNode;ar.removeChild(ao[aa][ac]);ao[aa][ac]._deleted=true;if(!ar.hasChildNodes()){ar.parentNode.removeChild(ar);var ab=null;for(var ac=0;cellElm=d(ad,o.rowindex,ac);ac++){if(cellElm!=ab&&cellElm.rowSpan>1){cellElm.rowSpan--}ab=cellElm}if(aq.rowSpan>1){aq.rowSpan--}}}}}a(au.dom.select("br",aq),function(y,x){if(x>0&&au.dom.getAttrib(y,"mce_bogus")){au.dom.remove(y)}});break}F=V.dom.getParent(V.selection.getNode(),"table");V.addVisual(F);V.nodeChanged()}return true}return false}});tinymce.PluginManager.add("table",tinymce.plugins.TablePlugin)})();
|
1
|
+
(function(){var b=tinymce.each;function a(d,e){var f=e.ownerDocument,c=f.createRange(),g;c.setStartBefore(e);c.setEnd(d.endContainer,d.endOffset);g=f.createElement("body");g.appendChild(c.cloneContents());return g.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length==0}tinymce.create("tinymce.plugins.TablePlugin",{init:function(c,d){var e=this;e.editor=c;e.url=d;b([["table","table.desc","mceInsertTable",true],["delete_table","table.del","mceTableDelete"],["delete_col","table.delete_col_desc","mceTableDeleteCol"],["delete_row","table.delete_row_desc","mceTableDeleteRow"],["col_after","table.col_after_desc","mceTableInsertColAfter"],["col_before","table.col_before_desc","mceTableInsertColBefore"],["row_after","table.row_after_desc","mceTableInsertRowAfter"],["row_before","table.row_before_desc","mceTableInsertRowBefore"],["row_props","table.row_desc","mceTableRowProps",true],["cell_props","table.cell_desc","mceTableCellProps",true],["split_cells","table.split_cells_desc","mceTableSplitCells",true],["merge_cells","table.merge_cells_desc","mceTableMergeCells",true]],function(f){c.addButton(f[0],{title:f[1],cmd:f[2],ui:f[3]})});if(c.getParam("inline_styles")){c.onPreProcess.add(function(f,h){var g=f.dom;b(g.select("table",h.node),function(j){var i;if(i=g.getAttrib(j,"width")){g.setStyle(j,"width",i);g.setAttrib(j,"width")}if(i=g.getAttrib(j,"height")){g.setStyle(j,"height",i);g.setAttrib(j,"height")}})})}c.onInit.add(function(){if(!tinymce.isIE&&c.getParam("forced_root_block")){function f(){var g=c.getBody().lastChild;if(g&&g.nodeName=="TABLE"){c.dom.add(c.getBody(),"p",null,'<br mce_bogus="1" />')}}if(tinymce.isGecko){c.onKeyDown.add(function(h,j){var g,i,k=h.dom;if(j.keyCode==37||j.keyCode==38){g=h.selection.getRng();i=k.getParent(g.startContainer,"table");if(i&&h.getBody().firstChild==i){if(a(g,i)){g=k.createRng();g.setStartBefore(i);g.setEndBefore(i);h.selection.setRng(g);j.preventDefault()}}}})}c.onKeyUp.add(f);c.onSetContent.add(f);c.onVisualAid.add(f);c.onPreProcess.add(function(g,i){var h=i.node.lastChild;if(h&&h.childNodes.length==1&&h.firstChild.nodeName=="BR"){g.dom.remove(h)}});f()}if(c&&c.plugins.contextmenu){c.plugins.contextmenu.onContextMenu.add(function(i,g,k){var l,j=c.selection,h=j.getNode()||c.getBody();if(c.dom.getParent(k,"td")||c.dom.getParent(k,"th")){g.removeAll();if(h.nodeName=="A"&&!c.dom.getAttrib(h,"name")){g.add({title:"advanced.link_desc",icon:"link",cmd:c.plugins.advlink?"mceAdvLink":"mceLink",ui:true});g.add({title:"advanced.unlink_desc",icon:"unlink",cmd:"UnLink"});g.addSeparator()}if(h.nodeName=="IMG"&&h.className.indexOf("mceItem")==-1){g.add({title:"advanced.image_desc",icon:"image",cmd:c.plugins.advimage?"mceAdvImage":"mceImage",ui:true});g.addSeparator()}g.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",ui:true,value:{action:"insert"}});g.add({title:"table.props_desc",icon:"table_props",cmd:"mceInsertTable",ui:true});g.add({title:"table.del",icon:"delete_table",cmd:"mceTableDelete",ui:true});g.addSeparator();l=g.addMenu({title:"table.cell"});l.add({title:"table.cell_desc",icon:"cell_props",cmd:"mceTableCellProps",ui:true});l.add({title:"table.split_cells_desc",icon:"split_cells",cmd:"mceTableSplitCells",ui:true});l.add({title:"table.merge_cells_desc",icon:"merge_cells",cmd:"mceTableMergeCells",ui:true});l=g.addMenu({title:"table.row"});l.add({title:"table.row_desc",icon:"row_props",cmd:"mceTableRowProps",ui:true});l.add({title:"table.row_before_desc",icon:"row_before",cmd:"mceTableInsertRowBefore"});l.add({title:"table.row_after_desc",icon:"row_after",cmd:"mceTableInsertRowAfter"});l.add({title:"table.delete_row_desc",icon:"delete_row",cmd:"mceTableDeleteRow"});l.addSeparator();l.add({title:"table.cut_row_desc",icon:"cut",cmd:"mceTableCutRow"});l.add({title:"table.copy_row_desc",icon:"copy",cmd:"mceTableCopyRow"});l.add({title:"table.paste_row_before_desc",icon:"paste",cmd:"mceTablePasteRowBefore"});l.add({title:"table.paste_row_after_desc",icon:"paste",cmd:"mceTablePasteRowAfter"});l=g.addMenu({title:"table.col"});l.add({title:"table.col_before_desc",icon:"col_before",cmd:"mceTableInsertColBefore"});l.add({title:"table.col_after_desc",icon:"col_after",cmd:"mceTableInsertColAfter"});l.add({title:"table.delete_col_desc",icon:"delete_col",cmd:"mceTableDeleteCol"})}else{g.add({title:"table.desc",icon:"table",cmd:"mceInsertTable",ui:true})}})}});c.onKeyDown.add(function(f,g){if(g.keyCode==9&&f.dom.getParent(f.selection.getNode(),"TABLE")){if(!tinymce.isGecko&&!tinymce.isOpera){tinyMCE.execInstanceCommand(f.editorId,"mceTableMoveToNextRow",true);return tinymce.dom.Event.cancel(g)}f.undoManager.add()}});if(!tinymce.isIE){if(c.getParam("table_selection",true)){c.onClick.add(function(f,g){g=g.target;if(g.nodeName==="TABLE"){f.selection.select(g)}})}}c.onNodeChange.add(function(g,f,i){var h=g.dom.getParent(i,"td,th,caption");f.setActive("table",i.nodeName==="TABLE"||!!h);if(h&&h.nodeName==="CAPTION"){h=null}f.setDisabled("delete_table",!h);f.setDisabled("delete_col",!h);f.setDisabled("delete_table",!h);f.setDisabled("delete_row",!h);f.setDisabled("col_after",!h);f.setDisabled("col_before",!h);f.setDisabled("row_after",!h);f.setDisabled("row_before",!h);f.setDisabled("row_props",!h);f.setDisabled("cell_props",!h);f.setDisabled("split_cells",!h||(parseInt(g.dom.getAttrib(h,"colspan","1"))<2&&parseInt(g.dom.getAttrib(h,"rowspan","1"))<2));f.setDisabled("merge_cells",!h)});if(!tinymce.isIE){c.onBeforeSetContent.add(function(f,g){if(g.initial){g.content=g.content.replace(/<(td|th)([^>]+|)>\s*<\/(td|th)>/g,tinymce.isOpera?"<$1$2> </$1>":'<$1$2><br mce_bogus="1" /></$1>')}})}},execCommand:function(f,e,g){var d=this.editor,c;switch(f){case"mceTableMoveToNextRow":case"mceInsertTable":case"mceTableRowProps":case"mceTableCellProps":case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":case"mceTableDelete":d.execCommand("mceBeginUndoLevel");this._doExecCommand(f,e,g);d.execCommand("mceEndUndoLevel");return true}return false},getInfo:function(){return{longname:"Tables",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/table",version:tinymce.majorVersion+"."+tinymce.minorVersion}},_doExecCommand:function(s,aa,af){var W=this.editor,av=W,h=this.url;var o=W.selection.getNode();var X=W.dom.getParent(o,"tr");var ar=W.dom.getParent(o,"td,th");var G=W.dom.getParent(o,"table");var l=W.contentWindow.document;var aw=G?G.getAttribute("border"):"";if(X&&ar==null){ar=X.cells[0]}function aq(y,x){for(var ay=0;ay<y.length;ay++){if(y[ay].length>0&&aq(y[ay],x)){return true}if(y[ay]==x){return true}}return false}function ak(x,i){var y;ae=f(G);x=x||0;i=i||0;x=Math.max(p.cellindex+x,0);i=Math.max(p.rowindex+i,0);W.execCommand("mceRepaint");y=e(ae,i,x);if(y){W.selection.select(y.firstChild||y);W.selection.collapse(1)}}function ai(){var i=l.createElement("td");if(!tinymce.isIE){i.innerHTML='<br mce_bogus="1"/>'}}function k(y){var x=W.dom.getAttrib(y,"colspan");var i=W.dom.getAttrib(y,"rowspan");x=x==""?1:parseInt(x);i=i==""?1:parseInt(i);return{colspan:x,rowspan:i}}function am(ay,aA){var i,az;for(az=0;az<ay.length;az++){for(i=0;i<ay[az].length;i++){if(ay[az][i]==aA){return{cellindex:i,rowindex:az}}}}return null}function e(x,y,i){if(x[y]&&x[y][i]){return x[y][i]}return null}function B(aD,ay){var aA=[],y=0,aB,az,ay,aC;for(aB=0;aB<aD.rows.length;aB++){for(az=0;az<aD.rows[aB].cells.length;az++,y++){aA[y]=aD.rows[aB].cells[az]}}for(aB=0;aB<aA.length;aB++){if(aA[aB]==ay){if(aC=aA[aB+1]){return aC}}}}function f(aF){var i=[],aG=aF.rows,aD,aC,az,aA,aE,ay,aB;for(aC=0;aC<aG.length;aC++){for(aD=0;aD<aG[aC].cells.length;aD++){az=aG[aC].cells[aD];aA=k(az);for(aE=aD;i[aC]&&i[aC][aE];aE++){}for(aB=aC;aB<aC+aA.rowspan;aB++){if(!i[aB]){i[aB]=[]}for(ay=aE;ay<aE+aA.colspan;ay++){i[aB][ay]=az}}}}return i}function n(aH,aE,az,ay){var y=f(aH),aG=am(y,az);var aI,aD;if(ay.cells.length!=aE.childNodes.length){aI=aE.childNodes;aD=null;for(var aF=0;az=e(y,aG.rowindex,aF);aF++){var aB=true;var aC=k(az);if(aq(aI,az)){ay.childNodes[aF]._delete=true}else{if((aD==null||az!=aD)&&aC.colspan>1){for(var aA=aF;aA<aF+az.colSpan;aA++){ay.childNodes[aA]._delete=true}}}if((aD==null||az!=aD)&&aC.rowspan>1){az.rowSpan=aC.rowspan+1}aD=az}C(G)}}function P(x,i){while((x=x.previousSibling)!=null){if(x.nodeName==i){return x}}return null}function ag(ay,az){var x=az.split(",");while((ay=ay.nextSibling)!=null){for(var y=0;y<x.length;y++){if(ay.nodeName.toLowerCase()==x[y].toLowerCase()){return ay}}}return null}function C(ay){if(ay.rows==0){return}var y=ay.rows[0];do{var x=ag(y,"TR");if(y._delete){y.parentNode.removeChild(y);continue}var az=y.cells[0];if(az.cells>1){do{var i=ag(az,"TD,TH");if(az._delete){az.parentNode.removeChild(az)}}while((az=i)!=null)}}while((y=x)!=null)}function q(ay,aB,aA){ay.rowSpan=1;var x=ag(aB,"TR");for(var az=1;az<aA&&x;az++){var y=l.createElement("td");if(!tinymce.isIE){y.innerHTML='<br mce_bogus="1"/>'}if(tinymce.isIE){x.insertBefore(y,x.cells(ay.cellIndex))}else{x.insertBefore(y,x.cells[ay.cellIndex])}x=ag(x,"TR")}}function T(aG,aI,aC){var y=f(aI);var ay=aC.cloneNode(false);var aH=am(y,aC.cells[0]);var aD=null;var aB=W.dom.getAttrib(aI,"border");var aA=null;for(var aF=0;aA=e(y,aH.rowindex,aF);aF++){var aE=null;if(aD!=aA){for(var az=0;az<aC.cells.length;az++){if(aA==aC.cells[az]){aE=aA.cloneNode(true);break}}}if(aE==null){aE=aG.createElement("td");if(!tinymce.isIE){aE.innerHTML='<br mce_bogus="1"/>'}}aE.colSpan=1;aE.rowSpan=1;ay.appendChild(aE);aD=aA}return ay}switch(s){case"mceTableMoveToNextRow":var M=B(G,ar);if(!M){W.execCommand("mceTableInsertRowAfter",ar);M=B(G,ar)}W.selection.select(M);W.selection.collapse(true);return true;case"mceTableRowProps":if(X==null){return true}if(aa){W.windowManager.open({url:h+"/row.htm",width:400+parseInt(W.getLang("table.rowprops_delta_width",0)),height:295+parseInt(W.getLang("table.rowprops_delta_height",0)),inline:1},{plugin_url:h})}return true;case"mceTableCellProps":if(ar==null){return true}if(aa){W.windowManager.open({url:h+"/cell.htm",width:400+parseInt(W.getLang("table.cellprops_delta_width",0)),height:295+parseInt(W.getLang("table.cellprops_delta_height",0)),inline:1},{plugin_url:h})}return true;case"mceInsertTable":if(aa){W.windowManager.open({url:h+"/table.htm",width:400+parseInt(W.getLang("table.table_delta_width",0)),height:320+parseInt(W.getLang("table.table_delta_height",0)),inline:1},{plugin_url:h,action:af?af.action:0})}return true;case"mceTableDelete":var H=W.dom.getParent(W.selection.getNode(),"table");if(H){H.parentNode.removeChild(H);W.execCommand("mceRepaint")}return true;case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":if(!G){return true}if(X&&G!=X.parentNode){G=X.parentNode}if(G&&X){switch(s){case"mceTableCutRow":if(!X||!ar){return true}W.tableRowClipboard=T(l,G,X);W.execCommand("mceTableDeleteRow");break;case"mceTableCopyRow":if(!X||!ar){return true}W.tableRowClipboard=T(l,G,X);break;case"mceTablePasteRowBefore":if(!X||!ar){return true}var w=W.tableRowClipboard.cloneNode(true);var j=P(X,"TR");if(j!=null){n(G,j,j.cells[0],w)}X.parentNode.insertBefore(w,X);break;case"mceTablePasteRowAfter":if(!X||!ar){return true}var Y=ag(X,"TR");var w=W.tableRowClipboard.cloneNode(true);n(G,X,ar,w);if(Y==null){X.parentNode.appendChild(w)}else{Y.parentNode.insertBefore(w,Y)}break;case"mceTableInsertRowBefore":if(!X||!ar){return true}var ae=f(G);var p=am(ae,ar);var w=l.createElement("tr");var v=null;p.rowindex--;if(p.rowindex<0){p.rowindex=0}for(var ad=0;ar=e(ae,p.rowindex,ad);ad++){if(ar!=v){var F=k(ar);if(F.rowspan==1){var K=l.createElement("td");if(!tinymce.isIE){K.innerHTML='<br mce_bogus="1"/>'}K.colSpan=ar.colSpan;w.appendChild(K)}else{ar.rowSpan=F.rowspan+1}v=ar}}X.parentNode.insertBefore(w,X);ak(0,1);break;case"mceTableInsertRowAfter":if(!X||!ar){return true}var ae=f(G);var p=am(ae,ar);var w=l.createElement("tr");var v=null;for(var ad=0;ar=e(ae,p.rowindex,ad);ad++){if(ar!=v){var F=k(ar);if(F.rowspan==1){var K=l.createElement("td");if(!tinymce.isIE){K.innerHTML='<br mce_bogus="1"/>'}K.colSpan=ar.colSpan;w.appendChild(K)}else{ar.rowSpan=F.rowspan+1}v=ar}}if(w.hasChildNodes()){var Y=ag(X,"TR");if(Y){Y.parentNode.insertBefore(w,Y)}else{G.appendChild(w)}}ak(0,1);break;case"mceTableDeleteRow":if(!X||!ar){return true}var ae=f(G);var p=am(ae,ar);if(ae.length==1&&G.nodeName=="TBODY"){W.dom.remove(W.dom.getParent(G,"table"));return true}var E=X.cells;var Y=ag(X,"TR");for(var ad=0;ad<E.length;ad++){if(E[ad].rowSpan>1){var K=E[ad].cloneNode(true);var F=k(E[ad]);K.rowSpan=F.rowspan-1;var al=Y.cells[ad];if(al==null){Y.appendChild(K)}else{Y.insertBefore(K,al)}}}var v=null;for(var ad=0;ar=e(ae,p.rowindex,ad);ad++){if(ar!=v){var F=k(ar);if(F.rowspan>1){ar.rowSpan=F.rowspan-1}else{X=ar.parentNode;if(X.parentNode){X._delete=true}}v=ar}}C(G);ak(0,-1);break;case"mceTableInsertColBefore":if(!X||!ar){return true}var ae=f(W.dom.getParent(G,"table"));var p=am(ae,ar);var v=null;for(var ab=0;ar=e(ae,ab,p.cellindex);ab++){if(ar!=v){var F=k(ar);if(F.colspan==1){var K=l.createElement(ar.nodeName);if(!tinymce.isIE){K.innerHTML='<br mce_bogus="1"/>'}K.rowSpan=ar.rowSpan;ar.parentNode.insertBefore(K,ar)}else{ar.colSpan++}v=ar}}ak();break;case"mceTableInsertColAfter":if(!X||!ar){return true}var ae=f(W.dom.getParent(G,"table"));var p=am(ae,ar);var v=null;for(var ab=0;ar=e(ae,ab,p.cellindex);ab++){if(ar!=v){var F=k(ar);if(F.colspan==1){var K=l.createElement(ar.nodeName);if(!tinymce.isIE){K.innerHTML='<br mce_bogus="1"/>'}K.rowSpan=ar.rowSpan;var al=ag(ar,"TD,TH");if(al==null){ar.parentNode.appendChild(K)}else{al.parentNode.insertBefore(K,al)}}else{ar.colSpan++}v=ar}}ak(1);break;case"mceTableDeleteCol":if(!X||!ar){return true}var ae=f(G);var p=am(ae,ar);var v=null;if((ae.length>1&&ae[0].length<=1)&&G.nodeName=="TBODY"){W.dom.remove(W.dom.getParent(G,"table"));return true}for(var ab=0;ar=e(ae,ab,p.cellindex);ab++){if(ar!=v){var F=k(ar);if(F.colspan>1){ar.colSpan=F.colspan-1}else{if(ar.parentNode){ar.parentNode.removeChild(ar)}}v=ar}}ak(-1);break;case"mceTableSplitCells":if(!X||!ar){return true}var m=k(ar);var D=m.colspan;var I=m.rowspan;if(D>1||I>1){ar.colSpan=1;for(var an=1;an<D;an++){var K=l.createElement("td");if(!tinymce.isIE){K.innerHTML='<br mce_bogus="1"/>'}X.insertBefore(K,ag(ar,"TD,TH"));if(I>1){q(K,X,I)}}q(ar,X,I)}G=W.dom.getParent(W.selection.getNode(),"table");break;case"mceTableMergeCells":var ap=[];var S=W.selection.getSel();var ae=f(G);if(tinymce.isIE||S.rangeCount==1){if(aa){var u=k(ar);W.windowManager.open({url:h+"/merge_cells.htm",width:240+parseInt(W.getLang("table.merge_cells_delta_width",0)),height:110+parseInt(W.getLang("table.merge_cells_delta_height",0)),inline:1},{action:"update",numcols:u.colspan,numrows:u.rowspan,plugin_url:h});return true}else{var V=parseInt(af.numrows);var d=parseInt(af.numcols);var p=am(ae,ar);if((""+V)=="NaN"){V=1}if((""+d)=="NaN"){d=1}var c=G.rows;for(var ab=p.rowindex;ab<ae.length;ab++){var ah=[];for(var ad=p.cellindex;ad<ae[ab].length;ad++){var g=e(ae,ab,ad);if(g&&!aq(ap,g)&&!aq(ah,g)){var O=am(ae,g);if(O.cellindex<p.cellindex+d&&O.rowindex<p.rowindex+V){ah[ah.length]=g}}}if(ah.length>0){ap[ap.length]=ah}var g=e(ae,p.rowindex,p.cellindex);b(av.dom.select("br",g),function(y,x){if(x>0&&av.dom.getAttrib("mce_bogus")){av.dom.remove(y)}})}}}else{var E=[];var S=W.selection.getSel();var Z=null;var ao=null;var A=-1,ax=-1,z,au;if(S.rangeCount<2){return true}for(var an=0;an<S.rangeCount;an++){var aj=S.getRangeAt(an);var ar=aj.startContainer.childNodes[aj.startOffset];if(!ar){break}if(ar.nodeName=="TD"||ar.nodeName=="TH"){E[E.length]=ar}}var c=G.rows;for(var ab=0;ab<c.length;ab++){var ah=[];for(var ad=0;ad<c[ab].cells.length;ad++){var g=c[ab].cells[ad];for(var an=0;an<E.length;an++){if(g==E[an]){ah[ah.length]=g}}}if(ah.length>0){ap[ap.length]=ah}}var ao=[];var Z=null;for(var ab=0;ab<ae.length;ab++){for(var ad=0;ad<ae[ab].length;ad++){ae[ab][ad]._selected=false;for(var an=0;an<E.length;an++){if(ae[ab][ad]==E[an]){if(A==-1){A=ad;ax=ab}z=ad;au=ab;ae[ab][ad]._selected=true}}}}for(var ab=ax;ab<=au;ab++){for(var ad=A;ad<=z;ad++){if(!ae[ab][ad]._selected){alert("Invalid selection for merge.");return true}}}}var t=1,r=1;var U=-1;for(var ab=0;ab<ap.length;ab++){var J=0;for(var ad=0;ad<ap[ab].length;ad++){var F=k(ap[ab][ad]);J+=F.colspan;if(U!=-1&&F.rowspan!=U){alert("Invalid selection for merge.");return true}U=F.rowspan}if(J>r){r=J}U=-1}var R=-1;for(var ad=0;ad<ap[0].length;ad++){var N=0;for(var ab=0;ab<ap.length;ab++){var F=k(ap[ab][ad]);N+=F.rowspan;if(R!=-1&&F.colspan!=R){alert("Invalid selection for merge.");return true}R=F.colspan}if(N>t){t=N}R=-1}ar=ap[0][0];ar.rowSpan=t;ar.colSpan=r;for(var ab=0;ab<ap.length;ab++){for(var ad=0;ad<ap[ab].length;ad++){var Q=ap[ab][ad].innerHTML;var L=Q.replace(/[ \t\r\n]/g,"");if(L!="<br/>"&&L!="<br>"&&L!='<br mce_bogus="1"/>'&&(ad+ab>0)){ar.innerHTML+=Q}if(ap[ab][ad]!=ar&&!ap[ab][ad]._deleted){var p=am(ae,ap[ab][ad]);var at=ap[ab][ad].parentNode;at.removeChild(ap[ab][ad]);ap[ab][ad]._deleted=true;if(!at.hasChildNodes()){at.parentNode.removeChild(at);var ac=null;for(var ad=0;cellElm=e(ae,p.rowindex,ad);ad++){if(cellElm!=ac&&cellElm.rowSpan>1){cellElm.rowSpan--}ac=cellElm}if(ar.rowSpan>1){ar.rowSpan--}}}}}b(av.dom.select("br",ar),function(y,x){if(x>0&&av.dom.getAttrib(y,"mce_bogus")){av.dom.remove(y)}});break}G=W.dom.getParent(W.selection.getNode(),"table");W.addVisual(G);W.nodeChanged()}return true}return false}});tinymce.PluginManager.add("table",tinymce.plugins.TablePlugin)})();
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* $Id: editor_plugin_src.js
|
2
|
+
* $Id: editor_plugin_src.js 1209 2009-08-20 12:35:10Z spocke $
|
3
3
|
*
|
4
4
|
* @author Moxiecode
|
5
5
|
* @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
|
@@ -8,6 +8,20 @@
|
|
8
8
|
(function() {
|
9
9
|
var each = tinymce.each;
|
10
10
|
|
11
|
+
// Checks if the selection/caret is at the start of the specified block element
|
12
|
+
function isAtStart(rng, par) {
|
13
|
+
var doc = par.ownerDocument, rng2 = doc.createRange(), elm;
|
14
|
+
|
15
|
+
rng2.setStartBefore(par);
|
16
|
+
rng2.setEnd(rng.endContainer, rng.endOffset);
|
17
|
+
|
18
|
+
elm = doc.createElement('body');
|
19
|
+
elm.appendChild(rng2.cloneContents());
|
20
|
+
|
21
|
+
// Check for text characters of other elements that should be treated as content
|
22
|
+
return elm.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi, '-').replace(/<[^>]+>/g, '').length == 0;
|
23
|
+
};
|
24
|
+
|
11
25
|
tinymce.create('tinymce.plugins.TablePlugin', {
|
12
26
|
init : function(ed, url) {
|
13
27
|
var t = this;
|
@@ -65,6 +79,34 @@
|
|
65
79
|
ed.dom.add(ed.getBody(), 'p', null, '<br mce_bogus="1" />');
|
66
80
|
};
|
67
81
|
|
82
|
+
// Fixes an bug where it's impossible to place the caret before a table in Gecko
|
83
|
+
// this fix solves it by detecting when the caret is at the beginning of such a table
|
84
|
+
// and then manually moves the caret infront of the table
|
85
|
+
if (tinymce.isGecko) {
|
86
|
+
ed.onKeyDown.add(function(ed, e) {
|
87
|
+
var rng, table, dom = ed.dom;
|
88
|
+
|
89
|
+
// On gecko it's not possible to place the caret before a table
|
90
|
+
if (e.keyCode == 37 || e.keyCode == 38) {
|
91
|
+
rng = ed.selection.getRng();
|
92
|
+
table = dom.getParent(rng.startContainer, 'table');
|
93
|
+
|
94
|
+
if (table && ed.getBody().firstChild == table) {
|
95
|
+
if (isAtStart(rng, table)) {
|
96
|
+
rng = dom.createRng();
|
97
|
+
|
98
|
+
rng.setStartBefore(table);
|
99
|
+
rng.setEndBefore(table);
|
100
|
+
|
101
|
+
ed.selection.setRng(rng);
|
102
|
+
|
103
|
+
e.preventDefault();
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
});
|
108
|
+
}
|
109
|
+
|
68
110
|
ed.onKeyUp.add(fixTableCaretPos);
|
69
111
|
ed.onSetContent.add(fixTableCaretPos);
|
70
112
|
ed.onVisualAid.add(fixTableCaretPos);
|
@@ -3,72 +3,72 @@ general_tab:"General",
|
|
3
3
|
advanced_tab:"Avan\u00E7at",
|
4
4
|
general_props:"Propietats generals",
|
5
5
|
advanced_props:"Propietats avan\u00E7ades",
|
6
|
-
rowtype:"
|
6
|
+
rowtype:"Fila",
|
7
7
|
title:"Insereix/Modifica taula",
|
8
8
|
width:"Amplada",
|
9
9
|
height:"Al\u00E7ada",
|
10
10
|
cols:"Columnes",
|
11
11
|
rows:"Files",
|
12
|
-
cellspacing:"
|
13
|
-
cellpadding:"
|
12
|
+
cellspacing:"Espaiat de cel\u00B7la",
|
13
|
+
cellpadding:"Separaci\u00F3 de cel\u00B7la",
|
14
14
|
border:"Vora",
|
15
15
|
align:"Alineaci\u00F3",
|
16
16
|
align_default:"Per defecte",
|
17
17
|
align_left:"Esquerra",
|
18
18
|
align_right:"Dreta",
|
19
|
-
align_middle:"
|
20
|
-
row_title:"Propietats de
|
21
|
-
cell_title:"Propietats de
|
19
|
+
align_middle:"Centre",
|
20
|
+
row_title:"Propietats de fila",
|
21
|
+
cell_title:"Propietats de cel\u00B7la",
|
22
22
|
cell_type:"Tipus de cel\u00B7la",
|
23
23
|
valign:"Alineaci\u00F3 vertical",
|
24
|
-
align_top:"
|
25
|
-
align_bottom:"
|
26
|
-
bordercolor:"Color de
|
27
|
-
bgcolor:"Color
|
28
|
-
merge_cells_title:"
|
24
|
+
align_top:"A dalt",
|
25
|
+
align_bottom:"A baix",
|
26
|
+
bordercolor:"Color de vora",
|
27
|
+
bgcolor:"Color de fons",
|
28
|
+
merge_cells_title:"Fusiona cel\u00B7les",
|
29
29
|
id:"Id",
|
30
30
|
style:"Estil",
|
31
|
-
langdir:"Direcci\u00F3 de l'
|
32
|
-
langcode:"Codi de l'idioma",
|
33
|
-
mime:"Tipus MIME
|
34
|
-
ltr:"D'esquerra a dreta",
|
31
|
+
langdir:"Direcci\u00F3 de l\'idioma",
|
32
|
+
langcode:"Codi de l\'idioma",
|
33
|
+
mime:"Tipus MIME",
|
34
|
+
ltr:"D\'esquerra a dreta",
|
35
35
|
rtl:"De dreta a esquerra",
|
36
36
|
bgimage:"Imatge de fons",
|
37
37
|
summary:"Resum",
|
38
38
|
td:"Dades",
|
39
39
|
th:"Cap\u00E7alera",
|
40
|
-
cell_cell:"Actualitza la cel\u00B7la
|
40
|
+
cell_cell:"Actualitza la cel\u00B7la",
|
41
41
|
cell_row:"Actualitza totes les cel\u00B7les de la fila",
|
42
42
|
cell_all:"Actualitza totes les cel\u00B7les de la taula",
|
43
|
-
row_row:"Actualitza la fila
|
44
|
-
row_odd:"Actualitza les files senars
|
45
|
-
row_even:"Actualitza les files
|
46
|
-
row_all:"Actualitza les files
|
47
|
-
thead:"Cap\u00E7alera de la
|
48
|
-
tbody:"Cos de la
|
49
|
-
tfoot:"Peu de la
|
43
|
+
row_row:"Actualitza la fila",
|
44
|
+
row_odd:"Actualitza les files senars",
|
45
|
+
row_even:"Actualitza les files parells",
|
46
|
+
row_all:"Actualitza totes les files",
|
47
|
+
thead:"Cap\u00E7alera de la taula",
|
48
|
+
tbody:"Cos de la taula",
|
49
|
+
tfoot:"Peu de la taula",
|
50
50
|
scope:"Abast",
|
51
|
-
rowgroup:"Grup de
|
52
|
-
colgroup:"Grup de
|
53
|
-
col_limit:"
|
54
|
-
row_limit:"
|
55
|
-
cell_limit:"
|
56
|
-
missing_scope:"
|
51
|
+
rowgroup:"Grup de files",
|
52
|
+
colgroup:"Grup de columnes",
|
53
|
+
col_limit:"Heu superat el nombre m\u00E0xim de columnes de {$cols}.",
|
54
|
+
row_limit:"Heu superat el nombre m\u00E0xim de files de {$rows}.",
|
55
|
+
cell_limit:"Heu superat el nombre m\u00E0xim de cel\u00B7les de {$cells}..",
|
56
|
+
missing_scope:"Esteu segur que voleu continuar sense indicar un abast per a aquesta cel\u00B7la de cap\u00E7alera. Pot ser dif\u00EDcil per a alguns usuaris amb discapacitats entendre el contingut o les dades mostrades a la taula.",
|
57
57
|
caption:"T\u00EDtol de la taula",
|
58
58
|
frame:"Marc",
|
59
59
|
frame_none:"cap",
|
60
60
|
frame_groups:"grups",
|
61
61
|
frame_rows:"files",
|
62
62
|
frame_cols:"columnes",
|
63
|
-
frame_all:"
|
63
|
+
frame_all:"tot",
|
64
64
|
rules:"Regles",
|
65
|
-
rules_void:"
|
66
|
-
rules_above:"
|
67
|
-
rules_below:"sota",
|
68
|
-
rules_hsides:"
|
65
|
+
rules_void:"buit",
|
66
|
+
rules_above:"per damunt de",
|
67
|
+
rules_below:"per sota de",
|
68
|
+
rules_hsides:"hsides",
|
69
69
|
rules_lhs:"lhs",
|
70
70
|
rules_rhs:"rhs",
|
71
|
-
rules_vsides:"
|
72
|
-
rules_box:"
|
71
|
+
rules_vsides:"vsides",
|
72
|
+
rules_box:"quadre",
|
73
73
|
rules_border:"vora"
|
74
74
|
});
|
@@ -1,74 +1,74 @@
|
|
1
1
|
tinyMCE.addI18n('he.table_dlg',{
|
2
|
-
general_tab:"\
|
3
|
-
advanced_tab:"\
|
4
|
-
general_props:"\
|
5
|
-
advanced_props:"\
|
6
|
-
rowtype:"\
|
7
|
-
title:"\
|
8
|
-
width:"\
|
9
|
-
height:"\
|
10
|
-
cols:"\
|
11
|
-
rows:"\
|
2
|
+
general_tab:"\u05F3\u203A\u05F3\u009C\u05F3\u009C\u05F3\u2122",
|
3
|
+
advanced_tab:"\u05F3\u009E\u05F3\u00D7\u05F3\u00A7\u05F3\u201C\u05F3\u009D",
|
4
|
+
general_props:"\u05F3\u00D7\u05F3\u203A\u05F3\u2022\u05F3\u00A0\u05F3\u2022\u05F3\u00D7 \u05F3\u203A\u05F3\u009C\u05F3\u009C\u05F3\u2122\u05F3\u2022\u05F3\u00D7",
|
5
|
+
advanced_props:"\u05F3\u00D7\u05F3\u203A\u05F3\u2022\u05F3\u00A0\u05F3\u2022\u05F3\u00D7 \u05F3\u009E\u05F3\u00D7\u05F3\u00A7\u05F3\u201C\u05F3\u009E\u05F3\u2022\u05F3\u00D7",
|
6
|
+
rowtype:"\u05F3\u00A1\u05F3\u2022\u05F3\u2019 \u05F3\u201D\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u201D \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
7
|
+
title:"\u05F3\u201D\u05F3\u2022\u05F3\u00A1\u05F3\u20AA\u05F3\u00D7/\u05F3\u00A2\u05F3\u00A8\u05F3\u2122\u05F3\u203A\u05F3\u00D7 \u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
8
|
+
width:"\u05F3\u00A8\u05F3\u2022\u05F3\u2014\u05F3\u2018",
|
9
|
+
height:"\u05F3\u2019\u05F3\u2022\u05F3\u2018\u05F3\u201D",
|
10
|
+
cols:"\u05F3\u00A2\u05F3\u009E\u05F3\u2022\u05F3\u201C\u05F3\u2022\u05F3\u00D7",
|
11
|
+
rows:"\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u2022\u05F3\u00D7",
|
12
12
|
cellspacing:"Cellspacing",
|
13
13
|
cellpadding:"Cellpadding",
|
14
|
-
border:"\
|
15
|
-
align:"\
|
14
|
+
border:"\u05F3\u2019\u05F3\u2018\u05F3\u2022\u05F3\u009C",
|
15
|
+
align:"\u05F3\u2122\u05F3\u00A9\u05F3\u2022\u05F3\u00A8 \u05F3\u0090\u05F3\u2022\u05F3\u20AA\u05F3\u00A7\u05F3\u2122",
|
16
16
|
align_default:"Default",
|
17
|
-
align_left:"\
|
18
|
-
align_right:"\
|
19
|
-
align_middle:"\
|
20
|
-
row_title:"\
|
21
|
-
cell_title:"\
|
22
|
-
cell_type:"\
|
23
|
-
valign:"\
|
24
|
-
align_top:"\
|
25
|
-
align_bottom:"\
|
26
|
-
bordercolor:"\
|
27
|
-
bgcolor:"\
|
28
|
-
merge_cells_title:"\
|
17
|
+
align_left:"\u05F3\u009C\u05F3\u00A9\u05F3\u009E\u05F3\u0090\u05F3\u009C",
|
18
|
+
align_right:"\u05F3\u009C\u05F3\u2122\u05F3\u009E\u05F3\u2122\u05F3\u009F",
|
19
|
+
align_middle:"\u05F3\u0090\u05F3\u009E\u05F3\u00A6\u05F3\u00A2",
|
20
|
+
row_title:"\u05F3\u00D7\u05F3\u203A\u05F3\u2022\u05F3\u00A0\u05F3\u2022\u05F3\u00D7 \u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u201D \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
21
|
+
cell_title:"\u05F3\u00D7\u05F3\u203A\u05F3\u2022\u05F3\u00A0\u05F3\u2022\u05F3\u00D7 \u05F3\u00D7\u05F3\u0090 \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
22
|
+
cell_type:"\u05F3\u00A1\u05F3\u2019\u05F3\u00A0\u05F3\u2022\u05F3\u009F \u05F3\u201D\u05F3\u00D7\u05F3\u0090",
|
23
|
+
valign:"\u05F3\u2122\u05F3\u00A9\u05F3\u2022\u05F3\u00A8 \u05F3\u0090\u05F3\u00A0\u05F3\u203A\u05F3\u2122",
|
24
|
+
align_top:"\u05F3\u00A2\u05F3\u009C\u05F3\u2122\u05F3\u2022\u05F3\u009F",
|
25
|
+
align_bottom:"\u05F3\u00D7\u05F3\u2014\u05F3\u00D7\u05F3\u2122\u05F3\u00D7",
|
26
|
+
bordercolor:"\u05F3\u00A6\u05F3\u2018\u05F3\u00A2 \u05F3\u201D\u05F3\u2019\u05F3\u2018\u05F3\u2022\u05F3\u009C",
|
27
|
+
bgcolor:"\u05F3\u00A6\u05F3\u2018\u05F3\u00A2 \u05F3\u201D\u05F3\u00A8\u05F3\u00A7\u05F3\u00A2",
|
28
|
+
merge_cells_title:"\u05F3\u0090\u05F3\u2014\u05F3\u201C \u05F3\u00D7\u05F3\u0090\u05F3\u2122\u05F3\u009D \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
29
29
|
id:"Id",
|
30
30
|
style:"Style",
|
31
|
-
langdir:"\
|
32
|
-
langcode:"\
|
31
|
+
langdir:"\u05F3\u203A\u05F3\u2122\u05F3\u2022\u05F3\u2022\u05F3\u009F \u05F3\u201D\u05F3\u00A9\u05F3\u20AA\u05F3\u201D",
|
32
|
+
langcode:"\u05F3\u00A7\u05F3\u2022\u05F3\u201C \u05F3\u201D\u05F3\u00A9\u05F3\u20AA\u05F3\u201D",
|
33
33
|
mime:"Target MIME type",
|
34
|
-
ltr:"\
|
35
|
-
rtl:"\
|
36
|
-
bgimage:"\
|
37
|
-
summary:"\
|
38
|
-
td:"\
|
39
|
-
th:"\
|
40
|
-
cell_cell:"\
|
41
|
-
cell_row:"\
|
42
|
-
cell_all:"\
|
43
|
-
row_row:"\
|
44
|
-
row_odd:"\
|
45
|
-
row_even:"\
|
46
|
-
row_all:"\
|
47
|
-
thead:"\
|
48
|
-
tbody:"\
|
49
|
-
tfoot:"\
|
34
|
+
ltr:"\u05F3\u009E\u05F3\u00A9\u05F3\u009E\u05F3\u0090\u05F3\u009C \u05F3\u009C\u05F3\u2122\u05F3\u009E\u05F3\u2122\u05F3\u009F",
|
35
|
+
rtl:"\u05F3\u009E\u05F3\u2122\u05F3\u009E\u05F3\u2122\u05F3\u009F \u05F3\u009C\u05F3\u00A9\u05F3\u009E\u05F3\u0090\u05F3\u009C",
|
36
|
+
bgimage:"\u05F3\u00D7\u05F3\u009E\u05F3\u2022\u05F3\u00A0\u05F3\u00D7 \u05F3\u00A8\u05F3\u00A7\u05F3\u00A2",
|
37
|
+
summary:"\u05F3\u00D7\u05F3\u009E\u05F3\u00A6\u05F3\u2122\u05F3\u00D7",
|
38
|
+
td:"\u05F3\u00D7\u05F3\u0090 \u05F3\u009E\u05F3\u2122\u05F3\u201C\u05F3\u00A2",
|
39
|
+
th:"\u05F3\u203A\u05F3\u2022\u05F3\u00D7\u05F3\u00A8\u05F3\u00D7",
|
40
|
+
cell_cell:"\u05F3\u00A2\u05F3\u201C\u05F3\u203A\u05F3\u2022\u05F3\u009F \u05F3\u00D7\u05F3\u0090 \u05F3\u00A0\u05F3\u2022\u05F3\u203A\u05F3\u2014\u05F3\u2122",
|
41
|
+
cell_row:"\u05F3\u00A2\u05F3\u201C\u05F3\u203A\u05F3\u2022\u05F3\u009F \u05F3\u203A\u05F3\u009C \u05F3\u00D7\u05F3\u0090\u05F3\u2122 \u05F3\u201D\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u201D",
|
42
|
+
cell_all:"\u05F3\u00A2\u05F3\u201C\u05F3\u203A\u05F3\u2022\u05F3\u009F \u05F3\u203A\u05F3\u009C \u05F3\u00D7\u05F3\u0090\u05F3\u2122 \u05F3\u201D\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
43
|
+
row_row:"\u05F3\u00A2\u05F3\u201C\u05F3\u203A\u05F3\u2022\u05F3\u009F \u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u201D \u05F3\u00A0\u05F3\u2022\u05F3\u203A\u05F3\u2014\u05F3\u2122\u05F3\u00D7",
|
44
|
+
row_odd:"\u05F3\u00A2\u05F3\u201C\u05F3\u203A\u05F3\u2022\u05F3\u009F \u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u2022\u05F3\u00D7 \u05F3\u0090\u05F3\u2122-\u05F3\u2013\u05F3\u2022\u05F3\u2019\u05F3\u2122\u05F3\u2022\u05F3\u00D7 \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
45
|
+
row_even:"\u05F3\u00A2\u05F3\u201C\u05F3\u203A\u05F3\u2022\u05F3\u009F \u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u2022\u05F3\u00D7 \u05F3\u2013\u05F3\u2022\u05F3\u2019\u05F3\u2122\u05F3\u2022\u05F3\u00D7 \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
46
|
+
row_all:"\u05F3\u00A2\u05F3\u201C\u05F3\u203A\u05F3\u2022\u05F3\u009F\u05F3\u203A\u05F3\u009C \u05F3\u201D\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u2022\u05F3\u00D7 \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
47
|
+
thead:"\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u00D7 \u05F3\u203A\u05F3\u2022\u05F3\u00D7\u05F3\u00A8\u05F3\u00D7",
|
48
|
+
tbody:"\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u201D \u05F3\u00A8\u05F3\u2019\u05F3\u2122\u05F3\u009C\u05F3\u201D",
|
49
|
+
tfoot:"\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u201D \u05F3\u00D7\u05F3\u2014\u05F3\u00D7\u05F3\u2122\u05F3\u00D7",
|
50
50
|
scope:"Scope",
|
51
51
|
rowgroup:"Row Group",
|
52
52
|
colgroup:"Col Group",
|
53
|
-
col_limit:"\
|
54
|
-
row_limit:"\
|
55
|
-
cell_limit:"\
|
53
|
+
col_limit:"\u05F3\u2014\u05F3\u00A8\u05F3\u2122\u05F3\u2019\u05F3\u201D \u05F3\u009E\u05F3\u009E\u05F3\u00A1\u05F3\u20AA\u05F3\u00A8 \u05F3\u201D\u05F3\u00A2\u05F3\u009E\u05F3\u2022\u05F3\u201C\u05F3\u2022\u05F3\u00D7 \u05F3\u201D\u05F3\u009E\u05F3\u00A7\u05F3\u00A1\u05F3\u2122\u05F3\u009E\u05F3\u0090\u05F3\u009C\u05F3\u2122 \u05F3\u00A9\u05F3\u009C {$cols}.",
|
54
|
+
row_limit:"\u05F3\u2014\u05F3\u00A8\u05F3\u2122\u05F3\u2019\u05F3\u201D \u05F3\u009E\u05F3\u009E\u05F3\u00A1\u05F3\u20AA\u05F3\u00A8 \u05F3\u201D\u05F3\u009E\u05F3\u00A7\u05F3\u00A1\u05F3\u2122\u05F3\u009E\u05F3\u0090\u05F3\u009C\u05F3\u2122 \u05F3\u00A9\u05F3\u009C \u05F3\u201D\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u2022\u05F3\u00D7 \u05F3\u00A9\u05F3\u009C {$rows}.",
|
55
|
+
cell_limit:"\u05F3\u2014\u05F3\u00A8\u05F3\u2122\u05F3\u2019\u05F3\u201D \u05F3\u009E\u05F3\u009E\u05F3\u00A1\u05F3\u20AA\u05F3\u00A8 \u05F3\u201D\u05F3\u009E\u05F3\u00A7\u05F3\u00A1\u05F3\u2122\u05F3\u009E\u05F3\u0090\u05F3\u009C\u05F3\u2122 \u05F3\u00A9\u05F3\u009C \u05F3\u201D\u05F3\u00D7\u05F3\u0090\u05F3\u2122\u05F3\u009D \u05F3\u2018\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D \u05F3\u00A9\u05F3\u009C {$cells}.",
|
56
56
|
missing_scope:"Are you sure you want to continue without specifying a scope for this table header cell. Without it, it may be difficult for some users with disabilities to understand the content or data displayed of the table.",
|
57
|
-
caption:"\
|
57
|
+
caption:"\u05F3\u203A\u05F3\u2022\u05F3\u00D7\u05F3\u00A8\u05F3\u00D7 \u05F3\u201D\u05F3\u02DC\u05F3\u2018\u05F3\u009C\u05F3\u201D",
|
58
58
|
frame:"Frame",
|
59
59
|
frame_none:"none",
|
60
|
-
frame_groups:"\
|
61
|
-
frame_rows:"\
|
62
|
-
frame_cols:"\
|
63
|
-
frame_all:"\
|
64
|
-
rules:"\
|
60
|
+
frame_groups:"\u05F3\u00A7\u05F3\u2018\u05F3\u2022\u05F3\u00A6\u05F3\u2022\u05F3\u00D7",
|
61
|
+
frame_rows:"\u05F3\u00A9\u05F3\u2022\u05F3\u00A8\u05F3\u2022\u05F3\u00D7",
|
62
|
+
frame_cols:"\u05F3\u00A2\u05F3\u009E\u05F3\u2022\u05F3\u201C\u05F3\u2022\u05F3\u00D7",
|
63
|
+
frame_all:"\u05F3\u201D\u05F3\u203A\u05F3\u2022\u05F3\u009C",
|
64
|
+
rules:"\u05F3\u2014\u05F3\u2022\u05F3\u00A7\u05F3\u2122\u05F3\u009D",
|
65
65
|
rules_void:"void",
|
66
|
-
rules_above:"\
|
67
|
-
rules_below:"\
|
66
|
+
rules_above:"\u05F3\u009E\u05F3\u00A2\u05F3\u009C",
|
67
|
+
rules_below:"\u05F3\u009E\u05F3\u00D7\u05F3\u2014\u05F3\u00D7",
|
68
68
|
rules_hsides:"hsides",
|
69
69
|
rules_lhs:"lhs",
|
70
70
|
rules_rhs:"rhs",
|
71
71
|
rules_vsides:"vsides",
|
72
72
|
rules_box:"box",
|
73
|
-
rules_border:"\
|
73
|
+
rules_border:"\u05F3\u2019\u05F3\u2018\u05F3\u2022\u05F3\u009C"
|
74
74
|
});
|
@@ -1,74 +1,74 @@
|
|
1
1
|
tinyMCE.addI18n('ja.table_dlg',{
|
2
2
|
general_tab:"\u4E00\u822C",
|
3
|
-
advanced_tab:"\u9AD8\
|
4
|
-
general_props:"\u4E00\u822C",
|
5
|
-
advanced_props:"\u9AD8\
|
6
|
-
rowtype:"\u884C",
|
7
|
-
title:"\
|
8
|
-
width:"\
|
9
|
-
height:"\u9AD8\
|
10
|
-
cols:"\u5217",
|
11
|
-
rows:"\u884C",
|
12
|
-
cellspacing:"
|
13
|
-
cellpadding:"
|
14
|
-
border:"\
|
15
|
-
align:"\
|
16
|
-
align_default:"\
|
17
|
-
align_left:"\u5DE6
|
18
|
-
align_right:"\u53F3
|
19
|
-
align_middle:"\u4E2D
|
20
|
-
row_title:"\u884C\
|
21
|
-
cell_title:"\
|
22
|
-
cell_type:"\
|
23
|
-
valign:"\
|
24
|
-
align_top:"\u4E0A\
|
25
|
-
align_bottom:"\u4E0B\
|
26
|
-
bordercolor:"\
|
27
|
-
bgcolor:"\u80CC\u666F\u8272",
|
28
|
-
merge_cells_title:"\
|
29
|
-
id:"
|
30
|
-
style:"\
|
31
|
-
langdir:"\
|
32
|
-
langcode:"\u8A00\
|
33
|
-
mime:"\
|
34
|
-
ltr:"\u5DE6\
|
35
|
-
rtl:"\u53F3\
|
36
|
-
bgimage:"\u80CC\u666F\
|
37
|
-
summary:"\
|
38
|
-
td:"\
|
39
|
-
th:"\
|
40
|
-
cell_cell:"\
|
41
|
-
cell_row:"\u884C\
|
42
|
-
cell_all:"\
|
43
|
-
row_row:"\
|
44
|
-
row_odd:"\u5947\u6570\u884C
|
45
|
-
row_even:"\u5076\u6570\u884C
|
46
|
-
row_all:"\
|
47
|
-
thead:"\u8868\
|
48
|
-
tbody:"\u8868\
|
49
|
-
tfoot:"\u8868\
|
50
|
-
scope:"\
|
51
|
-
rowgroup:"\u884C\
|
52
|
-
colgroup:"\u5217\
|
53
|
-
col_limit:"\
|
54
|
-
row_limit:"\
|
55
|
-
cell_limit:"\
|
56
|
-
missing_scope:"\
|
57
|
-
caption:"\u8868\
|
58
|
-
frame:"\
|
59
|
-
frame_none:"\
|
60
|
-
frame_groups:"\
|
3
|
+
advanced_tab:"\u9AD8\u7EA7",
|
4
|
+
general_props:"\u4E00\u822C\u5C5E\u6027",
|
5
|
+
advanced_props:"\u9AD8\u7EA7\u5C5E\u6027",
|
6
|
+
rowtype:"\u884C\u6240\u5728\u7684\u8868\u683C\u4F4D\u7F6E",
|
7
|
+
title:"\u63D2\u5165/\u7F16\u8F91\u8868\u683C",
|
8
|
+
width:"\u5BBD\u5EA6",
|
9
|
+
height:"\u9AD8\u5EA6",
|
10
|
+
cols:"\u5217\u6570",
|
11
|
+
rows:"\u884C\u6570",
|
12
|
+
cellspacing:"\u50A8\u5B58\u683C\u95F4\u8DDD",
|
13
|
+
cellpadding:"\u50A8\u5B58\u683C\u7559\u767D",
|
14
|
+
border:"\u8FB9\u6846",
|
15
|
+
align:"\u5BF9\u9F50\u65B9\u5F0F",
|
16
|
+
align_default:"\u9884\u8BBE",
|
17
|
+
align_left:"\u9760\u5DE6",
|
18
|
+
align_right:"\u9760\u53F3",
|
19
|
+
align_middle:"\u5C45\u4E2D",
|
20
|
+
row_title:"\u884C\u5C5E\u6027",
|
21
|
+
cell_title:"\u50A8\u5B58\u683C\u5C5E\u6027",
|
22
|
+
cell_type:"\u50A8\u5B58\u683C\u522B",
|
23
|
+
valign:"\u6C34\u51C6\u5BF9\u9F50\u65B9\u5F0F",
|
24
|
+
align_top:"\u4E0A\u65B9",
|
25
|
+
align_bottom:"\u4E0B\u65B9",
|
26
|
+
bordercolor:"\u8FB9\u6846\u989C\u8272",
|
27
|
+
bgcolor:"\u80CC\u666F\u989C\u8272",
|
28
|
+
merge_cells_title:"\u5408\u5E76\u50A8\u5B58\u683C",
|
29
|
+
id:"Id",
|
30
|
+
style:"\u6837\u5F0F",
|
31
|
+
langdir:"\u8BED\u8A00\u4E66\u5199\u65B9\u5411",
|
32
|
+
langcode:"\u8BED\u8A00\u7F16\u7801",
|
33
|
+
mime:"\u76EE\u6807MIME\u7C7B\u578B",
|
34
|
+
ltr:"\u7531\u5DE6\u5230\u53F3",
|
35
|
+
rtl:"\u7531\u53F3\u5230\u5DE6",
|
36
|
+
bgimage:"\u80CC\u666F\u56FE\u7247",
|
37
|
+
summary:"\u6982\u8981",
|
38
|
+
td:"\u6570\u636E",
|
39
|
+
th:"\u8868\u5934",
|
40
|
+
cell_cell:"\u66F4\u65B0\u6240\u7684\u50A8\u5B58\u683C",
|
41
|
+
cell_row:"\u66F4\u65B0\u6240\u5728\u884C\u7684\u5168\u90E8\u50A8\u5B58\u683C",
|
42
|
+
cell_all:"\u66F4\u65B0\u8868\u683C\u5185\u7684\u5168\u90E8\u50A8\u5B58\u683C",
|
43
|
+
row_row:"\u66F4\u65B0\u6240\u5728\u884C",
|
44
|
+
row_odd:"\u66F4\u65B0\u8868\u683C\u5185\u7684\u5947\u6570\u884C",
|
45
|
+
row_even:"\u66F4\u65B0\u8868\u683C\u5185\u7684\u5076\u6570\u884C",
|
46
|
+
row_all:"\u66F4\u65B0\u8868\u683C\u5185\u5168\u90E8\u884C",
|
47
|
+
thead:"\u8868\u5934",
|
48
|
+
tbody:"\u8868\u8EAB",
|
49
|
+
tfoot:"\u8868\u5C3E",
|
50
|
+
scope:"\u8303\u56F4",
|
51
|
+
rowgroup:"\u884C\u7FA4\u7EC4",
|
52
|
+
colgroup:"\u5217\u7FA4\u7EC4",
|
53
|
+
col_limit:"\u5DF2\u8D85\u8FC7\u53EF\u7528\u6570\uFF0C\u6700\u9AD8\u7684\u5217\u6570\u4E3A{$cols}\u5217\u3002",
|
54
|
+
row_limit:"\u5DF2\u8D85\u8FC7\u53EF\u7528\u6570\uFF0C\u6700\u9AD8\u7684\u884C\u6570\u4E3A{$rows}\u884C\u3002",
|
55
|
+
cell_limit:"\u5DF2\u8D85\u8FC7\u53EF\u7528\u6570\uFF0C\u6700\u9AD8\u7684\u50A8\u5B58\u683C\u6570\u4E3A{$cells}\u683C\u3002",
|
56
|
+
missing_scope:"\u6807\u9898\u884C\u7F3A\u5931\uFF01",
|
57
|
+
caption:"\u8868\u683C\u6807\u9898",
|
58
|
+
frame:"\u8FB9\u6846",
|
59
|
+
frame_none:"\u65E0",
|
60
|
+
frame_groups:"\u7FA4\u7EC4",
|
61
61
|
frame_rows:"\u884C",
|
62
62
|
frame_cols:"\u5217",
|
63
|
-
frame_all:"\u5168\
|
64
|
-
rules:"\
|
65
|
-
rules_void:"\
|
63
|
+
frame_all:"\u5168\u90E8",
|
64
|
+
rules:"\u7EBF\u6761",
|
65
|
+
rules_void:"\u7A7A",
|
66
66
|
rules_above:"\u4E0A",
|
67
67
|
rules_below:"\u4E0B",
|
68
|
-
rules_hsides:"\
|
69
|
-
rules_lhs:"\u5DE6",
|
70
|
-
rules_rhs:"\u53F3",
|
71
|
-
rules_vsides:"\
|
72
|
-
rules_box:"\
|
73
|
-
rules_border:"\
|
68
|
+
rules_hsides:"\u6C34\u51C6\u8FB9",
|
69
|
+
rules_lhs:"\u5DE6\u8FB9",
|
70
|
+
rules_rhs:"\u53F3\u8FB9",
|
71
|
+
rules_vsides:"\u5782\u76F4\u8FB9",
|
72
|
+
rules_box:"\u76D2\u578B",
|
73
|
+
rules_border:"\u5916\u6846"
|
74
74
|
});
|
@@ -13,7 +13,7 @@ cellspacing:"Cellspacing",
|
|
13
13
|
cellpadding:"Cellpadding",
|
14
14
|
border:"R\u00E1m\u010Dek",
|
15
15
|
align:"Poloha",
|
16
|
-
align_default:"
|
16
|
+
align_default:"Predvolen\u00E9",
|
17
17
|
align_left:"V\u013Eavo",
|
18
18
|
align_right:"Vpravo",
|
19
19
|
align_middle:"Na stred",
|
@@ -53,11 +53,11 @@ colgroup:"Skupina st\u013Apcov",
|
|
53
53
|
col_limit:"Bol presiahnut\u00FD maxim\u00E1lny po\u010Det st\u013Apcov {$cols}.",
|
54
54
|
row_limit:"Bol presiahnut\u00FD maxim\u00E1lny po\u010Det riadkov {$rows}.",
|
55
55
|
cell_limit:"Bol presiahnut\u00FD maxim\u00E1lny po\u010Det buniek {$cells}.",
|
56
|
-
missing_scope:"
|
57
|
-
caption:"
|
56
|
+
missing_scope:"Skuto\u010Dne chcete pokra\u010Dova\u0165 bez ur\u010Denia oblasti hlavi\u010Dky tejto tabu\u013Eky. Bez nej toti\u017E m\u00F4\u017Ee d\u00F4js\u0165 k ur\u010Dit\u00FDm probl\u00E9mom pri intepret\u00E1cii a zobrazovan\u00ED d\u00E1t v tabu\u013Eke.",
|
57
|
+
caption:"Nadpis tabu\u013Eky",
|
58
58
|
frame:"R\u00E1m\u010Dek",
|
59
59
|
frame_none:"\u017Eiadne",
|
60
|
-
frame_groups:"
|
60
|
+
frame_groups:"skupiny",
|
61
61
|
frame_rows:"riadky",
|
62
62
|
frame_cols:"st\u013Apce",
|
63
63
|
frame_all:"v\u0161etky",
|