id summary reporter owner description type status priority milestone component version resolution keywords cc
2526 InsertHTML Problem Shaun "This occurs when I try to use the InsertHtml method.
1. Enter the source view.
2. Completely clear all HTML in the editor.
3. Go back to WYSIWYG view.
4. Click a button which calls the following code:
{{{
content.InsertHtml('
'
+ ''
+ ''
+ ' | '
+ ' | '
+ '
'
+ ''
+ '
'
);
}}}
It inserts it as I expect it to, except it wraps the table in tags.
If I try to insert the table into an existing paragraph tag, then it works as expected. I assume this is because there is already a paragraph tag wrapped around it.
I'm not familiar with modifying FCKEditor, or I'd attempt to provide a solution.
My only guess as to a fix is that the editor should determine if the html being inserted is a block-level element or not.
If it isn't, then wrap in tags." Bug closed Normal Core : Output Data FCKeditor 2.6.3 Beta worksforme COURTNEYREMES@…