Page 1 of 1

Custom toolbar in editor mode

Posted: Mon Jan 20, 2014 10:50 am
by cis
Hi all,

I'm not sure whether this is actually a feature request, because I don't know if there is a solution.

I don't like WYSIWYG editors, so I never work in the author mode and always in the editor mode.

But there is one thing quite annoying about that. In the author mode you can mark a bit of text, press a button and you get a tag around it. You can also create customized buttons for your own tags.

If this is possible in the editor mode, too, I haven't found out yet how to do it.

I really don't see the point why the editor mode should be less comfortable concerning this important point: Inserting XML by mouse click while keeping full controll over the entire code - that is how XML editing in 2014 should work.

Re: Custom toolbar in editor mode

Posted: Mon Jan 20, 2014 11:15 am
by Radu
Hi,

I totally agree with you, we should have support to add custom actions to a toolbar also for the Text editing mode.
We have plans to do so in a future version and I will update this thread when it is done.

In the meantime you can select content in the Text mode and right click Refactoring->Surround with Tags to surround certain content in a certain element.
You can also define code templates :

http://www.oxygenxml.com/doc/ug-oxygen/ ... lates.html

which appear as choices when pressing Ctrl-Shift-Space.

A code template allows a number of editor variables to be used inside it like ${caret} or ${selection}.

Or you could implement a plugin (we have a lot of Java-based API) to contribute a custom toolbar to Oxygen. I can give you more details about this approach if you are interested.

Regards,
Radu