I have updated the my old version 1.2 (with 2.4.3) that works fine to the latest 2.0 beta (with 2.5) for a new site.
When I write some content the editor use < b > and < i > tag instead of and . I can modify this beaviur?

Great work about break and page break command insertion.

Thank you

Comments

wwalc’s picture

Category: bug » support

Hi

Again, sorry for taking so long to reply.
In modules/fckeditor/fckeditor.config.js you can add a part of the original config modules/fckeditor/fckeditor/fckconfig.js adjusted to your needs:

// Do not add, rename or remove styles here. Only apply definition changes.
FCKConfig.CoreStyles = 
{
	// Basic Inline Styles.
	'Bold'			: { Element : 'strong' },
	'Italic'		: { Element : 'em' },
	'Underline'		: { Element : 'u' },
	'StrikeThrough'	: { Element : 'strike' },
	'Subscript'		: { Element : 'sub' },
	'Superscript'	: { Element : 'sup' },
	
	// Basic Block Styles (Font Format Combo).
	'p'				: { Element : 'p' },
	'div'			: { Element : 'div' },
	'pre'			: { Element : 'pre' },
	'address'		: { Element : 'address' },
	'h1'			: { Element : 'h1' },
	'h2'			: { Element : 'h2' },
	'h3'			: { Element : 'h3' },
	'h4'			: { Element : 'h4' },
	'h5'			: { Element : 'h5' },
	'h6'			: { Element : 'h6' },
	
	// Other formatting features.
	'FontFace' : 
	{ 
		Element		: 'span', 
		Styles		: { 'font-family' : '#("Font")' }, 
		Overrides	: [ { Element : 'font', Attributes : { 'face' : null } } ]
	},
	
	'Size' :
	{ 
		Element		: 'span', 
		Styles		: { 'font-size' : '#("Size","fontSize")' }, 
		Overrides	: [ { Element : 'font', Attributes : { 'size' : null } } ]
	},
	
	'Color' :
	{ 
		Element		: 'span', 
		Styles		: { 'color' : '#("Color","color")' }, 
		Overrides	: [ { Element : 'font', Attributes : { 'color' : null } } ]
	},
	
	'BackColor'		: { Element : 'span', Styles : { 'background-color' : '#("Color","color")' } }
};

Note: the first two declarations of Bold and Italic had changed (this instruction is valid for FCKeditor 2.5, does not work with FCKeditor 2.4).
Make sure you have cleared your browser's cache (or even restarted it) if you don't see any changes.

wwalc’s picture

Status: Active » Closed (fixed)