<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
// Creates a new plugin class and a custom listbox
tinymce.create('tinymce.plugins.ExamplePlugin', {
createControl: function(n, cm) {
switch (n) {
case 'secciones':
var c = cm.createMenuButton('secciones', {
title : 'Secciones',
image : 'img/example.gif',
icons : false
});
c.onRenderMenu.add(function(c, m) {
var sub;
m.add({title : 'Seccion 1', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion1"><u>seccion1</u></div>');
}});
m.add({title : 'Seccion 2', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion2"><u>seccion2</u></div>');
}});
m.add({title : 'Seccion 3', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion3"><u>seccion3</u></div>');
}});
m.add({title : 'Seccion 4', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion4"><u>seccion4</u></div>');
}});
m.add({title : 'Seccion 5', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion5"><u>seccion5</u></div>');
}});
m.add({title : 'Seccion 6', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion6"><u>seccion6</u></div>');
}});
m.add({title : 'Seccion 7', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion7"><u>seccion7</u></div>');
}});
m.add({title : 'Seccion 8', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion8"><u>seccion8</u></div>');
}});
m.add({title : 'Seccion 9', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion9"><u>seccion9</u></div>');
}});
m.add({title : 'Seccion 10', onclick : function() {
tinyMCE.activeEditor.execCommand('mceInsertContent', false, '<div id="seccion10"><u>seccion10</u></div>');
}});
});
// Return the new menu button instance
return c;
}
return null;
}
});
// Register plugin with a short name
tinymce.PluginManager.add('example', tinymce.plugins.ExamplePlugin);
tinyMCE.init({
plugins : '-example',
mode : "textareas",
theme : "advanced",
theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,bullist,numlist,undo,redo,link,unlink,code,removeformat ",
theme_advanced_buttons2 : "googleMaps,streetView,separator,secciones",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
setup : function(ed) {
// Add a custom button
ed.addButton('googleMaps', {
title : 'Google Maps',
image : 'javaScript/tiny_mce/googleMaps.jpg',
onclick : function() {
var e= ed.selection.getContent();
ed.selection.setContent('<div id="gmaps"><u>gmaps</u></div>');
}
});
ed.addButton('streetView', {
title : 'Street View',
image : 'javaScript/tiny_mce/streetView.jpg',
onclick : function() {
var e= ed.selection.getContent();
ed.selection.setContent('<div id="streetview"><u>streetview</u></div>');
}
});
}
});
</script>
<field id="cm:content" label="Contenido" mandatory="true" set="GEN">
<control template="/org/alfresco/components/form/controls/probando.ftl" />
</field>
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.