Event of text selection

New Here ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Is there a event after text selection?
I want to run my own code after the user finish to select text. Is there any way to do that?

Views

284

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , May 25, 2020 May 25, 2020

Yes, there is an event (PREVIEW_SELECTION_END) after text selection.

Please visit https://www.adobe.io/apis/documentcloud/dcsdk/docs.html?view=view if you want to know how to listen to such events. You will get the required information under section Basic events.

Likes

Translate

Translate
Adobe Employee ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Yes, there is an event (PREVIEW_SELECTION_END) after text selection.

Please visit https://www.adobe.io/apis/documentcloud/dcsdk/docs.html?view=view if you want to know how to listen to such events. You will get the required information under section Basic events.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

Can I get the selected text?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

We are already working on this. It will be available in our upcoming release soon.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

When should the next version will be released?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 25, 2020 May 25, 2020

Copy link to clipboard

Copied

You can expect it by mid of June at the earliest.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 11, 2020 Sep 11, 2020

Copy link to clipboard

Copied

Is there any news on this yet?  Nothing in documentation regarding accessing selected text?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 11, 2020 Sep 11, 2020

Copy link to clipboard

Copied

Hi,

We have this ability now. You can use the getSelectedContent APImentioned under section Viewer API in our public documentation https://www.adobe.io/apis/documentcloud/dcsdk/docs.html 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 11, 2020 Sep 11, 2020

Copy link to clipboard

Copied

LATEST

Excellent!  Thank you for the quick reply.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 11, 2020 Sep 11, 2020

Copy link to clipboard

Copied

Hi, You can use getSelectedContent viewer API to get the selected text after receiving the PREVIEW_SELECTION_END event. API is documented in Viewer API section of documentation.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources