Re: [xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Eduard Moraru
Why not launch a javascript event when an attachment is added to a page? If
you are in edit mode and you have an editor listening to such an event, it
can also include the attachment in the editor (if it's an image), etc.

Right now we already have the feature of adding an attachment from view
mode. You don`t really need to be in an editor to attach a file to a page
so that`s why I saw this as a more generic feature of the page itself.

Anyway, just an idea.

Thanks,
Eduard

On Wed, Feb 24, 2016 at 12:28 AM, vinc...@massol.net 
wrote:

> Hi Edy,
>
> On 23 Feb 2016 at 22:35:18, Eduard Moraru (enygma2...@gmail.com(mailto:
> enygma2...@gmail.com)) wrote:
>
> > On Tue, Feb 23, 2016 at 7:47 PM, vinc...@massol.net
> > wrote:
> >
> > >
> > >
> > >
> > >
> > >
> > > On 23 Feb 2016 at 15:14:06, Guillaume Lerouge (guilla...@xwiki.com
> (mailto:
> > > guilla...@xwiki.com)) wrote:
> > >
> > > > Hi Edy,
> > > >
> > > > On Tue, Feb 23, 2016 at 2:38 PM, Eduard Moraru wrote:
> > > >
> > > > > On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net
> > > > > wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (
> guilla...@xwiki.com
> > > > > (mailto:
> > > > > > guilla...@xwiki.com)) wrote:
> > > > > >
> > > > > > > Hi Stuart,
> > > > > > >
> > > > > > > thanks for your feedback. This is indeed a frequent request.
> In the
> > > > > > current
> > > > > > > WYSIWYG editor, it partially works (your image has to be
> available
> > > > > from a
> > > > > > > public server).
> > > > > > >
> > > > > > > However, we added full support for this feature in the last
> > > version of
> > > > > > the
> > > > > > > CKEditor extension:
> > > > > > >
> > > > > >
> > > > >
> > >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > > > > > > => if you drag & drop an image in CKEditor, it is automatically
> > > > > attached
> > > > > > to
> > > > > > > the wiki page.
> > > > > > >
> > > > > > > Please also note that drag & drop of images currently work if
> you
> > > go to
> > > > > > the
> > > > > > > "attachments" tab of any page (while in view mode) and drop
> your
> > > image
> > > > > > > there.
> > > > > >
> > > > > > hmm are you sure? I’m not aware of this feature. I just tested it
> > > and it
> > > > > > didn’t work for me on 8.0M2.
> > > > > >
> > > > >
> > > > > Tried it and it seems to work only if you drop the file exactly
> over
> > > the
> > > > > file upload field ("Browse" button or "No files selected" label,
> i.e.
> > > field
> > > > > with id "xwikiuploadfile"). This definitely needs to be improved.
> > > > >
> > > > > Personally, I would prefer we go full page Drag & Drop support,
> i.e.
> > > if a
> > > > > file is dropped in the XWiki browser tab, a popup asks the user if
> he
> > > wants
> > > > > to attach the dropped files to the current XWiki document.
> Something
> > > like
> > > > > GitHub is doing when you can drop a file anywhere in the tab of an
> > > XWiki
> > > > > repository (and a commit form will show up for you to fill
> details).
> > > > >
> > > >
> > > > I agree that this would be nice too. However, it doesn't mean you
> don't
> > > > need it in edition mode. Having to switch back and forth between
> view and
> > > > edit because you forgot to upload a file would be tedious. It's
> needed in
> > > > both places.
> > >
> > > +1 to that.
> > >
> >
> > Maybe you`ve missed my next reply:
> > "My point here was that maybe we could make it a page-level feature and
> not
> > an editor-level feature that each editor would have to implement.”
>
> I had read that but I misunderstood it as meaning that you were suggesting
> that it shouldn’t be a feature in edit mode while you were just saying that
> it shouldn’t an *editor* feature.
>
> Personally I think we need editor-level drag and drop because there are 2
> different use cases:
> * being able to insert an image in the content of a page
> * being able to add an image as an attachment
>
> And whenever the content of a page is affected, then it has to be in an
> editor since that requires making modification to the content and then
> letting the user make adjustements and save the content.
>
> Thanks
> -Vincent
>
> > It was about dropping a file in an XWiki tab, regardless of the mode you
> > are in (edit/view). That`s why I said you don`t need to necessarily
> > implement it in editor X or Y and it could be a feature of the XWiki page
> > itself.
> >
> > Thanks,
> > Eduard
> >
> >
> > > Thanks
> > > -Vincent
> > >
> > > PS: I’ve opened http://jira.xwiki.org/browse/XWIKI-13133 for the issue
> > > with drag and drop on chrome.
> > >
> > > > Thanks,
> > > >
> > > > Guillaume
> > > >
> > > > Thanks,
> > > > > Eduard
> > > > >
> > > > > >
> > > > > > Thanks
> > > > > > -Vincent
> > > > > >
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Guillaume
> > > > > > >
> > > > > > > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > > > > > > wrote:
> > > > > > >
> 

Re: [xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread vinc...@massol.net
Hi Edy,

On 23 Feb 2016 at 22:35:18, Eduard Moraru 
(enygma2...@gmail.com(mailto:enygma2...@gmail.com)) wrote:

> On Tue, Feb 23, 2016 at 7:47 PM, vinc...@massol.net  
> wrote:
>  
> >
> >
> >
> >
> >
> > On 23 Feb 2016 at 15:14:06, Guillaume Lerouge (guilla...@xwiki.com(mailto:
> > guilla...@xwiki.com)) wrote:
> >
> > > Hi Edy,
> > >
> > > On Tue, Feb 23, 2016 at 2:38 PM, Eduard Moraru wrote:
> > >
> > > > On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net
> > > > wrote:
> > > >
> > > > >
> > > > >
> > > > > On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com
> > > > (mailto:
> > > > > guilla...@xwiki.com)) wrote:
> > > > >
> > > > > > Hi Stuart,
> > > > > >
> > > > > > thanks for your feedback. This is indeed a frequent request. In the
> > > > > current
> > > > > > WYSIWYG editor, it partially works (your image has to be available
> > > > from a
> > > > > > public server).
> > > > > >
> > > > > > However, we added full support for this feature in the last
> > version of
> > > > > the
> > > > > > CKEditor extension:
> > > > > >
> > > > >
> > > >
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > > > > > => if you drag & drop an image in CKEditor, it is automatically
> > > > attached
> > > > > to
> > > > > > the wiki page.
> > > > > >
> > > > > > Please also note that drag & drop of images currently work if you
> > go to
> > > > > the
> > > > > > "attachments" tab of any page (while in view mode) and drop your
> > image
> > > > > > there.
> > > > >
> > > > > hmm are you sure? I’m not aware of this feature. I just tested it
> > and it
> > > > > didn’t work for me on 8.0M2.
> > > > >
> > > >
> > > > Tried it and it seems to work only if you drop the file exactly over
> > the
> > > > file upload field ("Browse" button or "No files selected" label, i.e.
> > field
> > > > with id "xwikiuploadfile"). This definitely needs to be improved.
> > > >
> > > > Personally, I would prefer we go full page Drag & Drop support, i.e.
> > if a
> > > > file is dropped in the XWiki browser tab, a popup asks the user if he
> > wants
> > > > to attach the dropped files to the current XWiki document. Something
> > like
> > > > GitHub is doing when you can drop a file anywhere in the tab of an
> > XWiki
> > > > repository (and a commit form will show up for you to fill details).
> > > >
> > >
> > > I agree that this would be nice too. However, it doesn't mean you don't
> > > need it in edition mode. Having to switch back and forth between view and
> > > edit because you forgot to upload a file would be tedious. It's needed in
> > > both places.
> >
> > +1 to that.
> >
>  
> Maybe you`ve missed my next reply:
> "My point here was that maybe we could make it a page-level feature and not
> an editor-level feature that each editor would have to implement.”

I had read that but I misunderstood it as meaning that you were suggesting that 
it shouldn’t be a feature in edit mode while you were just saying that it 
shouldn’t an *editor* feature.

Personally I think we need editor-level drag and drop because there are 2 
different use cases:
* being able to insert an image in the content of a page
* being able to add an image as an attachment

And whenever the content of a page is affected, then it has to be in an editor 
since that requires making modification to the content and then letting the 
user make adjustements and save the content.

Thanks
-Vincent

> It was about dropping a file in an XWiki tab, regardless of the mode you
> are in (edit/view). That`s why I said you don`t need to necessarily
> implement it in editor X or Y and it could be a feature of the XWiki page
> itself.
>  
> Thanks,
> Eduard
>  
>  
> > Thanks
> > -Vincent
> >
> > PS: I’ve opened http://jira.xwiki.org/browse/XWIKI-13133 for the issue
> > with drag and drop on chrome.
> >
> > > Thanks,
> > >
> > > Guillaume
> > >
> > > Thanks,
> > > > Eduard
> > > >
> > > > >
> > > > > Thanks
> > > > > -Vincent
> > > > >
> > > > > >
> > > > > > Thanks,
> > > > > >
> > > > > > Guillaume
> > > > > >
> > > > > > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > > > > > wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> > > > > > >
> > > > > > > However, as far as I have tested it, it works. Taking a
> > screenshot,
> > > > > copying
> > > > > > > it to the clicpboard and pasting in wysiwyg produces an
> > > > [[image:data:]]
> > > > > > > type image.
> > > > > > >
> > > > > > > Then, right clicking on an image on a website, selecting "Copy
> > Image"
> > > > > > > (Firefox) then going to wysiwyg and pasting produces an
> > > > > [[image:http...]]
> > > > > > > type image.
> > > > > > >
> > > > > > > So copy/paste is one thing, which seems to work pretty well,
> > while
> > > > > > > Drag is another and that would be a nice to have feature.
> > > > > > >
> > > > > > > Thanks,
> > > > > > > Eduard
> > > > > > >
> > > > > > > On Tue, Feb 23, 2016 at 12:50 PM, 

Re: [xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Eduard Moraru
On Tue, Feb 23, 2016 at 7:47 PM, vinc...@massol.net 
wrote:

>
>
>
>
>
> On 23 Feb 2016 at 15:14:06, Guillaume Lerouge (guilla...@xwiki.com(mailto:
> guilla...@xwiki.com)) wrote:
>
> > Hi Edy,
> >
> > On Tue, Feb 23, 2016 at 2:38 PM, Eduard Moraru wrote:
> >
> > > On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net
> > > wrote:
> > >
> > > >
> > > >
> > > > On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com
> > > (mailto:
> > > > guilla...@xwiki.com)) wrote:
> > > >
> > > > > Hi Stuart,
> > > > >
> > > > > thanks for your feedback. This is indeed a frequent request. In the
> > > > current
> > > > > WYSIWYG editor, it partially works (your image has to be available
> > > from a
> > > > > public server).
> > > > >
> > > > > However, we added full support for this feature in the last
> version of
> > > > the
> > > > > CKEditor extension:
> > > > >
> > > >
> > >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > > > > => if you drag & drop an image in CKEditor, it is automatically
> > > attached
> > > > to
> > > > > the wiki page.
> > > > >
> > > > > Please also note that drag & drop of images currently work if you
> go to
> > > > the
> > > > > "attachments" tab of any page (while in view mode) and drop your
> image
> > > > > there.
> > > >
> > > > hmm are you sure? I’m not aware of this feature. I just tested it
> and it
> > > > didn’t work for me on 8.0M2.
> > > >
> > >
> > > Tried it and it seems to work only if you drop the file exactly over
> the
> > > file upload field ("Browse" button or "No files selected" label, i.e.
> field
> > > with id "xwikiuploadfile"). This definitely needs to be improved.
> > >
> > > Personally, I would prefer we go full page Drag & Drop support, i.e.
> if a
> > > file is dropped in the XWiki browser tab, a popup asks the user if he
> wants
> > > to attach the dropped files to the current XWiki document. Something
> like
> > > GitHub is doing when you can drop a file anywhere in the tab of an
> XWiki
> > > repository (and a commit form will show up for you to fill details).
> > >
> >
> > I agree that this would be nice too. However, it doesn't mean you don't
> > need it in edition mode. Having to switch back and forth between view and
> > edit because you forgot to upload a file would be tedious. It's needed in
> > both places.
>
> +1 to that.
>

Maybe you`ve missed my next reply:
"My point here was that maybe we could make it a page-level feature and not
an editor-level feature that each editor would have to implement."

It was about dropping a file in an XWiki tab, regardless of the mode you
are in (edit/view). That`s why I said you don`t need to necessarily
implement it in editor X or Y and it could be a feature of the XWiki page
itself.

Thanks,
Eduard


> Thanks
> -Vincent
>
> PS: I’ve opened http://jira.xwiki.org/browse/XWIKI-13133 for the issue
> with drag and drop on chrome.
>
> > Thanks,
> >
> > Guillaume
> >
> > Thanks,
> > > Eduard
> > >
> > > >
> > > > Thanks
> > > > -Vincent
> > > >
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Guillaume
> > > > >
> > > > > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > > > > wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> > > > > >
> > > > > > However, as far as I have tested it, it works. Taking a
> screenshot,
> > > > copying
> > > > > > it to the clicpboard and pasting in wysiwyg produces an
> > > [[image:data:]]
> > > > > > type image.
> > > > > >
> > > > > > Then, right clicking on an image on a website, selecting "Copy
> Image"
> > > > > > (Firefox) then going to wysiwyg and pasting produces an
> > > > [[image:http...]]
> > > > > > type image.
> > > > > >
> > > > > > So copy/paste is one thing, which seems to work pretty well,
> while
> > > > > > Drag is another and that would be a nice to have feature.
> > > > > >
> > > > > > Thanks,
> > > > > > Eduard
> > > > > >
> > > > > > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net
> > > > > > wrote:
> > > > > >
> > > > > > > Hi Stuart,
> > > > > > >
> > > > > > > I agree that’s would be a very nice feature addition: ability
> to
> > > > drag and
> > > > > > > drop images as attachments directly on wiki pages (without
> having
> > > to
> > > > go
> > > > > > > through edit).
> > > > > > >
> > > > > > > Strangely I couldn’t find a jira issue for this. Would be
> awesome
> > > if
> > > > you
> > > > > > > could create one at http://jira.xwiki.org
> > > > > > >
> > > > > > > Thanks for the idea
> > > > > > > -Vincent
> > > > > > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> > > > > > stuart.step...@tracegroup.com)
> > > > > > > wrote:
> > > > > > >
> > > > > > > Hi all,
> > > > > > >
> > > > > > > In various web applications these days it is now possible to
> copy
> > > and
> > > > > > > paste images into web pages which makes the process of adding
> an
> > > > image
> > > > > > to a
> > > > > > > document online so much easier as you do 

Re: [xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread vinc...@massol.net
 




On 23 Feb 2016 at 15:14:06, Guillaume Lerouge 
(guilla...@xwiki.com(mailto:guilla...@xwiki.com)) wrote:

> Hi Edy,
>  
> On Tue, Feb 23, 2016 at 2:38 PM, Eduard Moraru wrote:
>  
> > On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net  
> > wrote:
> >
> > >
> > >
> > > On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com
> > (mailto:
> > > guilla...@xwiki.com)) wrote:
> > >
> > > > Hi Stuart,
> > > >
> > > > thanks for your feedback. This is indeed a frequent request. In the
> > > current
> > > > WYSIWYG editor, it partially works (your image has to be available
> > from a
> > > > public server).
> > > >
> > > > However, we added full support for this feature in the last version of
> > > the
> > > > CKEditor extension:
> > > >
> > >
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > > > => if you drag & drop an image in CKEditor, it is automatically
> > attached
> > > to
> > > > the wiki page.
> > > >
> > > > Please also note that drag & drop of images currently work if you go to
> > > the
> > > > "attachments" tab of any page (while in view mode) and drop your image
> > > > there.
> > >
> > > hmm are you sure? I’m not aware of this feature. I just tested it and it
> > > didn’t work for me on 8.0M2.
> > >
> >
> > Tried it and it seems to work only if you drop the file exactly over the
> > file upload field ("Browse" button or "No files selected" label, i.e. field
> > with id "xwikiuploadfile"). This definitely needs to be improved.
> >
> > Personally, I would prefer we go full page Drag & Drop support, i.e. if a
> > file is dropped in the XWiki browser tab, a popup asks the user if he wants
> > to attach the dropped files to the current XWiki document. Something like
> > GitHub is doing when you can drop a file anywhere in the tab of an XWiki
> > repository (and a commit form will show up for you to fill details).
> >
>  
> I agree that this would be nice too. However, it doesn't mean you don't
> need it in edition mode. Having to switch back and forth between view and
> edit because you forgot to upload a file would be tedious. It's needed in
> both places.

+1 to that.

Thanks
-Vincent

PS: I’ve opened http://jira.xwiki.org/browse/XWIKI-13133 for the issue with 
drag and drop on chrome.

> Thanks,
>  
> Guillaume
>  
> Thanks,
> > Eduard
> >
> > >
> > > Thanks
> > > -Vincent
> > >
> > > >
> > > > Thanks,
> > > >
> > > > Guillaume
> > > >
> > > > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > > > wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> > > > >
> > > > > However, as far as I have tested it, it works. Taking a screenshot,
> > > copying
> > > > > it to the clicpboard and pasting in wysiwyg produces an
> > [[image:data:]]
> > > > > type image.
> > > > >
> > > > > Then, right clicking on an image on a website, selecting "Copy Image"
> > > > > (Firefox) then going to wysiwyg and pasting produces an
> > > [[image:http...]]
> > > > > type image.
> > > > >
> > > > > So copy/paste is one thing, which seems to work pretty well, while
> > > > > Drag is another and that would be a nice to have feature.
> > > > >
> > > > > Thanks,
> > > > > Eduard
> > > > >
> > > > > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net
> > > > > wrote:
> > > > >
> > > > > > Hi Stuart,
> > > > > >
> > > > > > I agree that’s would be a very nice feature addition: ability to
> > > drag and
> > > > > > drop images as attachments directly on wiki pages (without having
> > to
> > > go
> > > > > > through edit).
> > > > > >
> > > > > > Strangely I couldn’t find a jira issue for this. Would be awesome
> > if
> > > you
> > > > > > could create one at http://jira.xwiki.org
> > > > > >
> > > > > > Thanks for the idea
> > > > > > -Vincent
> > > > > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> > > > > stuart.step...@tracegroup.com)
> > > > > > wrote:
> > > > > >
> > > > > > Hi all,
> > > > > >
> > > > > > In various web applications these days it is now possible to copy
> > and
> > > > > > paste images into web pages which makes the process of adding an
> > > image
> > > > > to a
> > > > > > document online so much easier as you do not need to save it off
> > > > > somewhere,
> > > > > > then upload it. Copy and paste makes the process so much more
> > > efficient.
> > > > > >
> > > > > > See the upload feature on http://imgur.com/ for example, where
> > they
> > > also
> > > > > > support drag and drop.
> > > > > >
> > > > > > Thanks,
> > > > > > Stuart
> > >
> > > ___
> > > 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] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread vinc...@massol.net
 




On 23 Feb 2016 at 14:38:27, Eduard Moraru 
(enygma2...@gmail.com(mailto:enygma2...@gmail.com)) wrote:

> On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net  
> wrote:
>  
> >
> >
> > On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com(mailto:
> > guilla...@xwiki.com)) wrote:
> >
> > > Hi Stuart,
> > >
> > > thanks for your feedback. This is indeed a frequent request. In the
> > current
> > > WYSIWYG editor, it partially works (your image has to be available from a
> > > public server).
> > >
> > > However, we added full support for this feature in the last version of
> > the
> > > CKEditor extension:
> > >
> > http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > > => if you drag & drop an image in CKEditor, it is automatically attached
> > to
> > > the wiki page.
> > >
> > > Please also note that drag & drop of images currently work if you go to
> > the
> > > "attachments" tab of any page (while in view mode) and drop your image
> > > there.
> >
> > hmm are you sure? I’m not aware of this feature. I just tested it and it
> > didn’t work for me on 8.0M2.
> >
>  
> Tried it and it seems to work only if you drop the file exactly over the
> file upload field ("Browse" button or "No files selected" label, i.e. field
> with id "xwikiuploadfile"). This definitely needs to be improved.

It definitely doesn’t work for me. I’m on chrome on mac.

EDIT: It works in FF.

Thanks
-Vincent

> Personally, I would prefer we go full page Drag & Drop support, i.e. if a
> file is dropped in the XWiki browser tab, a popup asks the user if he wants
> to attach the dropped files to the current XWiki document. Something like
> GitHub is doing when you can drop a file anywhere in the tab of an XWiki
> repository (and a commit form will show up for you to fill details).
>  
> Thanks,
> Eduard
>  
> >
> > Thanks
> > -Vincent
> >
> > >
> > > Thanks,
> > >
> > > Guillaume
> > >
> > > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> > > >
> > > > However, as far as I have tested it, it works. Taking a screenshot,
> > copying
> > > > it to the clicpboard and pasting in wysiwyg produces an [[image:data:]]
> > > > type image.
> > > >
> > > > Then, right clicking on an image on a website, selecting "Copy Image"
> > > > (Firefox) then going to wysiwyg and pasting produces an
> > [[image:http...]]
> > > > type image.
> > > >
> > > > So copy/paste is one thing, which seems to work pretty well, while
> > > > Drag is another and that would be a nice to have feature.
> > > >
> > > > Thanks,
> > > > Eduard
> > > >
> > > > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net
> > > > wrote:
> > > >
> > > > > Hi Stuart,
> > > > >
> > > > > I agree that’s would be a very nice feature addition: ability to
> > drag and
> > > > > drop images as attachments directly on wiki pages (without having to
> > go
> > > > > through edit).
> > > > >
> > > > > Strangely I couldn’t find a jira issue for this. Would be awesome if
> > you
> > > > > could create one at http://jira.xwiki.org
> > > > >
> > > > > Thanks for the idea
> > > > > -Vincent
> > > > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> > > > stuart.step...@tracegroup.com)
> > > > > wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > In various web applications these days it is now possible to copy and
> > > > > paste images into web pages which makes the process of adding an
> > image
> > > > to a
> > > > > document online so much easier as you do not need to save it off
> > > > somewhere,
> > > > > then upload it. Copy and paste makes the process so much more
> > efficient.
> > > > >
> > > > > See the upload feature on http://imgur.com/ for example, where they
> > also
> > > > > support drag and drop.
> > > > >
> > > > > Thanks,
> > > > > Stuart
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Listing connected users

2016-02-23 Thread vinc...@massol.net
 
On 23 Feb 2016 at 18:37:37, vinc...@massol.net 
(vinc...@massol.net(mailto:vinc...@massol.net)) wrote:

> Does it work? :) (why don’t you try it and let us know :))

I don’t know of any other BTW.

Thanks
-Vincent

> Thanks  
> -Vincent
>  
>  
>  
> On 23 Feb 2016 at 15:23:06, Bruno 
> (bruno.joffr...@ec-nantes.fr(mailto:bruno.joffr...@ec-nantes.fr)) wrote:
>  
> >  
> > Hello,
> >  
> > I try to list the connected users.
> > I fall on "Connected Users List Macro" but it dates from 2014.
> > Should I use this extension or is there another way to list open
> > connections ?
> >  
> > Thank you,
> > Bruno Joffredo
> >  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Listing connected users

2016-02-23 Thread vinc...@massol.net
Does it work? :) (why don’t you try it and let us know :))

Thanks
-Vincent

On 23 Feb 2016 at 15:23:06, Bruno (bruno.joffr...@ec-nantes.fr) wrote:


Hello,

I try to list the connected users.
I fall on "Connected Users List Macro" but it dates from 2014.
Should I use this extension or is there another way to list open  
connections ?

Thank you,
Bruno Joffredo

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


Re: [xwiki-users] Deleting Admin user causes document tree to not load

2016-02-23 Thread Thomas Mortagne
On Tue, Feb 23, 2016 at 6:02 PM, vinc...@massol.net  wrote:
>
> On 23 Feb 2016 at 17:57:24, Mark Sack 
> (mark.s...@secti.al.gov.br(mailto:mark.s...@secti.al.gov.br)) wrote:
>
>> A satisfactory alternative for our situation would be to hide the Admin user
>> from all but users in the Admin group. That is a feature that I can see
>> coming in handy for other scenarios as well (for example, someone leaves the
>> organization but for some reason we don't want to remove them from the user
>> directory). I would envision adding a 'Hide' flag or an 'Expiry Date' field
>> to the user profile to determine whether or not the user should be
>> displayed.
>>
>> Does anyone have an idea as to how this could be accomplished?
>
> First, note that you should perfectly be able to delete the admin user from 
> your wiki and everything should continue to work well.

Well not exactly, Admin is the author of most documents after a fresh
install so removing it will break all documents requiring any special
right.

>
> There’s a very easy solution for this second question though. Just edit the 
> admin user profile page and set it as hidden. It won’t appear anymore in the 
> user directory or other places.
>
> Thanks
> -Vincent
>
>> A complementary feature of course would be to prevent the hidden user from
>> logging in. In our case, we are using Active Directory authentication so we
>> can take care of that outside of the xwiki software.
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



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


Re: [xwiki-users] Deleting Admin user causes document tree to not load

2016-02-23 Thread vinc...@massol.net
 
On 23 Feb 2016 at 17:57:24, Mark Sack 
(mark.s...@secti.al.gov.br(mailto:mark.s...@secti.al.gov.br)) wrote:

> A satisfactory alternative for our situation would be to hide the Admin user
> from all but users in the Admin group. That is a feature that I can see
> coming in handy for other scenarios as well (for example, someone leaves the
> organization but for some reason we don't want to remove them from the user
> directory). I would envision adding a 'Hide' flag or an 'Expiry Date' field
> to the user profile to determine whether or not the user should be
> displayed.
>  
> Does anyone have an idea as to how this could be accomplished?

First, note that you should perfectly be able to delete the admin user from 
your wiki and everything should continue to work well.

There’s a very easy solution for this second question though. Just edit the 
admin user profile page and set it as hidden. It won’t appear anymore in the 
user directory or other places.

Thanks
-Vincent

> A complementary feature of course would be to prevent the hidden user from
> logging in. In our case, we are using Active Directory authentication so we
> can take care of that outside of the xwiki software.

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


Re: [xwiki-users] Deleting Admin user causes document tree to not load

2016-02-23 Thread vinc...@massol.net
Hi Mark,

On 23 Feb 2016 at 16:15:34, Mark Sack 
(mark.s...@secti.al.gov.br(mailto:mark.s...@secti.al.gov.br)) wrote:

> My understanding is that I should be able to replace the Admin user with
> another user that I've created and added to the Admin group. But when I
> delete the Admin user using the other user in the Admin group, I find that
> the document tree no longer loads.
>  
> My configuration is as follows:
> XWiki Enterprise WAR 7.4.1
> Debian Jessie
> Java openjdk-7-jre-headless
> Tomcat 8
> Postgresql 9.4/9.5 - The release notes state that 9.5 is the supported
> version for 7.4.1 but I could not find a 9.5 JDBC driver so I tried it with
> both 9.4 and 9.5 versions of Postgresql (in both cases using the 9.4 JDBC
> driver).
>  
> This might be related to XWIKI-13025 'The document tree doesn't load on
> Postgres' since the problem does not seem to occur with the standalone
> installation.

Well, https://jira.xwiki.org/browse/XWIKI-13025 has been fixed in XWiki 7.4.1 
so if you’re using that version it should work fine.

To debug the issue, could you please give us any error you have in the xwiki 
logs and also open firebugs or chrome dev tools and open the javascript console 
and refresh the page with the document tree (the wiki home page?), and let us 
know of any error there.

If you’re able to make it work with the standalone install then indeed the 
issue could be either with postgresql or your configuration.

Thanks
-Vincent

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


Re: [xwiki-users] Deleting Admin user causes document tree to not load

2016-02-23 Thread Mark Sack
A satisfactory alternative for our situation would be to hide the Admin user
from all but users in the Admin group. That is a feature that I can see
coming in handy for other scenarios as well (for example, someone leaves the
organization but for some reason we don't want to remove them from the user
directory). I would envision adding a 'Hide' flag or an 'Expiry Date' field
to the user profile to determine whether or not the user should be
displayed.

Does anyone have an idea as to how this could be accomplished?

A complementary feature of course would be to prevent the hidden user from
logging in. In our case, we are using Active Directory authentication so we
can take care of that outside of the xwiki software.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Deleting-Admin-user-causes-document-tree-to-not-load-tp7598099p7598102.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Deleting Admin user causes document tree to not load

2016-02-23 Thread Mark Sack
My understanding is that I should be able to replace the Admin user with
another user that I've created and added to the Admin group. But when I
delete the Admin user using the other user in the Admin group, I find that
the document tree no longer loads.

My configuration is as follows:
XWiki Enterprise WAR 7.4.1
Debian Jessie
Java openjdk-7-jre-headless
Tomcat 8
Postgresql 9.4/9.5 - The release notes state that 9.5 is the supported
version for 7.4.1 but I could not find a 9.5 JDBC  driver so I tried it with
both 9.4 and 9.5 versions of Postgresql (in both cases using the 9.4 JDBC
driver).

This might be related to XWIKI-13025 'The document tree doesn't load on
Postgres' since the problem does not seem to occur with the standalone
installation.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Deleting-Admin-user-causes-document-tree-to-not-load-tp7598099.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Listing connected users

2016-02-23 Thread Bruno


Hello,

I try to list the connected users.
I fall on "Connected Users List Macro" but it dates from 2014.
Should I use this extension or is there another way to list open 
connections ?


Thank you,
Signature mails
_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_


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


Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-23 Thread Peter John Acklam
Thanks everyone!

The problem has been solved, and the odd characters are gone.

The query didn't work without some modifications. I ended up using

select xwd_fullname from xwikidoc where xwd_content like '%' || chr(1) ||
'%';

(concat() only takes two operands, so it was easier to use ||. My sqlplus
tool didn't like "%" and char(1), so I had to use '%' and chr(1).)

After this character was removed, I got complaints about 0xf. The page was
identified with the equivalent query, but using chr(15).

I also had to remove some of the old versions from the page history. Oddly
enough, the queries still report that the odd characters are present in the
database, but exporting the entire wiki works fine now, so the odd
characters are no longer a problem.

By the way, the text with the odd characters had entered the wiki when text
had been copied an pasted from UNIX terminal windows.

Agan, thanks everyone for your invaluable help!

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


Re: [xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Guillaume Lerouge
Hi Edy,

On Tue, Feb 23, 2016 at 2:38 PM, Eduard Moraru  wrote:

> On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net 
> wrote:
>
> >
> >
> > On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com
> (mailto:
> > guilla...@xwiki.com)) wrote:
> >
> > > Hi Stuart,
> > >
> > > thanks for your feedback. This is indeed a frequent request. In the
> > current
> > > WYSIWYG editor, it partially works (your image has to be available
> from a
> > > public server).
> > >
> > > However, we added full support for this feature in the last version of
> > the
> > > CKEditor extension:
> > >
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > > => if you drag & drop an image in CKEditor, it is automatically
> attached
> > to
> > > the wiki page.
> > >
> > > Please also note that drag & drop of images currently work if you go to
> > the
> > > "attachments" tab of any page (while in view mode) and drop your image
> > > there.
> >
> > hmm are you sure? I’m not aware of this feature. I just tested it and it
> > didn’t work for me on 8.0M2.
> >
>
> Tried it and it seems to work only if you drop the file exactly over the
> file upload field ("Browse" button or "No files selected" label, i.e. field
> with id "xwikiuploadfile"). This definitely needs to be improved.
>
> Personally, I would prefer we go full page Drag & Drop support, i.e. if a
> file is dropped in the XWiki browser tab, a popup asks the user if he wants
> to attach the dropped files to the current XWiki document. Something like
> GitHub is doing when you can drop a file anywhere in the tab of an XWiki
> repository (and a commit form will show up for you to fill details).
>

I agree that this would be nice too. However, it doesn't mean you don't
need it in edition mode. Having to switch back and forth between view and
edit because you forgot to upload a file would be tedious. It's needed in
both places.

Thanks,

Guillaume

Thanks,
> Eduard
>
> >
> > Thanks
> > -Vincent
> >
> > >
> > > Thanks,
> > >
> > > Guillaume
> > >
> > > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> > > >
> > > > However, as far as I have tested it, it works. Taking a screenshot,
> > copying
> > > > it to the clicpboard and pasting in wysiwyg produces an
> [[image:data:]]
> > > > type image.
> > > >
> > > > Then, right clicking on an image on a website, selecting "Copy Image"
> > > > (Firefox) then going to wysiwyg and pasting produces an
> > [[image:http...]]
> > > > type image.
> > > >
> > > > So copy/paste is one thing, which seems to work pretty well, while
> > > > Drag is another and that would be a nice to have feature.
> > > >
> > > > Thanks,
> > > > Eduard
> > > >
> > > > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net
> > > > wrote:
> > > >
> > > > > Hi Stuart,
> > > > >
> > > > > I agree that’s would be a very nice feature addition: ability to
> > drag and
> > > > > drop images as attachments directly on wiki pages (without having
> to
> > go
> > > > > through edit).
> > > > >
> > > > > Strangely I couldn’t find a jira issue for this. Would be awesome
> if
> > you
> > > > > could create one at http://jira.xwiki.org
> > > > >
> > > > > Thanks for the idea
> > > > > -Vincent
> > > > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> > > > stuart.step...@tracegroup.com)
> > > > > wrote:
> > > > >
> > > > > Hi all,
> > > > >
> > > > > In various web applications these days it is now possible to copy
> and
> > > > > paste images into web pages which makes the process of adding an
> > image
> > > > to a
> > > > > document online so much easier as you do not need to save it off
> > > > somewhere,
> > > > > then upload it. Copy and paste makes the process so much more
> > efficient.
> > > > >
> > > > > See the upload feature on http://imgur.com/ for example, where
> they
> > also
> > > > > support drag and drop.
> > > > >
> > > > > Thanks,
> > > > > Stuart
> >
> > ___
> > 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] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Guillaume Lerouge
Hi Vincent,

On Tue, Feb 23, 2016 at 12:22 PM, vinc...@massol.net 
wrote:

>
>
> On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com(mailto:
> guilla...@xwiki.com)) wrote:
>
> > Hi Stuart,
> >
> > thanks for your feedback. This is indeed a frequent request. In the
> current
> > WYSIWYG editor, it partially works (your image has to be available from a
> > public server).
> >
> > However, we added full support for this feature in the last version of
> the
> > CKEditor extension:
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > => if you drag & drop an image in CKEditor, it is automatically attached
> to
> > the wiki page.
> >
> > Please also note that drag & drop of images currently work if you go to
> the
> > "attachments" tab of any page (while in view mode) and drop your image
> > there.
>
> hmm are you sure? I’m not aware of this feature. I just tested it and it
> didn’t work for me on 8.0M2.
>

Yes, it works if you drag & drop the file in the CKeditor edition window. I
just tried again and I got a "file successfully uploaded" confirmation
message and the file shows up in attachment. It also works with copy/paste,
I also get the confirmation message.

Are you sure you have version 1.2 of the CKEditor extension installed?

Thanks,

Guillaume

Thanks
> -Vincent
>
> >
> > Thanks,
> >
> > Guillaume
> >
> > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > wrote:
> >
> > > Hi,
> > >
> > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> > >
> > > However, as far as I have tested it, it works. Taking a screenshot,
> copying
> > > it to the clicpboard and pasting in wysiwyg produces an [[image:data:]]
> > > type image.
> > >
> > > Then, right clicking on an image on a website, selecting "Copy Image"
> > > (Firefox) then going to wysiwyg and pasting produces an
> [[image:http...]]
> > > type image.
> > >
> > > So copy/paste is one thing, which seems to work pretty well, while
> > > Drag is another and that would be a nice to have feature.
> > >
> > > Thanks,
> > > Eduard
> > >
> > > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net
> > > wrote:
> > >
> > > > Hi Stuart,
> > > >
> > > > I agree that’s would be a very nice feature addition: ability to
> drag and
> > > > drop images as attachments directly on wiki pages (without having to
> go
> > > > through edit).
> > > >
> > > > Strangely I couldn’t find a jira issue for this. Would be awesome if
> you
> > > > could create one at http://jira.xwiki.org
> > > >
> > > > Thanks for the idea
> > > > -Vincent
> > > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> > > stuart.step...@tracegroup.com)
> > > > wrote:
> > > >
> > > > Hi all,
> > > >
> > > > In various web applications these days it is now possible to copy and
> > > > paste images into web pages which makes the process of adding an
> image
> > > to a
> > > > document online so much easier as you do not need to save it off
> > > somewhere,
> > > > then upload it. Copy and paste makes the process so much more
> efficient.
> > > >
> > > > See the upload feature on http://imgur.com/ for example, where they
> also
> > > > support drag and drop.
> > > >
> > > > Thanks,
> > > > Stuart
>
> ___
> 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] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Eduard Moraru
On Tue, Feb 23, 2016 at 3:38 PM, Eduard Moraru  wrote:

>
>
> On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net 
> wrote:
>
>>
>>
>> On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com
>> (mailto:guilla...@xwiki.com)) wrote:
>>
>> > Hi Stuart,
>> >
>> > thanks for your feedback. This is indeed a frequent request. In the
>> current
>> > WYSIWYG editor, it partially works (your image has to be available from
>> a
>> > public server).
>> >
>> > However, we added full support for this feature in the last version of
>> the
>> > CKEditor extension:
>> >
>> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
>> > => if you drag & drop an image in CKEditor, it is automatically
>> attached to
>> > the wiki page.
>> >
>> > Please also note that drag & drop of images currently work if you go to
>> the
>> > "attachments" tab of any page (while in view mode) and drop your image
>> > there.
>>
>> hmm are you sure? I’m not aware of this feature. I just tested it and it
>> didn’t work for me on 8.0M2.
>>
>
> Tried it and it seems to work only if you drop the file exactly over the
> file upload field ("Browse" button or "No files selected" label, i.e. field
> with id "xwikiuploadfile"). This definitely needs to be improved.
>
> Personally, I would prefer we go full page Drag & Drop support, i.e. if a
> file is dropped in the XWiki browser tab, a popup asks the user if he wants
> to attach the dropped files to the current XWiki document. Something like
> GitHub is doing when you can drop a file anywhere in the tab of an XWiki
> repository (and a commit form will show up for you to fill details).
>

My point here was that maybe we could make it a page-level feature and not
an editor-level feature that each editor would have to implement.


>
> Thanks,
> Eduard
>
>>
>> Thanks
>> -Vincent
>>
>> >
>> > Thanks,
>> >
>> > Guillaume
>> >
>> > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
>> > >
>> > > However, as far as I have tested it, it works. Taking a screenshot,
>> copying
>> > > it to the clicpboard and pasting in wysiwyg produces an
>> [[image:data:]]
>> > > type image.
>> > >
>> > > Then, right clicking on an image on a website, selecting "Copy Image"
>> > > (Firefox) then going to wysiwyg and pasting produces an
>> [[image:http...]]
>> > > type image.
>> > >
>> > > So copy/paste is one thing, which seems to work pretty well, while
>> > > Drag is another and that would be a nice to have feature.
>> > >
>> > > Thanks,
>> > > Eduard
>> > >
>> > > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net
>> > > wrote:
>> > >
>> > > > Hi Stuart,
>> > > >
>> > > > I agree that’s would be a very nice feature addition: ability to
>> drag and
>> > > > drop images as attachments directly on wiki pages (without having
>> to go
>> > > > through edit).
>> > > >
>> > > > Strangely I couldn’t find a jira issue for this. Would be awesome
>> if you
>> > > > could create one at http://jira.xwiki.org
>> > > >
>> > > > Thanks for the idea
>> > > > -Vincent
>> > > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
>> > > stuart.step...@tracegroup.com)
>> > > > wrote:
>> > > >
>> > > > Hi all,
>> > > >
>> > > > In various web applications these days it is now possible to copy
>> and
>> > > > paste images into web pages which makes the process of adding an
>> image
>> > > to a
>> > > > document online so much easier as you do not need to save it off
>> > > somewhere,
>> > > > then upload it. Copy and paste makes the process so much more
>> efficient.
>> > > >
>> > > > See the upload feature on http://imgur.com/ for example, where
>> they also
>> > > > support drag and drop.
>> > > >
>> > > > Thanks,
>> > > > Stuart
>>
>> ___
>> 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] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Eduard Moraru
On Tue, Feb 23, 2016 at 1:22 PM, vinc...@massol.net 
wrote:

>
>
> On 23 Feb 2016 at 12:06:43, Guillaume Lerouge (guilla...@xwiki.com(mailto:
> guilla...@xwiki.com)) wrote:
>
> > Hi Stuart,
> >
> > thanks for your feedback. This is indeed a frequent request. In the
> current
> > WYSIWYG editor, it partially works (your image has to be available from a
> > public server).
> >
> > However, we added full support for this feature in the last version of
> the
> > CKEditor extension:
> >
> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> > => if you drag & drop an image in CKEditor, it is automatically attached
> to
> > the wiki page.
> >
> > Please also note that drag & drop of images currently work if you go to
> the
> > "attachments" tab of any page (while in view mode) and drop your image
> > there.
>
> hmm are you sure? I’m not aware of this feature. I just tested it and it
> didn’t work for me on 8.0M2.
>

Tried it and it seems to work only if you drop the file exactly over the
file upload field ("Browse" button or "No files selected" label, i.e. field
with id "xwikiuploadfile"). This definitely needs to be improved.

Personally, I would prefer we go full page Drag & Drop support, i.e. if a
file is dropped in the XWiki browser tab, a popup asks the user if he wants
to attach the dropped files to the current XWiki document. Something like
GitHub is doing when you can drop a file anywhere in the tab of an XWiki
repository (and a commit form will show up for you to fill details).

Thanks,
Eduard

>
> Thanks
> -Vincent
>
> >
> > Thanks,
> >
> > Guillaume
> >
> > On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru
> > wrote:
> >
> > > Hi,
> > >
> > > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> > >
> > > However, as far as I have tested it, it works. Taking a screenshot,
> copying
> > > it to the clicpboard and pasting in wysiwyg produces an [[image:data:]]
> > > type image.
> > >
> > > Then, right clicking on an image on a website, selecting "Copy Image"
> > > (Firefox) then going to wysiwyg and pasting produces an
> [[image:http...]]
> > > type image.
> > >
> > > So copy/paste is one thing, which seems to work pretty well, while
> > > Drag is another and that would be a nice to have feature.
> > >
> > > Thanks,
> > > Eduard
> > >
> > > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net
> > > wrote:
> > >
> > > > Hi Stuart,
> > > >
> > > > I agree that’s would be a very nice feature addition: ability to
> drag and
> > > > drop images as attachments directly on wiki pages (without having to
> go
> > > > through edit).
> > > >
> > > > Strangely I couldn’t find a jira issue for this. Would be awesome if
> you
> > > > could create one at http://jira.xwiki.org
> > > >
> > > > Thanks for the idea
> > > > -Vincent
> > > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> > > stuart.step...@tracegroup.com)
> > > > wrote:
> > > >
> > > > Hi all,
> > > >
> > > > In various web applications these days it is now possible to copy and
> > > > paste images into web pages which makes the process of adding an
> image
> > > to a
> > > > document online so much easier as you do not need to save it off
> > > somewhere,
> > > > then upload it. Copy and paste makes the process so much more
> efficient.
> > > >
> > > > See the upload feature on http://imgur.com/ for example, where they
> also
> > > > support drag and drop.
> > > >
> > > > Thanks,
> > > > Stuart
>
> ___
> 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] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread vinc...@massol.net
 

On 23 Feb 2016 at 12:06:43, Guillaume Lerouge 
(guilla...@xwiki.com(mailto:guilla...@xwiki.com)) wrote:

> Hi Stuart,
>  
> thanks for your feedback. This is indeed a frequent request. In the current
> WYSIWYG editor, it partially works (your image has to be available from a
> public server).
>  
> However, we added full support for this feature in the last version of the
> CKEditor extension:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
> => if you drag & drop an image in CKEditor, it is automatically attached to
> the wiki page.
>  
> Please also note that drag & drop of images currently work if you go to the
> "attachments" tab of any page (while in view mode) and drop your image
> there.

hmm are you sure? I’m not aware of this feature. I just tested it and it didn’t 
work for me on 8.0M2.

Thanks
-Vincent

>  
> Thanks,
>  
> Guillaume
>  
> On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru  
> wrote:
>  
> > Hi,
> >
> > Found this issue http://jira.xwiki.org/browse/XWIKI-10026
> >
> > However, as far as I have tested it, it works. Taking a screenshot, copying
> > it to the clicpboard and pasting in wysiwyg produces an [[image:data:]]
> > type image.
> >
> > Then, right clicking on an image on a website, selecting "Copy Image"
> > (Firefox) then going to wysiwyg and pasting produces an [[image:http...]]
> > type image.
> >
> > So copy/paste is one thing, which seems to work pretty well, while
> > Drag is another and that would be a nice to have feature.
> >
> > Thanks,
> > Eduard
> >
> > On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net  
> > wrote:
> >
> > > Hi Stuart,
> > >
> > > I agree that’s would be a very nice feature addition: ability to drag and
> > > drop images as attachments directly on wiki pages (without having to go
> > > through edit).
> > >
> > > Strangely I couldn’t find a jira issue for this. Would be awesome if you
> > > could create one at http://jira.xwiki.org
> > >
> > > Thanks for the idea
> > > -Vincent
> > > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> > stuart.step...@tracegroup.com)
> > > wrote:
> > >
> > > Hi all,
> > >
> > > In various web applications these days it is now possible to copy and
> > > paste images into web pages which makes the process of adding an image
> > to a
> > > document online so much easier as you do not need to save it off
> > somewhere,
> > > then upload it. Copy and paste makes the process so much more efficient.
> > >
> > > See the upload feature on http://imgur.com/ for example, where they also
> > > support drag and drop.
> > >
> > > Thanks,
> > > Stuart

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


Re: [xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Paul Libbrecht


Guillaume Lerouge wrote:
> Please also note that drag & drop of images currently work if you go to the
> "attachments" tab of any page (while in view mode) and drop your image
> there.
What's even better for productivity: it works with multiple files. That
makes it very effective.

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


Re: [xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Guillaume Lerouge
Hi Stuart,

thanks for your feedback. This is indeed a frequent request. In the current
WYSIWYG editor, it partially works (your image has to be available from a
public server).

However, we added full support for this feature in the last version of the
CKEditor extension:
http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration
=> if you drag & drop an image in CKEditor, it is automatically attached to
the wiki page.

Please also note that drag & drop of images currently work if you go to the
"attachments" tab of any page (while in view mode) and drop your image
there.

Thanks,

Guillaume

On Tue, Feb 23, 2016 at 11:57 AM, Eduard Moraru 
wrote:

> Hi,
>
> Found this issue http://jira.xwiki.org/browse/XWIKI-10026
>
> However, as far as I have tested it, it works. Taking a screenshot, copying
> it to the clicpboard and pasting in wysiwyg produces an [[image:data:]]
> type image.
>
> Then, right clicking on an image on a website, selecting "Copy Image"
> (Firefox) then going to wysiwyg and pasting produces an [[image:http...]]
> type image.
>
> So copy/paste is one thing, which seems to work pretty well, while
> Drag is another and that would be a nice to have feature.
>
> Thanks,
> Eduard
>
> On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net 
> wrote:
>
> > Hi Stuart,
> >
> > I agree that’s would be a very nice feature addition: ability to drag and
> > drop images as attachments directly on wiki pages (without having to go
> > through edit).
> >
> > Strangely I couldn’t find a jira issue for this. Would be awesome if you
> > could create one at http://jira.xwiki.org
> >
> > Thanks for the idea
> > -Vincent
> > On 23 Feb 2016 at 11:47:12, Stuart Stephen (
> stuart.step...@tracegroup.com)
> > wrote:
> >
> > Hi all,
> >
> > In various web applications these days it is now possible to copy and
> > paste images into web pages which makes the process of adding an image
> to a
> > document online so much easier as you do not need to save it off
> somewhere,
> > then upload it. Copy and paste makes the process so much more efficient.
> >
> > See the upload feature on http://imgur.com/ for example, where they also
> > support drag and drop.
> >
> > Thanks,
> > Stuart
> > ___
> > 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] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Eduard Moraru
Hi,

Found this issue http://jira.xwiki.org/browse/XWIKI-10026

However, as far as I have tested it, it works. Taking a screenshot, copying
it to the clicpboard and pasting in wysiwyg produces an [[image:data:]]
type image.

Then, right clicking on an image on a website, selecting "Copy Image"
(Firefox) then going to wysiwyg and pasting produces an [[image:http...]]
type image.

So copy/paste is one thing, which seems to work pretty well, while
Drag is another and that would be a nice to have feature.

Thanks,
Eduard

On Tue, Feb 23, 2016 at 12:50 PM, vinc...@massol.net 
wrote:

> Hi Stuart,
>
> I agree that’s would be a very nice feature addition: ability to drag and
> drop images as attachments directly on wiki pages (without having to go
> through edit).
>
> Strangely I couldn’t find a jira issue for this. Would be awesome if you
> could create one at http://jira.xwiki.org
>
> Thanks for the idea
> -Vincent
> On 23 Feb 2016 at 11:47:12, Stuart Stephen (stuart.step...@tracegroup.com)
> wrote:
>
> Hi all,
>
> In various web applications these days it is now possible to copy and
> paste images into web pages which makes the process of adding an image to a
> document online so much easier as you do not need to save it off somewhere,
> then upload it. Copy and paste makes the process so much more efficient.
>
> See the upload feature on http://imgur.com/ for example, where they also
> support drag and drop.
>
> Thanks,
> Stuart
> ___
> 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] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread vinc...@massol.net
Hi Stuart,

I agree that’s would be a very nice feature addition: ability to drag and drop 
images as attachments directly on wiki pages (without having to go through 
edit).

Strangely I couldn’t find a jira issue for this. Would be awesome if you could 
create one at http://jira.xwiki.org

Thanks for the idea
-Vincent
On 23 Feb 2016 at 11:47:12, Stuart Stephen (stuart.step...@tracegroup.com) 
wrote:

Hi all,  

In various web applications these days it is now possible to copy and paste 
images into web pages which makes the process of adding an image to a document 
online so much easier as you do not need to save it off somewhere, then upload 
it. Copy and paste makes the process so much more efficient.  

See the upload feature on http://imgur.com/ for example, where they also 
support drag and drop.  

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


[xwiki-users] Feature Request: Allow copy & paste of images into WYSIWYG editor

2016-02-23 Thread Stuart Stephen
Hi all,

In various web applications these days it is now possible to copy and paste 
images into web pages which makes the process of adding an image to a document 
online so much easier as you do not need to save it off somewhere, then upload 
it. Copy and paste makes the process so much more efficient.

See the upload feature on http://imgur.com/ for example, where they also 
support drag and drop.

Thanks,
Stuart
Disclaimer: The contents of this E-mail plus any attachment is intended for the 
use of the addressee only and is confidential, proprietary and may be 
privileged. It will not be binding upon Trace Group or any group company 
(Trace). Opinions, conclusions, contractual obligations and other information 
in this message in so far as they relate to the official business of Trace must 
be specifically confirmed in writing by Trace. If you are not the intended 
recipient you must not copy this message or attachment, use or disclose the 
contents to any other person, but are requested to telephone or E-mail the 
sender and delete the message and any attachment from your system. Trace takes 
all reasonable precautions to ensure that no virus or defect is transmitted via 
this e mail, however Trace accepts no responsibility for any virus or defect 
that might arise from opening this E-mail or attachments.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-23 Thread Paul Libbrecht
Hello all,

here would be the query:

select xwd_fullname from xwikidoc where xwd_content like
concat("%",char(1),"%");

(I've seen many indicate that || would be the concatenation operator,
but it seems like it is not the case in like operands)

Based on that, Peter, you should be able to filter things out.


Now, to the XML 1.1 export. In principle this is not a big deal, but we
should be clear on what it implies for parser libraries. The move to XML
1.1 has been more than frigid. Note also, that this support is pretty
limited (only  references).
I'd prefer if we find a way to get rid of such gremlins. To my
experience they are only the spurious result of copy and paste. One
particular family of documents where these gremlins happen are PDF
documents generated by TeX. The venerable typesetting had a tradition of
funky encoding, since it also had its own fonts and all that was far
before the move even to 16 bits.

I believe that the editor or the save process should remove anything
below ASCII 32 except CR, LF, and TAB.

Can the migration process be interactive to ask about them?
Should we "just" zap them or replace them by a character?
Does someone find a reason to keep them?

Paul

PS: the "gremlins" name here comes from BBEdit/TextWrangler who had a
function "Zap Gremlins" since a decade at least.


> Thomas Mortagne 
> 22 February 2016 at 14:10
> What I can say from the error is that the character is in a document
> content at least (not a title, or an object) but it does not help much
> reduce the scope.
>
> You could try to find it with a SQL request I guess, need to find how
> to search this specific character in a SQL request.
>
> On Mon, Feb 22, 2016 at 2:01 PM, Thomas Mortagne
>
>
>
> Thomas Mortagne 
> 22 February 2016 at 14:01
> On Mon, Feb 22, 2016 at 12:46 PM, Peter John Acklam  
> wrote:
>> Avoiding this problem in the future would be nice, but I already have this
>> character in my wiki, and I need to get rid of it. I don't know how it got
>> there, but more importantly, I need to find it, so I can remove it. With no
>> XAR export, we can't do our planned transision from an Oracle to a
>> PostgreSQL database.
>>
>> As for the discussion on markmail.org – I have registered there, but I
>> can't find anything on the webpage that allows me to take part in the
>> discussion.
>
> Yes you can't write from markmail, was probably not the best link to give :)
>
> I think you can sent mails from nabble (through
> http://dev.xwiki.org/xwiki/bin/view/Community/Forum or
> http://xwiki.475771.n2.nabble.com/Should-we-move-to-XML-1-1-in-XAR-td7598066.html).
>
>> Cheers,
>> Peter
>>
>>
>> 2016-02-22 12:15 GMT+01:00 Thomas Mortagne :
>>
>>> Starting a discussion on this subject on
>>> http://markmail.org/message/32vnzxchphr26phh.
>>>
>>> If you have more input on what is this character doing here please share
>>> there.
>>>
>>> On Mon, Feb 22, 2016 at 11:55 AM, Thomas Mortagne
>>>  wrote:
 Actually I do know why it's writting XML 1.0, that's because we tell it
>>> to...
 Did not know XML 1.0 was not supporting anything, I'm surprise we get
 this kind of report only know.

 Anyway thanks for the report, will take care of this.

 On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
  wrote:
> What I understand from the error message is that Woodstox think it's
> writing XML 1.0 and looks like it's not possible to put anything you
> want in XML 1.0 but not sure why exactly. You happen to have a
> document containing some weird character (0x1) which is probably a
> mistake but still we should be able to export anything (especially
> when this anything can be stored in a String and in the database).
>
> In the meantime what you can try is to set the old exporter in
> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
> Would be great if you could crate an issue on http://jira.xwiki.org
> with all the information you can gather about this bug.
>
>
> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam 
>>> wrote:
>> I can no longer make a XAR export of our wiki. The essential error
>>> message
>> in catalina.out seems to be
>>
>> "Invalid white space character (0x1) in text to output (in xml 1.1,
>>> could
>> output as a character entity)"
>>
>> Alas, there is no information about which wiki page contains this
>>> invalid
>> character. I can, of course, export parts of the wiki and repeat the
>> process until I find the offending page, but I suspect there has got
>>> to be
>> a more efficient way.
>>
>> The full, relevant section of catalina.out on our test server is
>>> included
>> below.
>>
>> Thanks in advance for any tips!
>>
>> Cheers,
>> Peter John