Se simplifica el desplegable de estilos de CKEditor
This commit is contained in:
parent
6e37a8d3ee
commit
a66f2036ee
2 changed files with 71 additions and 14 deletions
|
@ -18,6 +18,14 @@
|
|||
CKEDITOR.stylesSet.add( 'default', [
|
||||
/* Block styles */
|
||||
|
||||
{ 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' } },
|
||||
|
||||
// These styles are already available in the "Format" drop-down list ("format" plugin),
|
||||
// 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.
|
||||
|
@ -31,10 +39,9 @@ CKEDITOR.stylesSet.add( 'default', [
|
|||
{ name: 'Heading 6', element: 'h6' },
|
||||
{ name: 'Preformatted Text',element: 'pre' },
|
||||
{ name: 'Address', element: 'address' },
|
||||
*/
|
||||
|
||||
{ name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
|
||||
{ name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
|
||||
{ name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },
|
||||
{ name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },
|
||||
{
|
||||
name: 'Special Container',
|
||||
element: 'div',
|
||||
|
@ -43,23 +50,27 @@ CKEDITOR.stylesSet.add( 'default', [
|
|||
background: '#eee',
|
||||
border: '1px solid #ccc'
|
||||
}
|
||||
},
|
||||
}, */
|
||||
|
||||
/* Inline styles */
|
||||
|
||||
{ name: '[code]', element: 'code' },
|
||||
{ name: '"sample"', element: 'samp' },
|
||||
{ name: 'Variable', element: 'var' },
|
||||
{ name: 'Keyboard', element: 'kbd' }
|
||||
|
||||
// These are core styles available as toolbar buttons. You may opt enabling
|
||||
// some of them in the Styles drop-down list, removing them from the toolbar.
|
||||
// (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' },
|
||||
{ name: 'Superscript', element: 'sup' },
|
||||
*/
|
||||
|
||||
{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
|
||||
{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },
|
||||
|
||||
{ name: 'Big', element: 'big' },
|
||||
{ name: 'Small', element: 'small' },
|
||||
|
@ -76,11 +87,11 @@ CKEDITOR.stylesSet.add( 'default', [
|
|||
{ name: 'Cited Work', element: 'cite' },
|
||||
{ name: 'Inline Quotation', element: 'q' },
|
||||
|
||||
{ name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
|
||||
{ name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },
|
||||
{ name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },
|
||||
{ name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } }, */
|
||||
|
||||
/* Object styles */
|
||||
|
||||
/*
|
||||
{
|
||||
name: 'Styled Image (left)',
|
||||
element: 'img',
|
||||
|
@ -108,10 +119,10 @@ CKEDITOR.stylesSet.add( 'default', [
|
|||
},
|
||||
|
||||
{ name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },
|
||||
{ name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } },
|
||||
{ name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }, */
|
||||
|
||||
/* Widget styles */
|
||||
|
||||
/*
|
||||
{ name: 'Clean Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-clean' } },
|
||||
{ name: 'Grayscale Image', type: 'widget', widget: 'image', attributes: { 'class': 'image-grayscale' } },
|
||||
|
||||
|
@ -131,7 +142,6 @@ CKEDITOR.stylesSet.add( 'default', [
|
|||
{ name: '360p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-360p' }, group: 'size' },
|
||||
{ name: '480p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-480p' }, group: 'size' },
|
||||
{ name: '720p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-720p' }, group: 'size' },
|
||||
{ name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' }, group: 'size' }
|
||||
|
||||
{ name: '1080p ', type: 'widget', widget: 'embed', attributes: { 'class': 'embed-1080p' }, group: 'size' } */
|
||||
] );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue