Opened 14 years ago

Closed 9 years ago

#489 closed defect (inactive)

Additional tags added to content after using EditTag plugin

Reported by: trem Owned by: gogo
Priority: normal Milestone:
Component: Plugin_Other Version:
Severity: normal Keywords:
Cc:

Description

I have discovered a problem with the Tag Editor whereby additional tags are added back into the textarea content. I have repeated this on http://xinha.gogo.co.nz/xinha-nightly/examples/full_example.html with the EditTag? plugin.

The steps to reproduce are:

1) Add 2 lines of text in the text editor.

2) Format the top line with a header (ie. h2) using formatblock

3) Bold a word within second line.

4) Select all text and open the EditTag? popup.

5) Delete by hand the <strong> tags from the html code in the EditTag? popup and select 'OK'

6) The content in the texteditor now has h2 tags surrounding all the content, so looking something like this:

  <h2>
    <h2>A title example</h2>
    <p>content fdsgfd dfgdfg aws werwer werew</p>
  </h2>

For some reason additional header tags are being added to the remaining text.

Change History (1)

comment:1 Changed 9 years ago by gogo

  • Resolution set to inactive
  • Status changed from new to closed

I think this is probably not fixable. And nobody seems to care.

To summarise, the problem is that (I expect) when EditTag? does the insert of the new HTML, the selection which get's replaced is actually from just after the opening h2 to just before the closing p of the second line.

Note: See TracTickets for help on using tickets.