Skip to content

Instantly share code, notes, and snippets.

@ariera
Created December 19, 2011 21:01
Show Gist options
  • Save ariera/1498854 to your computer and use it in GitHub Desktop.
Save ariera/1498854 to your computer and use it in GitHub Desktop.
Full Toolbar en el CKEditor de ComunidadUmbria
<a href="javascript:(function(){_my_script=document.createElement('SCRIPT');_my_script.type='text/javascript';_my_script.src='https://raw.github.com/gist/1498854/62cca0c124580741a3572a751d2f2569413ee37f/full_cke.js';document.getElementsByTagName('head')[0].appendChild(_my_script);})();">Full_CKE</a>
(function(){
var lista_editores = ['TEXTO','NOTAS','historia','descripcion','notas','notas_notas'];
var ck_instance, element_id, viejo, parent;
for (i in lista_editores){
ck_instance = lista_editores[i];
element_id = 'cke_'+ck_instance;
viejo = document.getElementById(element_id);
if (viejo != null) {
CKEDITOR.remove(CKEDITOR.instances[ck_instance]);
parent = viejo.parentNode;
parent.removeChild(viejo);
CKEDITOR.replace(ck_instance,{toolbar: 'Full'});
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment