Opened 16 years ago

Closed 15 years ago

Last modified 12 years ago

#2569 closed Bug (invalid)

using <textarea> in FCKeditor - does not handle anything after <textarea>

Reported by: Tiffany Reeves Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Pending WorksForMe Cc:

Description

When you make a form in the FCKeditor window and put a textarea in the form, in Firefox it deletes anything after the textarea and IE will not save.

For example, I tested a form with a textarea and then a submit button after the textarea. When I insert the button after the textarea in the code view and then select "source" again for the design view, it looks fine (attachment 1). When I save, it is still correct. When I open the editor again, then it starts acting up (attachment 2). If I click source then the button is pulled out of the code and put at the bottom of the page (attachment 3). If I "save" the changes, then it totally deletes the button and its code (attachment 4).

Attachments (4)

attachment1.gif (13.8 KB) - added by Tiffany Reeves 16 years ago.
attachment2.gif (10.4 KB) - added by Tiffany Reeves 16 years ago.
attachment3.gif (18.7 KB) - added by Tiffany Reeves 16 years ago.
attachment4.gif (13.5 KB) - added by Tiffany Reeves 16 years ago.

Download all attachments as: .zip

Change History (11)

Changed 16 years ago by Tiffany Reeves

Attachment: attachment1.gif added

Changed 16 years ago by Tiffany Reeves

Attachment: attachment2.gif added

Changed 16 years ago by Tiffany Reeves

Attachment: attachment3.gif added

Changed 16 years ago by Tiffany Reeves

Attachment: attachment4.gif added

comment:1 Changed 16 years ago by Artur Formella

Keywords: Pending added
Milestone: FCKeditor 2.6.4

I think you have invalid HTML, so anything can happen.

Please check page source. After saving you probably have sth like that:

<!DOCTYPE ...>
11111111111
<textarea name='FCKeditor'>
222222222222
	<textarea name='your'>aaaaaaaaaaaaaaaaaaaaa</textarea (your)>
3333333333333333
</textarea (FCKeditor)>
444444444444444

Browser show:

<!DOCTYPE ...>
11111111111
<textarea name='FCKeditor'>
222222222222
	<textarea name='your'>aaaaaaaaaaaaaaaaaaaaa
</textarea (FCKeditor)>

3333333333333333
</textarea (?)>
444444444444444

comment:2 Changed 15 years ago by Greg Fournel

Hello, I have exactly the same problem, and after saving, I do not have any more the FCK textarea, it is a DIV. The thing is To display the FCKeditor, I do this : $(id).innerHTML = '<textarea id="'+id+'-content" style="width: '+(dimensions.width+2)+'px;height:'+(dimensions.height+4)+'px;">'+myContent+'</textarea>'; and after I use the FCK method to transform the textarea into the Editor.

the myContent variable is my HTML content including a form with a Textarea I think this is the issue. But it's working correctly with the input text, and checkbox.

comment:3 Changed 15 years ago by Artur Formella

Keywords: WorksForMe added

How you load data to FCKeditor after saving?

comment:4 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

This happens when the html is bad constructed as Arczi explained. It's invalid HTML and when the browsers parses that html it does tries to fix it, but not in the way that you want.

comment:5 in reply to:  1 Changed 13 years ago by ETNyx

Summary: using <textarea> in FCKeditor - does not handle anything after <textarea>using <textarea> in FCKeditor (now CKeditor) - does not handle anything after <textarea>
Version: FCKeditor 2.6.33.6.1

I have go very simillar issue like this ticket. It's marked like invalid, but i realy dont understand solution (i quoted it bellow).

If you look for both examples and delete notes like "(your),(?),(FCKeditor)", you will get exact same piece of code:

<!DOCTYPE ...>11111111111<textarea name='FCKeditor'>222222222222<textarea name='your'>aaaaaaaaaaaaaaaaaaaaa</textarea>3333333333333333</textarea>444444444444444
<!DOCTYPE ...>11111111111<textarea name='FCKeditor'>222222222222<textarea name='your'>aaaaaaaaaaaaaaaaaaaaa</textarea>3333333333333333</textarea>444444444444444

Also my code is html valid (like: XHTML 1.0 Transitional!) (before inserting data to ckeditor). After insert data by simply using ckeditor buttons. Its not (document type does not allow element "p" here)

<textarea rows="5" cols="25" name="cs_text" id="frm-cs_text" class="editor"><p>
	<textarea cols="1" name="aaa" rows="1"></textarea></p>
<p>
	gfdsgfdsgsdf</p>

</textarea>

ckeditor si closed by first "</textarea>", then rest of code is "out of date". Also this code is nonsense, even without ckeditor, just try it.

My conclusion si: ckeditor must parse given content and replace <textarea> whit something like {textarea}. Not valid html tag,... Im wrong???

Sorry for my english :-)

Now im using 3.6.1

Replying to arczi:

I think you have invalid HTML, so anything can happen.

Please check page source. After saving you probably have sth like that:

<!DOCTYPE ...>
11111111111
<textarea name='FCKeditor'>
222222222222
	<textarea name='your'>aaaaaaaaaaaaaaaaaaaaa</textarea (your)>
3333333333333333
</textarea (FCKeditor)>
444444444444444

Browser show:

<!DOCTYPE ...>
11111111111
<textarea name='FCKeditor'>
222222222222
	<textarea name='your'>aaaaaaaaaaaaaaaaaaaaa
</textarea (FCKeditor)>

3333333333333333
</textarea (?)>
444444444444444
Version 2, edited 13 years ago by ETNyx (previous) (next) (diff)

comment:6 Changed 13 years ago by Alfonso Martínez de Lizarrondo

Summary: using <textarea> in FCKeditor (now CKeditor) - does not handle anything after <textarea>using <textarea> in FCKeditor - does not handle anything after <textarea>
Version: 3.6.1

comment:7 Changed 12 years ago by Ursula

My Theory ist: This Error occures if you are using a textarea to replace by CKEditor. Then if you insert a textarea inside that (former textarea) CKEditor then Firefox tries to replace it again and uses the textarea-closing-tag </textarea> to close CKEditor. What do you think?

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy