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: 'A !', element: 'p', attributes: { 'class': 'note-cyan' } },
{ name: 'B !', element: 'p', attributes: { 'class': 'note-green' } },
{ name: 'C !', element: 'p', attributes: { 'class': 'note-yellow' } },
{ name: 'D !', element: 'p', attributes: { 'class': 'note-orange' } },
{ name: 'E !', element: 'p', attributes: { 'class': 'note-red' } },
{ name: 'Recuadro A', element: 'p', attributes: { 'class': 'note-cyan' } },
{ name: 'Recuadro B', element: 'p', attributes: { 'class': 'note-green' } },
{ name: 'Recuadro C', element: 'p', attributes: { 'class': 'note-yellow' } },
{ name: 'Recuadro D', element: 'p', attributes: { 'class': 'note-orange' } },
{ name: 'Recuadro E', element: 'p', attributes: { 'class': 'note-red' } },
{ name: 'Contenedor tabla', element: 'div', attributes: { 'class': 'autoscroll' } },
@ -56,6 +56,12 @@ CKEDITOR.stylesSet.add( 'default', [
/* 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: '"sample"', element: 'samp' },
{ name: 'Variable', element: 'var' },
@ -66,7 +72,7 @@ CKEDITOR.stylesSet.add( 'default', [
// (This requires the "stylescombo" plugin.)
/*
{ name: 'Strong', element: 'strong', overrides: 'b' },
{ name: 'Emphasis', element: 'em' , overrides: 'i' },
{ name: 'Emphasis', element: 'em', overrides: 'i' },
{ name: 'Underline', element: 'u' },
{ name: 'Strikethrough', element: 'strike' },
{ name: 'Subscript', element: 'sub' },

View file

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