Created
December 19, 2011 21:01
-
-
Save ariera/1498854 to your computer and use it in GitHub Desktop.
Full Toolbar en el CKEditor de ComunidadUmbria
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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