Skip to content
Snippets Groups Projects
Commit 044a42fb authored by lbrun's avatar lbrun
Browse files

hotline #27958 update ckeditor

replace <big> style by CSS rule
parent cab55182
Branches
Tags
No related merge requests found
- ticket #28233 : CKeditor style 'Grand' : balise <big> remplacé par une règle CSS pour compatibilité HTML5
\ No newline at end of file
......@@ -3,16 +3,30 @@
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
config.plugins = 'dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc,iframedialog,slideshow,videodetector,lineutils,widget,oembed';
config.language = 'fr';
config.uiColor = '#F0F0F0';
config.resize_enabled = true;
config.toolbarCanCollapse = false;
config.skin = 'moono';
config.templates_replaceContent = false;
config.bodyClass = 'boiteMilieu ckeditor_content';
};
CKEDITOR.stylesSet.add('default',[
{ name:'Normal', element:'p' },
{ name:'Titre 1', element:'h1' },
{ name:'Titre 2', element:'h2' },
{ name:'Titre 3', element:'h3' },
{ name:'Titre 4', element:'h4' },
{ name:'Titre 5', element:'h5' },
{ name:'Titre 6', element:'h6' },
{ name:'Grand', element:'span', styles:{'font-size': '1.5em'}},
{ name:'Petit', element:'small' },
{ name:'Machine à écrire', element:'tt' },
{ name:'Code informatique', element:'code' },
{ name:'Texte supprimé', element:'del' },
{ name:'Texte inséré', element:'ins' },
{ name:'Citation', element:'cite' },
{ name:'Mise en avant', element:'div', attributes:{'class':'mise_en_avant'}},
{ name:'Ecriture droite à gauche', element:'span', attributes:{'dir':'rtl'}},
{ name:'Ecriture gauche à droite', element:'span', attributes:{'dir':'ltr'}},
{ name:'Image à Gauche', element:'img', attributes:{'border':'2', 'align':'left'},
styles:{'padding': '5px', 'margin-right': '5px'}},
{ name:'Image à Droite', element:'img', attributes:{'border':'2', 'align':'right'},
styles:{'padding': '5px', 'margin-left': '5px'}}
]);
CKEDITOR.on( 'dialogDefinition', function( ev )
{
......@@ -38,57 +52,13 @@ CKEDITOR.on( 'dialogDefinition', function( ev )
}
});
CKEDITOR.addStylesSet('default',[
{ name:'Normal',
element:'p' },
{ name:'Titre 1',
element:'h1' },
{ name:'Titre 2',
element:'h2' },
{ name:'Titre 3',
element:'h3' },
{ name:'Titre 4',
element:'h4' },
{ name:'Titre 5',
element:'h5' },
{ name:'Titre 6',
element:'h6' },
{ name:'Grand',
element:'big' },
{ name:'Petit',
element:'small' },
{ name:'Machine à écrire',
element:'tt' },
{ name:'Code informatique',
element:'code' },
{ name:'Texte supprimé',
element:'del' },
{ name:'Texte inséré',
element:'ins' },
{ name:'Citation',
element:'cite' },
{ name:'Mise en avant',
element:'div',
attributes:{
class:'mise_en_avant'}},
{ name:'Ecriture droite à gauche',
element:'span',
attributes:{
dir:'rtl'}},
{ name:'Ecriture gauche à droite',
element:'span',
attributes:{
dir:'ltr'}},
{ name:'Image à Gauche',
element:'img',
attributes:{
style:'padding: 5px; margin-right: 5px',
border:'2',
align:'left'}},
{ name:'Image à Droite',
element:'img',
attributes:{
style:'padding: 5px; margin-left: 5px',
border:'2',
align:'right'}}
]);
CKEDITOR.editorConfig = function( config ) {
config.plugins = 'dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc,iframedialog,slideshow,videodetector,lineutils,widget,oembed';
config.language = 'fr';
config.uiColor = '#F0F0F0';
config.resize_enabled = true;
config.toolbarCanCollapse = false;
config.skin = 'moono';
config.templates_replaceContent = false;
config.bodyClass = 'boiteMilieu ckeditor_content';
};
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment