Starting from 4.2.3-RC (RC is tested in Mint/libreoffice ppa and 4.2.3 release is tested on Arch Linux) inserting formatted text into Writer document (say, inserting of some fragment selected in Firefox) doesn't preserve formatting (styles, colors, sizes, and so on) as it does up to 4.2.2 inclusive. Both ways are broken now: via Ctrl-C/Ctrl-V and via Linux mouse buffer.
P.S. It is absolute stopper for me as far as gathering articles from net into Writer document is the main and almost the way I use LO, but I'm not sure I must set severity above normal.
I'm not sure if this changed, but pasting using 'Edit/Paste Special' (Ctrl+Shit+V) gives the option to paste with the HTML format preserved.
(In reply to comment #1)
> I'm not sure if this changed, but pasting using 'Edit/Paste Special'
> (Ctrl+Shit+V) gives the option to paste with the HTML format preserved.
Exactly, thanks for discovering! Unfortunately I haven't found a way to paste preserving format at one step as far as there are few paste related commands and there isn't a command to insert keeping format.
Also there isn't a way to use Linux mouse buffer (say, I must fill in clipboard with Ctrl-C rather to select something with mouse and then insert it into Writer with third mouse button).
I just tested in LO 3.6 and it seems that default behaviour changed.
In 3.6 a text selected in a browser was pasted in writer keeping the format.
In 4.2.3 the format is lost unless doing a special-paste... ;(
Maybe an option should be added to the settings, specifying wat default to do when pasting? (but than this is not a bug, but a feature request....)
(In reply to comment #4)
> In 3.6 a text selected in a browser was pasted in writer keeping the format.
> In 4.2.3 the format is lost unless doing a special-paste... ;(
Last working version is 4.2.2.
> (but than this is not a bug, but a feature request....)
Hm.. I see, lost functionality (say, using mouse buffer for inserting formatted text) can be treated as a bug from user's POV and as something else from developer's POV :) Aside jokes, of course, issue status must be set to be handy for developers.
Some time between 4.1.3 (I think – I have it no longer installed) and 4.1.6 the default clipboard format for pasting HTML was changed from HTML to plain text ("Unformatierter Text" in German).
Steps to reproduce:
Open Firefox, select text and copy selected text
Open Libreoffice Writer and paste using Ctrl-V (or Edit/Paste)
Result: Plain text is pasted from clipboard
Expected Result: Rich text (HTML) including formatting is pasted from clipboard
This is true for the latest update from openSUSE 12.3 repo Libreoffice Stable (Libreoffice 188.8.131.52? - I am writing this on Windows), and I've also checked it on Windows 7 (64bit) with Libreoffice 184.108.40.206 and Libreoffice 220.127.116.11. Both have the same bug.
As a side effect, I can no longer paste formatted text under Linux by simply middle-clicking in Writer after selecting it in another window since the default clipboard format is plain text.
I've run a few more tests with 18.104.22.168 under Win7/64 and have found the following:
1. Writer: Strg-V pastes plain text, Ctrl-Shift-V offers "HTML" and "HTML (without comments)" as alternatives. Here the new behaviour is just an annoyance, because I have to remember to press Ctrl-Shift-V (Edit/Paste Special) and select HTML every time I paste text.
2. Calc still pastes formatted text by default, but not all attributes: Textcolor YES, Texthighlight NO
3. Impress: Impress ALWAYS pastes plain text, it’s also the only format offered on Invoking "Paste Special".
4. Draw: same as Impress
So this seems a bug with system-wide consequences.
This can't be a feature, I hope: Why should a user have to give up some information (= text formatting) by default?
I think the most sensible would be to have "HTML (without comments)" as the default clipboard format: that way one would lose no important formatting information, but the huge number of HTML comments inserted by many CMS-based websites would not need removing.
Very probably a duplicate of Bug 78801 - "Copying HTML from web browser - only plain text is pasted".
Please check the bugfix with version 22.214.171.124.beta2.
(Successfully tested with LibreOfficeDev 126.96.36.199.beta2 on Windows 7.)
*** This bug has been marked as a duplicate of bug 78801 ***