Re: [xwiki-users] Copy Paste in editor

2011-09-05 Thread Marius Dumitru Florea
Hi Gerritjan,

On Mon, Sep 5, 2011 at 8:48 AM, Gerritjan Koekkoek
gerritjankoekk...@gmail.com wrote:
 Hi,

 Many of our users use copy and past from windows (or mac) to bring 
 textsnippets into the wiki
 In the display it looks fine, but when you edit the wiki, not the wysywig 
 editor, there is a lot of span, ((())) or sometimes even html tags.

 Is it possible to configure the editor (or something else) that it is only 
 possible to paste UTF ascii text without any styling (!) (so it must be 
 dummy-proof)
 Or better, to automatically convert styles that we allow; like bold, italic, 
 underline, upper, lower...

There is a paste icon on the WYSIWYG editor tool bar (check the Import
menu if you have an older version of XWiki Enterprise). You should use
it instead of pasting directly into the rich text area. On the dialog
that it opens there is a check box that you can use to filter the
styles (only the basic styles like bold, italic, etc. are preserved).

Hope this helps,
Marius


 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Copy Paste in editor

2011-09-05 Thread Gerritjan Koekkoek
Hi,

This feature we know, but since we deal with many people who collaborate we did 
not manage to tell them all, or they forget...
Is it possible to force them use this, disable PASTE in rich text area?

Gerritjan

Op 5 sep. 2011, om 08:33 heeft Marius Dumitru Florea het volgende geschreven:

 Hi Gerritjan,
 
 On Mon, Sep 5, 2011 at 8:48 AM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 Many of our users use copy and past from windows (or mac) to bring 
 textsnippets into the wiki
 In the display it looks fine, but when you edit the wiki, not the wysywig 
 editor, there is a lot of span, ((())) or sometimes even html tags.
 
 Is it possible to configure the editor (or something else) that it is only 
 possible to paste UTF ascii text without any styling (!) (so it must be 
 dummy-proof)
 Or better, to automatically convert styles that we allow; like bold, italic, 
 underline, upper, lower...
 
 There is a paste icon on the WYSIWYG editor tool bar (check the Import
 menu if you have an older version of XWiki Enterprise). You should use
 it instead of pasting directly into the rich text area. On the dialog
 that it opens there is a check box that you can use to filter the
 styles (only the basic styles like bold, italic, etc. are preserved).
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Copy Paste in editor

2011-09-05 Thread Paul Libbrecht
Marius,

a new version of the clipboard events draft has been just launched:
http://dev.w3.org/2006/webapi/clipops/clipops.html
This, together with the HTML 5 specification, should resolve the issues you 
describe below.
It is an implementation work, a non-trivial one.

Gerritjan, if you have some developer hours available and know the target 
browsers you want to address, you may have a chance to implement something that 
catches the native paste event and calls the paste function there (this might 
even avoid the GWT recompilation).

paul


Le 5 sept. 2011 à 11:44, Marius Dumitru Florea a écrit :

 On Mon, Sep 5, 2011 at 12:00 PM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 This feature we know, but since we deal with many people who collaborate we 
 did not manage to tell them all, or they forget...
 Is it possible to force them use this, disable PASTE in rich text area?
 
 Handling Copy/Paste is complex for multiple reasons. Two of them are:
 
 * the clipboard can contain private information so the editor must
 have special rights to be able to access it. For instance, you
 wouldn't want a web page to steal the user/password you just copied,
 or to put a dangerous shell script hoping you'll paste it by mistake.
 * the editor doesn't know where the pasted text came from. It can be
 from the text you are editing (you just copy a phrase from one
 paragraph to another) or it can be from an external source (an office
 document or a different web page). I'm sure your users wouldn't be
 happy if they had to go through the paste dialog each time they copy a
 word from a paragraph and paste it in another paragraph.
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 
 Op 5 sep. 2011, om 08:33 heeft Marius Dumitru Florea het volgende geschreven:
 
 Hi Gerritjan,
 
 On Mon, Sep 5, 2011 at 8:48 AM, Gerritjan Koekkoek
 gerritjankoekk...@gmail.com wrote:
 Hi,
 
 Many of our users use copy and past from windows (or mac) to bring 
 textsnippets into the wiki
 In the display it looks fine, but when you edit the wiki, not the wysywig 
 editor, there is a lot of span, ((())) or sometimes even html tags.
 
 Is it possible to configure the editor (or something else) that it is only 
 possible to paste UTF ascii text without any styling (!) (so it must be 
 dummy-proof)
 Or better, to automatically convert styles that we allow; like bold, 
 italic, underline, upper, lower...
 
 There is a paste icon on the WYSIWYG editor tool bar (check the Import
 menu if you have an older version of XWiki Enterprise). You should use
 it instead of pasting directly into the rich text area. On the dialog
 that it opens there is a check box that you can use to filter the
 styles (only the basic styles like bold, italic, etc. are preserved).
 
 Hope this helps,
 Marius
 
 
 Gerritjan
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users