Version 2.2.2
This commit is contained in:
1 parent
22f1b963ee
commit
a3bb603c96
858 files changed
+479463
-188140
No files matched your search
@@ -1 +1 @@
|
||||
function check_side_panel(editor_id){if(global_rte_remove_side_panel){document.getElementById('rte-toggle-side-panel-button').style.display='none';return true;}var _open=global_rte_side_panel_open;var _cookie=ipsclass.my_getcookie('rte-sidepanel');if(_cookie=='open'||_cookie=='close'){_open=(_cookie=='open')?1:0;}if(_open){show_options_panel(editor_id,_open);}}function show_options_panel(editor_id,force,start_emo){if(global_rte_remove_side_panel){document.getElementById('rte-toggle-side-panel-button').style.display='none';return true;}if(typeof(start_emo)=='undefined'){start_emo=0;}var _editor=document.getElementById(editor_id+'_main-bar');var _options=document.getElementById(editor_id+'_options-bar');var _height=parseInt(_editor.offsetHeight);var _mode='open';var _more_less='';_options.innerHTML='';if(typeof(force)!='undefined'){_mode=(force==1)?'open':'close';}else{if(_options._panel_open){_mode='close';}}ipsclass.my_setcookie('rte-sidepanel',_mode,1);if(_mode=='open'){_editor.style.width='82%';_editor.parentNode.align='right';_options.style.width='17%';_options.style.height=_height?_height-2+'px':'auto';_options.style.display='block';_options._panel_open=1;var _main_div=document.createElement('div');_main_div.className='rte-option-emo-box';_main_div.style.width='90%';_main_div.innerHTML+='<div class="rte-menu-emo-header"><a href="#" style="text-decoration:none" onclick="return show_all_emoticons(\''+editor_id+'\')">'+ips_language_array['emos_show_all']+'</a></div>';var _div=document.createElement('div');_div.style.width='100%';_div.style.height='120px';_div.style.overflowY='auto';_div.style.overflowX='auto';var table=document.createElement('table');table.cellPadding=0;table.cellSpacing=0;table.border=0;table.width='99%';table.nowrap='nowrap';if(is_ie){table.style.paddingRight='15px';}var i=0;var perrow=3;var show_emos=12;var show_rows=show_emos/perrow;var max_emos=0;var _previous=0;var _next=0;for(var emo in ips_smilie_items){max_emos++;}for(var emo in ips_smilie_items){var _tmp=ips_smilie_items[emo].split(",");var _id=_tmp[0]-1;if(_id<start_emo||_id>=(show_emos+start_emo)){continue;}if(i%perrow==0){var tr=table.insertRow(-1);}i++;var div=document.createElement('div');var img='<img src="'+global_rte_emoticons_url+'/'+_tmp[1]+'" style="vertical-align:middle" border="0" id="smid_'+_tmp[0]+'" /> ';div.innerHTML=img;var td=tr.insertCell(-1);td.width='33%';td.align='center';td.className='rte-menu-emo-box';td.appendChild(div);td.cmd='emoticons';td.editor_id=editor_id;td.id=editor_id+'_emoticon_'+_tmp[0];td.emo_id=_tmp[0];td.emo_image=_tmp[1];td.emo_code=emo;td.onclick=ips_editor_events.prototype.emoticon_onclick;}_div.appendChild(table);_main_div.appendChild(_div);if(start_emo>0){if(start_emo+i<max_emos){_previous=start_emo-show_emos;}else{_previous=start_emo-show_emos;}_more_less='<div style="float:left"><a href="#" style="text-decoration:none" onclick="return show_options_panel(\''+editor_id+'\', '+'1'+','+_previous+')">'+ips_language_array['emos_show_prev']+'</a></div>';}if(show_emos+start_emo<max_emos){if(start_emo<1){_next=start_emo+show_emos;}else{_next=start_emo+show_emos;}_more_less+='<div style="float:right"><a href="#" style="text-decoration:none" onclick="return show_options_panel(\''+editor_id+'\', '+'1'+','+_next+');">'+ips_language_array['emos_show_next']+'</a></div>';}if(_more_less){var _div=document.createElement('div');_div.className="rte-menu-emo-header";_div.style.height='17px';_div.innerHTML=_more_less;_main_div.appendChild(_div);}_options.appendChild(_main_div);var table=document.createElement('table');table.cellPadding=0;table.cellSpacing=0;table.border=0;table.width='90%';table.className='rte-option-emo-box';var i=0;var perrow=3;var tr=table.insertRow(-1);var td=tr.insertCell(-1);td.colSpan=perrow;td.align='center';td.cellPadding=0;td.innerHTML='<div class="rte-menu-emo-header">Quick Access</div>';for(var i in IPS_editor[editor_id].ips_special_items){var tr=table.insertRow(-1);var option=tr.insertCell(-1);var img=(typeof IPS_editor[editor_id].ips_special_items[i][1]!='undefined')?'<img src="'+global_rte_images_url+IPS_editor[editor_id].ips_special_items[i][1]+'" style="vertical-align:middle" border="" /> ':'';option.innerHTML=img+IPS_editor[editor_id].ips_special_items[i][0];option.className='rte-menu-face';option.style.textAlign='left';option.style.paddingLeft='2px';option.cmd='module_load',option.loader_key=i.replace('cmd_loader_','');option.editor_id=editor_id;option.onmouseover=option.onclick=option.onmouseout=option.onmouseup=option.onmousedown=ips_editor_events.prototype.special_onmouse_event;}_options.appendChild(table);ipsclass.set_unselectable(_options);}else{_editor.style.width='100%';_editor.parentNode.align='center';_options.style.width='0%';_options.style.height=_height?_height-2+'px':'150px';_options.style.display='none';_options._panel_open=0;_options.innerHTML='';}return false;}function switch_editor_mode(editor_id){var url=ipb_var_base_url+'act=xmlout&do=post-editorswitLine truncated
|
||||
var _options_done=0;function check_side_panel(editor_id){if(global_rte_remove_side_panel){document.getElementById('rte-toggle-side-panel-button').style.display='none';return true;}var _open=global_rte_side_panel_open;var _cookie=ipsclass.my_getcookie('rte-sidepanel');if(_cookie=='open'||_cookie=='close'){_open=(_cookie=='open')?1:0;}if(_open){show_options_panel(editor_id,_open);}};function show_options_panel(editor_id,force,start_emo){if(global_rte_remove_side_panel){document.getElementById('rte-toggle-side-panel-button').style.display='none';return true;}if(typeof(start_emo)=='undefined'){start_emo=0;}var _editor=document.getElementById(editor_id+'_main-bar');var _options=document.getElementById(editor_id+'_options-bar');var _height=parseInt(_editor.offsetHeight);var _mode='open';var _more_less='';_options.innerHTML='';if(typeof(force)!='undefined'){_mode=(force==1)?'open':'close';}else{if(_options._panel_open){_mode='close';}}ipsclass.my_setcookie('rte-sidepanel',_mode,1);if(_mode=='open'&&_options_done==1){_editor.style.width='80%';_options.style.width='auto';_options.style.height='auto';_options.style.display='block';_options._panel_open=1;document.getElementById(editor_id+'_spacer-bar').style.width='4px';}if(_mode=='open'){_editor.style.width='80%';if(is_opera){_editor.style.width='100%';_editor.style.display='block';}_options.style.width='auto';_options.style.height='auto';_options.style.display='block';_options._panel_open=1;document.getElementById(editor_id+'_spacer-bar').style.width='4px';var _main_div=document.createElement('div');_main_div.className='rte-option-emo-box';_main_div.style.width='90%';_main_div.innerHTML+='<div class="rte-menu-emo-header"><a href="#" style="text-decoration:none" onclick="return show_all_emoticons(\''+editor_id+'\')">'+ips_language_array['emos_show_all']+'</a></div>';var _div=document.createElement('div');_div.style.width='100%';_div.style.height='120px';_div.style.overflow='auto';_div.style.overflowY='auto';_div.style.overflowX='auto';var table=document.createElement('table');table.cellPadding=0;table.cellSpacing=0;table.border=0;table.width='99%';var i=0;var perrow=3;var show_emos=12;var show_rows=show_emos/perrow;var max_emos=0;var _previous=0;var _next=0;for(var emo in ips_smilie_items){max_emos++;}for(var emo in ips_smilie_items){var _tmp=ips_smilie_items[emo].split(",");var _id=_tmp[0]-1;if(_id<start_emo||_id>=(show_emos+start_emo)){continue;}if(i%perrow==0){var tr=table.insertRow(-1);}i++;var div=document.createElement('div');var img='<img src="'+global_rte_emoticons_url+'/'+_tmp[1]+'" style="vertical-align:middle" border="0" id="smid_'+_tmp[0]+'" /> ';div.innerHTML=img;var td=tr.insertCell(-1);td.width='33%';td.align='center';td.className='rte-menu-emo-box';td.appendChild(div);td.cmd='emoticons';td.editor_id=editor_id;td.id=editor_id+'_emoticon_'+_tmp[0];td.emo_id=_tmp[0];td.emo_image=_tmp[1];td.emo_code=emo;td.onclick=ips_editor_events.prototype.emoticon_onclick;}_div.appendChild(table);_main_div.appendChild(_div);if(start_emo>0){if(start_emo+i<max_emos){_previous=start_emo-show_emos;}else{_previous=start_emo-show_emos;}_more_less='<div style="float:left"><a href="#" style="text-decoration:none" onclick="return show_options_panel(\''+editor_id+'\', '+'1'+','+_previous+')">'+ips_language_array['emos_show_prev']+'</a></div>';}if(show_emos+start_emo<max_emos){if(start_emo<1){_next=start_emo+show_emos;}else{_next=start_emo+show_emos;}_more_less+='<div style="float:right"><a href="#" style="text-decoration:none" onclick="return show_options_panel(\''+editor_id+'\', '+'1'+','+_next+');">'+ips_language_array['emos_show_next']+'</a></div>';}if(_more_less){var _div=document.createElement('div');_div.className="rte-menu-emo-header";_div.style.height='17px';_div.innerHTML=_more_less;_main_div.appendChild(_div);}_options.appendChild(_main_div);var table=document.createElement('table');table.cellPadding=0;table.cellSpacing=0;table.border=0;table.width='90%';table.className='rte-option-emo-box';var i=0;var perrow=3;var tr=table.insertRow(-1);var td=tr.insertCell(-1);td.colSpan=perrow;td.align='center';td.cellPadding=0;td.innerHTML='<div class="rte-menu-emo-header">'+ips_language_array['ed_quick_access']+'</div>';for(var i in IPS_editor[editor_id].ips_special_items){var tr=table.insertRow(-1);var option=tr.insertCell(-1);var img=(typeof IPS_editor[editor_id].ips_special_items[i][1]!='undefined')?'<img src="'+global_rte_images_url+IPS_editor[editor_id].ips_special_items[i][1]+'" style="vertical-align:middle" border="" /> ':'';option.innerHTML=img+IPS_editor[editor_id].ips_special_items[i][0];option.className='rte-menu-face';option.style.textAlign='left';option.style.paddingLeft='2px';option.cmd='module_load',option.loader_key=i.replace('cmd_loader_','');option.editor_id=editor_id;option.onmouseover=option.onclick=option.onmouseout=option.onmouseup=option.onmousedown=ips_editor_events.prototype.special_onmouse_event;}_options.appendChild(table);_options_done=1;ipsclass.set_uLine truncated
|
||||
Reference in new issue
Block a user