Hi Abdulkadar,
Maybe this will help:
http://platform.xwiki.org/xwiki/bin/view/DevGuide/JavaScriptAPI
Thanks
-Vincent
On 15 Sep 2015 at 16:38:38, PATEL, ABDULKADAR (abdulkadar.patel(a)capgemini.com) wrote:
Dear Eduard,
I know this basic jquery functionality and I can develop this in a standalone application.
The reason I am asking this query to XWIKI developers is because I want to achieve this in
XWIKI. :)
So my question to be clear here is :
Whether we can achieve this using in built functionalities of xwiki like done in add
annotation functionality or I have to develop it from scratch like any other web app.
I hope you now understand my question.
Thanks & Regards,
Abdulkadar Patel
P.S. : Don't worry, I will not get discouraged but try to learn from everything :)
-----Original Message-----
From: devs [mailto:devs-bounces@xwiki.org] On Behalf Of Eduard Moraru
Sent: Tuesday, September 15, 2015 7:53 PM
To: XWiki Developers
Subject: Re: [xwiki-devs] text highlighting event
Hi,
Again, this is not an XWiki related question, but a generic JavaScript (web development
actually) question on wich there are many articles, tutorials and forum/stackoverflow
answers.
As a quick reply, here's a small javascript that alerts the selected
message:
jQuery(document).on('mouseup', function (event) {
var selection = "";
if (window.getSelection) {
selection = window.getSelection().toString();
} else if (document.selection && document.selection.type != "Control") {
selection = document.selection.createRange().text;
}
alert('Selected: ' + selection);
});
Got that from a quick Google search, which you could do as well if you first spend a bit
of time in understanding the basics of web development.
If you want to customize or develop from scratch (i.e. not using
AppWithinMinutes) XWiki applications, you really need to know at least the basics on web
development (HTML, JavaScript, CSS).
Hope this helps,
Eduard
P.S.: Don`t want to discourage you or anything, just hope to guide you in the right
direction :)
On Mon, Sep 14, 2015 at 3:52 PM, PATEL, ABDULKADAR < abdulkadar.patel(a)capgemini.com>
wrote:
Hi all,
Is there a way to handle text highlight event in xwiki?
In annotation component, when we highlight some text and then press
ctrl+M, Annotations popup is displayed.
How is this achieved?
I want to display a popup when user highlights some text on an xwiki page.
The popup will have a text box which will be pre-populated with the
highlighted text.
Please suggest me a proper approach to achieve this.
Thanks in advance.
Thanks & Regards,
____________________________________________________________________
[cid:image001.gif@01D0EF1A.556ADFC0]Abdulkadar Patel Consultant |
GESBU
Capgemini India | Pune
Tel.: +91 20 6631 1755 - Extn: 20 12530
Mob.: + 91 8087683419
Email: abdulkadar.patel(a)capgemini.com<mailtolto:
abdulkadar.patel(a)capgemini.com>
www.capgemini.com<http://www.capgemini.com/>
People matter, results count.
______________________________________________________________________
_
7 Switch off as you go |q Recycle always | P Print only if absolutely
necessary
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs