Hi.
I have created some custom styles in my config.js:
The "p" and "img" elements styles are working as expected. In CKEditor I select a paragraph, then select "Parrafo izquierda" (align left), and class="parrafoIzq" gets added to the p tag. But for blockquote, it doesnt seem to work. The class attribute is never added to the blockquote tag.
If i put the cursor anywhere in the document and select "Cita flotada", then this code is added:
witch is right, but I expected the same behavior as p or img when a tag blockquote is selected.
Is this by design or is a bug in my code, or a bug in CKEditor?
Thanks
I have created some custom styles in my config.js:
CKEDITOR.stylesSet.add('estilosBoletines',
[
// Párrafos
{ name: 'Párrafo izquierda', element: 'p', attributes: { 'class': 'parrafoIzq'} },
{ name: 'Párrafo derecha', element: 'p', attributes: { 'class': 'parrafoDch'} },
{ name: 'Párrafo centrado', element: 'p', attributes: { 'class': 'parrafoCen'} },
{ name: 'Párrafo justificado', element: 'p', attributes: { 'class': 'parrafoJus'} },
// Imágenes
{ name: 'Imagen izquierda', element: 'img', attributes: { 'class': 'imagenIzq'} },
{ name: 'Imagen derecha', element: 'img', attributes: { 'class': 'imagenDch'} },
// Blockquote
{ name: 'Cita flotada', element: 'blockquote', attributes: { 'class': 'flotado'} }
]);
The "p" and "img" elements styles are working as expected. In CKEditor I select a paragraph, then select "Parrafo izquierda" (align left), and class="parrafoIzq" gets added to the p tag. But for blockquote, it doesnt seem to work. The class attribute is never added to the blockquote tag.
If i put the cursor anywhere in the document and select "Cita flotada", then this code is added:
<blockquote class="flotado"> </blockquote>
witch is right, but I expected the same behavior as p or img when a tag blockquote is selected.
Is this by design or is a bug in my code, or a bug in CKEditor?
Thanks
