Opened 14 years ago

Closed 14 years ago

#6067 closed Bug (fixed)

FF: copy & paste lists from OpenOffice or StarOffice = empty POST-Data

Reported by: radioking Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.3.1
Keywords: Cc:

Description (last modified by Frederico Caldeira Knabben)

As testcase I use:

<?php

if(!isset($_POST['send']))
{?>
<html>
<head>
	<title>Sample - CKEditor</title>
	<script type="text/javascript" src="ckeditor/3.3.1/ckeditor.js"></script>
</head>
<body>
	<form method="post" action="ckeditor_test.php">
		<p>
			My Editor:<br />
			<textarea name="editor1">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>
			<script type="text/javascript">
				CKEDITOR.replace( 'editor1' );
			</script>
		</p>
		<p>
			<input type="submit" name="send" />
		</p>
	</form>
</body>
</html>
<?php
}
else
{
  print_r($_POST['editor1']);
}

If I copy a list from OpenOffice or StarOffice into CKEditor Textfield, the list is displayed correctly.

But clicking the submission-button leads to empty POST-Data for this textfield with Firefox.

The method of copy & pasting is irrelevant- it doesn't work for either method.

Environment:

Windows XP Professional Version 2002 SP3 (same on Linux)

Firefox 3.6.6

CKEditor 3.3.1

OpenOffice 3.2.1

StarOffice 8 (Product Update 12)

With Apple MAC we also get an empty POST-Field and _surplus_ this text within the Editor-Textfield instead of a correct list:

Version:1.0 StartHTML:0000000167 EndHTML:0000000654 StartFragment:0000000454 EndFragment:0000000638

Enviroment in this case:

Mac OS X V.10.5.8

Firefox 3.6.8

OpenOffice 3.2.0

Change History (5)

comment:1 Changed 14 years ago by radioking

Testcase as code-block =)

<?php

if(!isset($_POST['send']))
{?>
<html>
<head>
	<title>Sample - CKEditor</title>
	<script type="text/javascript" src="ckeditor/3.3.1/ckeditor.js"></script>
</head>
<body>
	<form method="post" action="ckeditor_test.php">
		<p>
			My Editor:<br />
			<textarea name="editor1">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>
			<script type="text/javascript">
				CKEDITOR.replace( 'editor1' );
			</script>
		</p>
		<p>
			<input type="submit" name="send" />
		</p>
	</form>
<script type="text/javascript">
	var editor_data = CKEDITOR.instances.editor1.getData();
</script>	
</body>
</html>
<?php
}
else
{
  print_r($_POST['editor1']);
}

comment:2 Changed 14 years ago by radioking

the section

<script type="text/javascript">
	var editor_data = CKEDITOR.instances.editor1.getData();
</script>

in the testcase may be removed- it was inserted for another test.

comment:3 Changed 14 years ago by radioking

Seems resolved with nightly build (d/l some minutes ago) apart from

http://dev.ckeditor.com/ticket/6071

comment:4 Changed 14 years ago by Frederico Caldeira Knabben

Component: GeneralCore : Pasting
Description: modified (diff)
Keywords: copy paste list OO FF Firefox OpenOffice Open Office POST empty removed

Fixed the tc code, as you've described.

comment:5 Changed 14 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: newclosed
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