Page 1 of 1

Custom actions/menu/toolbar in text view

Posted: Wed Jul 08, 2015 1:35 am
by martindholmes
It's quite straightforward to create custom actions associated with a document type, and add them to a custom menu and to the toolbar when that document type is open in Author view. But I'd really like to make this functionality available in the text view; most of our editors work almost all the time in text view, and I'd like to make a range of transformations available as custom menu items for them.

Is this possible? If not, are you planning to make it possible?

Cheers,
Martin

Re: Custom actions/menu/toolbar in text view

Posted: Wed Jul 08, 2015 10:34 am
by alex_jitianu
Hello Martin,

We have an already recorded feature request for this. I will add your vote for it. Meanwhile, you can use our Java based API to add something similar through an Workspace Access plugin. Such a plugin can add actions in a toolbar and from these action you can access the Text page and make changes. The Text page API is not as vast as the Author page API but you can still:
- get access to the text component and its document
- execute XPath to locate ranges that need to be process
- easily insert XML fragments

Best regards,
Alex

Re: Custom actions/menu/toolbar in text view

Posted: Fri Jul 10, 2015 12:26 am
by martindholmes
Hi Alex,

This will help for one of the projects for which I'm going to be writing a framework, but I don't think this can be done using just a project file, can it?

I don't actually need access to the text API; these are transformation scenarios I want to run.

Cheers,
Martin

Re: Custom actions/menu/toolbar in text view

Posted: Fri Jul 10, 2015 12:28 am
by martindholmes
Any idea when the feature request might be addressed?

Cheers,
Martin

Re: Custom actions/menu/toolbar in text view

Posted: Fri Jul 10, 2015 1:48 pm
by alex_jitianu
Hi Martin,

I've added you vote for the feature but we don't have a estimation yet. It's not a trivial feature and it will involve some architectural changes. I've sent you on your email address a sample plugin that should help you. It reads some scenario names from a file and puts actions on the toolbar that will execute those scenarios.

Best regards,
Alex