You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#111666 cutting and pasting from MS Office emails

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by stevec4 on Friday, 12 August 2022 11:06 BST

stevec4
Hi Ryan
I have a user who frequently cuts and pastes content from their email using (CRTL-V) The html does not get cleaned when they do. I am trying to figure out how I can remove the offending code. This user always seems to have a lot of small font sizes that screw the post up. ie: <span style="font-size: 8pt;">

These are my JCE settings if you see anything I can change:

Editor Parameters Under Clean up
I have Validate HTML set to YES
Doc type HTML 5

In the plugin parameters under the C&P tab I have:
Remove all spans Yes
Remove All Styles Yes
Remove Tags - tr, td, table, tbody, ul, li, div, span, h1, h2, h3, font-size
Remove Attributes - style, span, ul, li, h1, h2, h3, div, font-size
Allow Paste as HTML NO
Allow Paste as Plain Text Yes

TIA
Steve

Ryan
What does the html code look like in the Code Tab after pasing in the content?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

stevec4
I don't see what she is pasting till after it is posted, Then I have to go in and fix all the extra font-size that are left from her pasting These are the code which I need blocked when I look code for the posting

<span style="font-size: 8pt;">

Ryan
Trh changing these 3 parameters:

Remove Tags - tr, td, table, tbody, ul, li, div, span, h1, h2, h3, font-size
Remove Attributes - style, span, ul, li, h1, h2, h3, div, font-size
Allow Paste as HTML NO

to

Remove Tags - tr, td, table, tbody, ul, li, div, h1, h2, h3
Remove Attributes - ul, li, h1, h2, h3, div
Allow Paste as HTML YES

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

Ryan
Also, make sure Microsoft Word® cleanup is set to Always.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

stevec4
Thanks Ryan I made the changes and will advise if it helps.

Steve