Fix: tags h correctly supported

This commit is contained in:
Laurent Destailleur 2015-02-20 15:55:55 +01:00
parent 41196c01e9
commit dba050fd43
5 changed files with 38 additions and 29 deletions

View File

@ -24,7 +24,7 @@ CKEDITOR.editorConfig = function( config )
config.fullPage = false; // Not a full html page string, just part of it config.fullPage = false; // Not a full html page string, just part of it
config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)';
//config.contentsCss = '/css/mysitestyles.css'; //config.contentsCss = '/css/mysitestyles.css';
config.image_previewText=' '; config.image_previewText=' '; // Must no be empty
config.toolbar_Full = config.toolbar_Full =
[ [
@ -45,30 +45,33 @@ CKEDITOR.editorConfig = function( config )
['Maximize', 'ShowBlocks','-','About'] ['Maximize', 'ShowBlocks','-','About']
]; ];
// Used for mailing fields
config.toolbar_dolibarr_mailings = config.toolbar_dolibarr_mailings =
[ [
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar'] ['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for notes fields
config.toolbar_dolibarr_notes = config.toolbar_dolibarr_notes =
[ [
['Source'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Image','Table','HorizontalRule','SpecialChar'] ['Link','Unlink','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for details lines
config.toolbar_dolibarr_details = config.toolbar_dolibarr_details =
[ [
['Source','Maximize'], ['Source','Maximize'],
@ -77,7 +80,7 @@ CKEDITOR.editorConfig = function( config )
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['SpecialChar'] ['Link','Unlink','SpecialChar']
]; ];
// Used for mailing fields // Used for mailing fields
@ -86,5 +89,4 @@ CKEDITOR.editorConfig = function( config )
['Source','Maximize'], ['Source','Maximize'],
['Find'] ['Find']
]; ];
}; };

View File

@ -24,7 +24,7 @@ CKEDITOR.editorConfig = function( config )
config.fullPage = false; // Not a full html page string, just part of it config.fullPage = false; // Not a full html page string, just part of it
config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)';
//config.contentsCss = '/css/mysitestyles.css'; //config.contentsCss = '/css/mysitestyles.css';
config.image_previewText=' '; config.image_previewText=' '; // Must no be empty
config.toolbar_Full = config.toolbar_Full =
[ [
@ -45,30 +45,33 @@ CKEDITOR.editorConfig = function( config )
['Maximize', 'ShowBlocks','-','About'] ['Maximize', 'ShowBlocks','-','About']
]; ];
// Used for mailing fields
config.toolbar_dolibarr_mailings = config.toolbar_dolibarr_mailings =
[ [
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent','CreateDiv'], ['NumberedList','BulletedList','Outdent','Indent','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar'] ['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for notes fields
config.toolbar_dolibarr_notes = config.toolbar_dolibarr_notes =
[ [
['Source'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Image','Table','HorizontalRule','SpecialChar'] ['Link','Unlink','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for details lines
config.toolbar_dolibarr_details = config.toolbar_dolibarr_details =
[ [
['Source','Maximize'], ['Source','Maximize'],
@ -86,5 +89,4 @@ CKEDITOR.editorConfig = function( config )
['Source','Maximize'], ['Source','Maximize'],
['Find'] ['Find']
]; ];
}; };

View File

@ -24,7 +24,7 @@ CKEDITOR.editorConfig = function( config )
config.fullPage = false; // Not a full html page string, just part of it config.fullPage = false; // Not a full html page string, just part of it
config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)'; config.dialog_backgroundCoverColor = 'rgb(255, 254, 253)';
//config.contentsCss = '/css/mysitestyles.css'; //config.contentsCss = '/css/mysitestyles.css';
config.image_previewText=' '; config.image_previewText=' '; // Must no be empty
config.toolbar_Full = config.toolbar_Full =
[ [
@ -45,30 +45,33 @@ CKEDITOR.editorConfig = function( config )
['Maximize', 'ShowBlocks','-','About'] ['Maximize', 'ShowBlocks','-','About']
]; ];
// Used for mailing fields
config.toolbar_dolibarr_mailings = config.toolbar_dolibarr_mailings =
[ [
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent','CreateDiv'], ['NumberedList','BulletedList','Outdent','Indent','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar'] ['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for notes fields
config.toolbar_dolibarr_notes = config.toolbar_dolibarr_notes =
[ [
['Source'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Image','Table','HorizontalRule','SpecialChar'] ['Link','Unlink','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for details lines
config.toolbar_dolibarr_details = config.toolbar_dolibarr_details =
[ [
['Source','Maximize'], ['Source','Maximize'],
@ -86,5 +89,4 @@ CKEDITOR.editorConfig = function( config )
['Source','Maximize'], ['Source','Maximize'],
['Find'] ['Find']
]; ];
}; };

View File

@ -45,30 +45,33 @@ CKEDITOR.editorConfig = function( config )
['Maximize', 'ShowBlocks','-','About'] ['Maximize', 'ShowBlocks','-','About']
]; ];
// Used for mailing fields
config.toolbar_dolibarr_mailings = config.toolbar_dolibarr_mailings =
[ [
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent','CreateDiv'], ['NumberedList','BulletedList','Outdent','Indent','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Anchor','Image','Table','SpecialChar'] ['Link','Unlink','Anchor','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for notes fields
config.toolbar_dolibarr_notes = config.toolbar_dolibarr_notes =
[ [
['Source'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['Link','Unlink','Image','Table','SpecialChar'] ['Link','Unlink','Image','Table','HorizontalRule','SpecialChar']
]; ];
// Used for details lines
config.toolbar_dolibarr_details = config.toolbar_dolibarr_details =
[ [
['Source','Maximize'], ['Source','Maximize'],

View File

@ -51,7 +51,7 @@ CKEDITOR.editorConfig = function( config )
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent','CreateDiv'], ['NumberedList','BulletedList','Outdent','Indent','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
@ -64,7 +64,7 @@ CKEDITOR.editorConfig = function( config )
['Source','Maximize'], ['Source','Maximize'],
['Cut','Copy','Paste','-','SpellChecker'], ['Cut','Copy','Paste','-','SpellChecker'],
['Undo','Redo','-','Find','Replace'], ['Undo','Redo','-','Find','Replace'],
['Font','FontSize'], ['Format','Font','FontSize'],
['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'], ['Bold','Italic','Underline','Strike','Subscript','Superscript','-','TextColor','RemoveFormat'],
['NumberedList','BulletedList','Outdent','Indent'], ['NumberedList','BulletedList','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],