Block Level Tags Incorrectly Applied in FCK Editor
--------------------------------------------------

                 Key: MAGNOLIA-2126
                 URL: http://jira.magnolia.info/browse/MAGNOLIA-2126
             Project: Magnolia
          Issue Type: Bug
    Affects Versions: 3.5.4
            Reporter: Sean McMains
            Assignee: Boris Kraft
            Priority: Minor


FCK Editor in its standard configuration removes surrounding P tags when 
applying a block-element tag via the style menu. In Magnolia, it incorrectly 
leaves the P tag in place while putting a block-level tag within the P tag.

h2. To reproduce:

1. Create a new Samples: Editor paragraph
2. Enter a few words of text
3. Press return
4. Press the "source" button
5. Note that the first line is now correctly wrapped in <p> and </p> tags.
6. Press "source" again to return to visual edit mode
7. Select the first line of text.
8. Choose "Page Title" from the Style menu
9. Click the "source" button again

h3. Expected behavior:

The <p> tags should have been replaced with <h1> tags. This is how FCK Editor 
2.4.3 does things if you download it and run it outside of the context of 
Magnolia. Since it works correctly in FCKEditor normally, it appears the issue 
is caused in some way by integration with Magnolia.

{code:html}
<h1>text</h1>
{code}

h3. Actual behavior:

The <h1> tags are wrapped in the original <p> tags -- an invalid HTML construct 
-- like so:

{code:html}
<p>
<h1>text</h1>
</p>
{code}

At this point, if you go back and forth between source and visual mode again, 
or save the paragraph, FCK Editor notices the invalid structure and tries to 
fix it for you, resulting in a couple of extra empty paragraphs. (It was these 
extra paragraphs that started our customers complaining about this issue.)

{code:html}
<p>&nbsp;</p>
<h1>text</h1>
<p>&nbsp;</p>
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to