https://bz.apache.org/ooo/show_bug.cgi?id=102153

--- Comment #2 from [email protected] ---
Mediawiki text lacks its own MIME type, and copying and pasting some Mediawiki
markup only gets Firefox to offer these clipboard formats:

$ xclip -selection clipboard -target TARGETS
TIMESTAMP
TARGETS
MULTIPLE
SAVE_TARGETS
UTF8_STRING
COMPOUND_TEXT
TEXT
STRING
text/plain;charset=utf-8
text/plain

So pasting would have to be done through "Paste Special" offering "Mediawiki
syntax".

Markdown, however, does have its own MIME type
(https://www.iana.org/assignments/markdown-variants/markdown-variants.xhtml),
and could be pasted directly, if we supported it. However even there, Firefox
does not put the text/markdown format on the clipboard.

As for copying rich text from OpenOffice and pasting to a web browser, that
could be difficult. On a normal copy, we can only distinguish by MIME type, and
can only provide Wiki markup if its specific MIME type is requested. The web
browser would have to request that MIME type, which it might not. Alternatively
we could provide Mediawiki markup over the text/plain MIME type, but then that
would have to be something users opt into (eg. "Copy As...").

Our Mediawiki extension might be a good place to try out some of these ideas.

-- 
You are receiving this mail because:
You are on the CC list for the issue.
You are the assignee for the issue.

Reply via email to