function insert_vars(theselector,dest){ var selvars=''; for (var i=0 ; i< theselector.options.length ; i++){ if (theselector.options[i].selected){ selvars=theselector.options[i].value ; break; } } if(!selvars) return ; if(pmbDojo.aceManager.getEditor(dest.id)){ pmbDojo.aceManager.getEditor('content').insert(selvars); } else { if(typeof(tinyMCE)== 'undefined'){ var start = dest.selectionStart; var start_text = dest.value.substring(0, start); var end_text = dest.value.substring(start); dest.value = start_text+selvars+end_text; }else{ tinyMCE_execCommand('mceInsertContent',false,selvars); } } }
!!fields_options!!
";