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.

#101970 How to retain (un)ordered lists when pasting from MS Word?

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 Thomsterdam on Thursday, 05 December 2019 07:54 GMT

Thomsterdam
Hi there, I have done some tweaking of editor profiles for my authors. When copy/pasting from Word most superfluous MS html is removed. I want "<a href" links to stay, so I got that covered. Now I want (un)ordered lists to stay as well. So I would like to keep stuff like this:

<ul>
<li>something</li>
<li>something else</li>
</ul>
What happens at the moment is that this is removed and replaced by

<p>·        something</p>
<p>·        something else</p>
BTW: The space between the <p>· and the text is created by a series of nbsp's What profile setting can I adjust? Thanks, Thom

Ryan
I have done some tweaking of editor profiles for my authors.


What changes have you made to the Clipboard parameters?

Ryan Demmer

Lead Developer / CEO / CTO

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

Thomsterdam
Hi there,
Will the screenshots do?



Thanx

Thom

Attachments

Ryan
In the Remove Tags field, please delete span, but enable the Remove All Spans option above it.

Does that help?

Ryan Demmer

Lead Developer / CEO / CTO

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

Thomsterdam
Hi there,
it doesn't make any difference: these are screenshots of the JCE Editor and its code editor:


So you see a bit of the code as well.
The methods I tried were:
  1. copy/paste (from a Word 2016) with Ctrl-V into the editing window
    the clipboard symbol without the T
    the clipboard symbol with the T

The last one obviously strips down to text only.
I am right to list p,strong,table,tbody,tr,td,b,a,ul,li,em,i (which includes 'ul' and 'li') behind "Keep Tags", aren't I?

Thanx,

Thom

Ryan
I am right to list p,strong,table,tbody,tr,td,b,a,ul,li,em,i (which includes 'ul' and 'li') behind "Keep Tags", aren't I?


Yes, that should be fine.

Can you attach a copy of the Word document, or a sample document that shows the same issue? (as a zip file)

Ryan Demmer

Lead Developer / CEO / CTO

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

Thomsterdam
Hi there,
I tested with this Word document. I have also included a back up of the JCE profile.

Thanx,

Thom

Attachments

jce_editor_profile_2019_12_03.zip

Ryan
Please try JCE Pro 2.8.1 RC11 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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

Thomsterdam
Hi there,
Unfortunately your link leads to an empty page, but the 2.8.1 release I updated from the back end of the site has fixed the problem as well.

Thanx,

Thom