HTML Clipboard Format

Nothing is perfect! This is where you can post your ideas and wishes for functions you'd like to see in Help & Manual. Current version only please (H&M7).

Moderators: Alexander Halser, Tim Green

Post Reply
Tom Davis
Posts: 6
Joined: Wed Mar 25, 2015 3:52 pm

HTML Clipboard Format

Unread post by Tom Davis »

Hi --

Just wondering about the status of HTML clipboard support. This seems like a fairly easy thing to implement and with HTML kind of the Internet lingua franca and all... In any case, not having it has forced me to use workarounds which are not ideal.

Tom
User avatar
Tim Green
Site Admin
Posts: 23181
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: HTML Clipboard Format

Unread post by Tim Green »

Hi Tom,

What exactly are you looking for? Pasting HTML from the Windows clipboard to Help & Manual already gives you formatted text... 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: HTML Clipboard Format

Unread post by Simon Dismore »

Tom Davis wrote:...wondering about the status of HTML clipboard support...not having it has forced me to use workarounds
I think release 6.5.2 included a great leap forward in pasting HTML, especially links. You might want to check that you are on the latest (currently 6.5.5) release.

For my purposes the pasted result is now too faithful to the original, in that it bring across unwanted formatting including font names and sizes that don't work with my layout. That is, it currently behaves like the 'Keep Source Formatting' command when pasting into Word and Outlook. In most situations I'd prefer to paste only the style and link markup, similar to Microsoft's 'Merge Formatting' command. Could I add that option to the wish list, please?
Tom Davis
Posts: 6
Joined: Wed Mar 25, 2015 3:52 pm

Re: HTML Clipboard Format

Unread post by Tom Davis »

For me images frequently don't paste properly. To see an example:

1. Go to this web page: http://whyfiles.org/2015/eight-ways-mic ... u-healthy/

2. Copy the first paragraph which includes 2 images.

3. Paste into Help & Manual.

This snippet pastes into Word just fine. I encounter similar image problems on copy/paste from an HTML file with images that has been saved to a local disk (where the images are also stored locally). I can send you a sample file to work with if you like.
Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: HTML Clipboard Format

Unread post by Simon Dismore »

I'll leave that one to Tim! Interestingly there are different results copying from Chrome 41.0.2272.101 vs Firefox Nightly vs IE11.
User avatar
Tim Green
Site Admin
Posts: 23181
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: HTML Clipboard Format

Unread post by Tim Green »

Hi Tom,

What's happening there is that those "images" are really image toggles, with links to JavaScript to display the actual images in a lightbox overlay. If you click on them you'll see this. The links are images, and those aren't being imported. I'll see if this can be improved, but this may not have very high priority at the moment... :?
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tom Davis
Posts: 6
Joined: Wed Mar 25, 2015 3:52 pm

Re: HTML Clipboard Format

Unread post by Tom Davis »

That was an overly complicated example, my bad.

The text and image from the HTML file below (stored on disk locally) does not paste correctly either:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
<META content=IE=5 http-equiv=x-ua-compatible>
<META name=GENERATOR content="MSHTML 11.00.9600.17690">
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
</HEAD>
<BODY>

Here is an image:<BR><BR>

<img style="BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-TOP-WIDTH: 0px" alt="" src="Test 

GFX/Test.jpg">

</BODY>
</HTML>
Note that to test this you must store an image named Test.jpg in a folder named Test GFX and this folder and the HTML file must reside in the same folder.

It might be easier for me to send you a ZIP with all of the files - just let me know where to send it.

Thanks,

Tom
User avatar
Tim Green
Site Admin
Posts: 23181
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: HTML Clipboard Format

Unread post by Tim Green »

Hi Tom,

I have good news for you: Our software engineers have already looked at this since we conversed yesterday and they're going to implement significant improvements for this in Help & Manual 7, coming later this year. Among other things, this will then automatically copy in image links from the image source URLs found in the copied text. 8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tom Davis
Posts: 6
Joined: Wed Mar 25, 2015 3:52 pm

Re: HTML Clipboard Format

Unread post by Tom Davis »

Ah, that's good news for someone creating a help file later this year, but for me it means for each of the hundreds of HTML snippets I have I must copy and paste each one into Microsoft Word (which always gets it right) and then copy and paste into Help & Manual. I would think at least with regard to the simple HTML sample I posted that this would fall into the quick fix category.
User avatar
Martin Wynne
Posts: 2656
Joined: Mon May 12, 2003 3:21 pm
Location: West of the Severn, UK

Re: HTML Clipboard Format

Unread post by Martin Wynne »

Hi Tom,

Which H&M output format are you using? If it is WebHelp or CHM don't forget the option to insert HTML directly into your topics. - Insert HTML Code Object. No need to go into Microsoft Word, just view and copy the selection source. You can also use #MERGE to pull in entire .html files.

Martin.
Post Reply