Añade nuevos estilos para subrayar textos

This commit is contained in:
Manuel Cillero 2020-04-13 17:27:26 +02:00
parent ef39a9ae5b
commit 4b3cc8920e
2 changed files with 45 additions and 35 deletions

View file

@ -20,11 +20,11 @@ CKEDITOR.stylesSet.add( 'default', [
{ name: 'Normal', element: 'p', attributes: { 'class': '' } }, { name: 'Normal', element: 'p', attributes: { 'class': '' } },
{ name: 'A !', element: 'p', attributes: { 'class': 'note-cyan' } }, { name: 'Recuadro A', element: 'p', attributes: { 'class': 'note-cyan' } },
{ name: 'B !', element: 'p', attributes: { 'class': 'note-green' } }, { name: 'Recuadro B', element: 'p', attributes: { 'class': 'note-green' } },
{ name: 'C !', element: 'p', attributes: { 'class': 'note-yellow' } }, { name: 'Recuadro C', element: 'p', attributes: { 'class': 'note-yellow' } },
{ name: 'D !', element: 'p', attributes: { 'class': 'note-orange' } }, { name: 'Recuadro D', element: 'p', attributes: { 'class': 'note-orange' } },
{ name: 'E !', element: 'p', attributes: { 'class': 'note-red' } }, { name: 'Recuadro E', element: 'p', attributes: { 'class': 'note-red' } },
{ name: 'Contenedor tabla', element: 'div', attributes: { 'class': 'autoscroll' } }, { name: 'Contenedor tabla', element: 'div', attributes: { 'class': 'autoscroll' } },
@ -32,18 +32,18 @@ CKEDITOR.stylesSet.add( 'default', [
// so they are not needed here by default. You may enable them to avoid // so they are not needed here by default. You may enable them to avoid
// placing the "Format" combo in the toolbar, maintaining the same features. // placing the "Format" combo in the toolbar, maintaining the same features.
/* /*
{ name: 'Paragraph', element: 'p' }, { name: 'Paragraph', element: 'p' },
{ name: 'Heading 1', element: 'h1' }, { name: 'Heading 1', element: 'h1' },
{ name: 'Heading 2', element: 'h2' }, { name: 'Heading 2', element: 'h2' },
{ name: 'Heading 3', element: 'h3' }, { name: 'Heading 3', element: 'h3' },
{ name: 'Heading 4', element: 'h4' }, { name: 'Heading 4', element: 'h4' },
{ name: 'Heading 5', element: 'h5' }, { name: 'Heading 5', element: 'h5' },
{ name: 'Heading 6', element: 'h6' }, { name: 'Heading 6', element: 'h6' },
{ name: 'Preformatted Text',element: 'pre' }, { name: 'Preformatted Text',element: 'pre' },
{ name: 'Address', element: 'address' }, { name: 'Address', element: 'address' },
{ name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } }, { name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
{ name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } }, { name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
{ {
name: 'Special Container', name: 'Special Container',
element: 'div', element: 'div',
@ -56,6 +56,12 @@ CKEDITOR.stylesSet.add( 'default', [
/* Inline styles */ /* Inline styles */
{ name: 'Marcado A', element: 'span', attributes: { 'class': 'note-cyan' } },
{ name: 'Marcado B', element: 'span', attributes: { 'class': 'note-green' } },
{ name: 'Marcado C', element: 'span', attributes: { 'class': 'note-yellow' } },
{ name: 'Marcado D', element: 'span', attributes: { 'class': 'note-orange' } },
{ name: 'Marcado E', element: 'span', attributes: { 'class': 'note-red' } },
{ name: '[code]', element: 'code' }, { name: '[code]', element: 'code' },
{ name: '"sample"', element: 'samp' }, { name: '"sample"', element: 'samp' },
{ name: 'Variable', element: 'var' }, { name: 'Variable', element: 'var' },
@ -65,32 +71,32 @@ CKEDITOR.stylesSet.add( 'default', [
// some of them in the Styles drop-down list, removing them from the toolbar. // some of them in the Styles drop-down list, removing them from the toolbar.
// (This requires the "stylescombo" plugin.) // (This requires the "stylescombo" plugin.)
/* /*
{ name: 'Strong', element: 'strong', overrides: 'b' }, { name: 'Strong', element: 'strong', overrides: 'b' },
{ name: 'Emphasis', element: 'em' , overrides: 'i' }, { name: 'Emphasis', element: 'em', overrides: 'i' },
{ name: 'Underline', element: 'u' }, { name: 'Underline', element: 'u' },
{ name: 'Strikethrough', element: 'strike' }, { name: 'Strikethrough', element: 'strike' },
{ name: 'Subscript', element: 'sub' }, { name: 'Subscript', element: 'sub' },
{ name: 'Superscript', element: 'sup' }, { name: 'Superscript', element: 'sup' },
{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } }, { name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
{ name: 'Big', element: 'big' }, { name: 'Big', element: 'big' },
{ name: 'Small', element: 'small' }, { name: 'Small', element: 'small' },
{ name: 'Typewriter', element: 'tt' }, { name: 'Typewriter', element: 'tt' },
{ name: 'Computer Code', element: 'code' }, { name: 'Computer Code', element: 'code' },
{ name: 'Keyboard Phrase', element: 'kbd' }, { name: 'Keyboard Phrase', element: 'kbd' },
{ name: 'Sample Text', element: 'samp' }, { name: 'Sample Text', element: 'samp' },
{ name: 'Variable', element: 'var' }, { name: 'Variable', element: 'var' },
{ name: 'Deleted Text', element: 'del' }, { name: 'Deleted Text', element: 'del' },
{ name: 'Inserted Text', element: 'ins' }, { name: 'Inserted Text', element: 'ins' },
{ name: 'Cited Work', element: 'cite' }, { name: 'Cited Work', element: 'cite' },
{ name: 'Inline Quotation', element: 'q' }, { name: 'Inline Quotation', element: 'q' },
{ name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } }, { name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
{ name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } }, */ { name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } }, */
/* Object styles */ /* Object styles */
/* /*

View file

@ -175,6 +175,10 @@ div.youtube-embed-wrapper .responsive-view {
.note-yellow { .note-yellow {
background-color: BlanchedAlmond; background-color: BlanchedAlmond;
} }
span[class^="note-"] {
margin: 0;
padding: 2px 4px;
}
/* /*
* Editor styles. * Editor styles.