is there an easy way to set the initial and default 'FontFormat' to be 'Normal (DIV)' instead of 'Normal (P)'?
so that, In IE6, if you make a bullet list it is reset to 'Normal (DIV)' instead of 'Normal (P)'?
so that, In IE6, if you make a bullet list it is reset to 'Normal (DIV)' instead of 'Normal (P)'?
RE: how to set default FontFormat
Add
FCK.Focus();
FCK.EditorDocument.execCommand('FormatBlock', false, '<div>');
FCK.Events.FireEvent('OnSelectionChange');
in fckeditorcode_ie_2.js
RE: how to set default FontFormat
FCK.Focus();
FCK.EditorDocument.execCommand('FormatBlock', false, '<div>');
FCK.Events.FireEvent('OnSelectionChange');
My problem now is that it works until you do something like create bullets and then it goes back to creating <P> tags. Where do I need to go to make sure it always uses <div> tags?
Thanks,
Chris
RE: how to set default FontFormat
A workaround that may help u ( idontlikeit but seems to work...) its the following:
Add onkeyup in the fckeditorarea.html:
<body onkeyup="document.execCommand( 'FormatBlock', false, '<div>' ) ;"></body>
also add in fckeditorcod_ie_2.js:
FCKNewPageCommand.prototype.Execute=function(){
FCK.SetHTML('');
FCK.EditorDocument.execCommand( 'FormatBlock', false, '<div>' ) ;
this, last one, is in case someone types a breakline after new page command