Opened 10 years ago

Closed 10 years ago

#11061 closed Bug (worksforme)

Paste stripping formatting on Windows

Reported by: Ben Owned by:
Priority: Normal Milestone:
Component: General Version: 4.2.2
Keywords: Cc:

Description

Hi there,

I have a user who cannot paste formatted content into a CKEditor 4 instance. It strips all tables and formatting from the paste. He's tried on Windows 8.1 on IE 11 and Windows 7 on IE 10 and Chrome.

I have been able to test on Windows 7 on IE 10, Chrome and FireFox and it works fine for me.

Is this a bug or could there perhaps be a security issue on his computer that disables formatted text to be pasted into a browser?

I've attached a screenshot of what his paste looks like and what my paste looks like.

Any ideas on what the issue might be?

Attachments (1)

Paste-Example.jpg (87.9 KB) - added by Ben 10 years ago.

Download all attachments as: .zip

Change History (8)

Changed 10 years ago by Ben

Attachment: Paste-Example.jpg added

comment:1 Changed 10 years ago by Piotrek Koszuliński

Just to be sure - do you both use the same ACF settings? I don't see a table or format combos in your toolbar, so that could be ACF, but since content is not filtered on your computer I assume you've got disabled ACF, right?

I know that there are some Windows clipboard tools which are supposed to clean up the content when pasting and there are conflicts with them. But other than that we haven't had any problems. I would maybe also check if IE's settings are set to defaults.

Last edited 10 years ago by Piotrek Koszuliński (previous) (diff)

comment:2 Changed 10 years ago by Piotrek Koszuliński

Status: newpending

comment:3 Changed 10 years ago by Ben

Yes we do have the same ACF settings. The two screenshots are from the exact same editor instance, just different PC's. Here they are if it helps.

config.extraAllowedContent =  {
		style: {
			attributes: 'type'
		},
		'h1 h2 h3 p blockquote strong em a span ul big small table th td' : {
			styles: 'color,font-weight,font-family,font-size,text-align,line-height,text-decoration'
		},
		a: {
			attributes: '!href,target'
		},
		img: {
			attributes: '!src,alt,width,height,border',
			styles: 'width,height,border,text-decoration'
		},
		'table th td' : {
			styles: 'width,height,margin,margin-top,margin-right,margin-bottom,margin-left,padding,padding-top,padding-right,padding-bottom,padding-left,background-color,border-collapse'
		},
		table: {
			attributes: 'width,height,align,border,cellpadding,cellspacing,summary,bgcolor'
		},
		'caption tbody thead tfoot' : true,
		tr: {},
		'th td': {
			attributes: 'width,height,scope,align,valign,colspan,rowspan,bgcolor'
		},
		'del ins': true
	};

I'll send your suggestions to the user to see if I can get any further details. Appreciate your help!

Ben

comment:4 Changed 10 years ago by Piotrek Koszuliński

I've read once again your description and I noticed that it happens not only on IE. So the only reason I could think of is some additional clipboard filter. Maybe even pre installed on those machines...

BTW. Interesting test would be pasting images, because I know that at least one of these tools replaces them with alt attributes. CKEditor could do this only when using paste as plain text option.

I'll keep the ticket opened for some time just in case, but I'm rather sure that it's not a CKEditor's issue.

comment:5 Changed 10 years ago by Marek Lewandowski

My guess goes for external app as well bensinclair said that he tried to repro it at pretty much the same setup and it worked for him.

comment:6 Changed 10 years ago by Jakub Ś

@bensinclair please provide more information here. If both of you use same instance of editor and same browser version then I agree with others - there has to be some extra filter that does this.

comment:7 Changed 10 years ago by Ben

Resolution: worksforme
Status: pendingclosed

The user got back to me today and he has made some progress. It does look like a client side issue. Appreciate everyone's help :)

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