Search found 21 matches

by nstensland
Mon May 13, 2019 11:43 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Editing DTD declaration
Replies: 2
Views: 1696

Re: Editing DTD declaration

Thanks!
by nstensland
Mon May 13, 2019 9:07 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Save from javawcript
Replies: 1
Views: 1378

Save from javawcript

How do I initiate an immediate save from frameworks.js? I tried using "access.getWorkspaceAccess().saveAll()" via framework invocation but I get not supported error.
by nstensland
Thu May 09, 2019 7:54 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Editing DTD declaration
Replies: 2
Views: 1696

Editing DTD declaration

Is it possible to edit the DTD declaration using oXygen API, to insert or remove an ENTITY declaration? I can do this by loading the xml from disk and then replacing the using "access.getEditorAccess().reloadContent(newStringReader, true);" but this is unreliable (causing random unparsed e...
by nstensland
Thu Apr 25, 2019 1:46 am
Forum: SDK-API, Frameworks - Document Types
Topic: Response from invokeOperation
Replies: 1
Views: 1390

Response from invokeOperation

Is there a way to get a parameter back from the result of an
"editor.getActionsManager().invokeOperation('com.classname'', {parameter: value}, callback)"
call?

Similar to a function returning a result. Need to know the result of the invoke operation.

Thanks again,
Nat
by nstensland
Wed Apr 24, 2019 5:41 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Add selection event listener
Replies: 5
Views: 3145

Re: Add selection event listener

Is there a way to scroll to a selection? scrollManager.scrollTo(SelectionFromGetSelection)?
by nstensland
Wed Apr 24, 2019 5:32 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Add selection event listener
Replies: 5
Views: 3145

Re: Add selection event listener

In this simple example

var currentSelection = selectionModel.getSelection();
selectionModel.setSelection(currentSelection);

It seems to work but results in this error in console:

nIndex is not defined
at <anonymous>:577:74

Should this work without an error?
by nstensland
Tue Apr 23, 2019 5:17 am
Forum: SDK-API, Frameworks - Document Types
Topic: Add selection event listener
Replies: 5
Views: 3145

Add selection event listener

Can you provide example code ( or link to documentation of how to) add a custom Selection event listener on the javascript client side (framework.js)? We would like to capture the selection range and re-selection the range at a later time.

Thanks,
Nat
by nstensland
Tue Feb 19, 2019 5:49 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Check read only from framework.js
Replies: 1
Views: 1411

Check read only from framework.js

Is there a way to determine at oxygen document has loaded event, if the document is read only? Looking to do this from a framework.js file on client side.

Thanks,
Nat
by nstensland
Wed Feb 13, 2019 5:32 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Right Click Actions
Replies: 10
Views: 4698

Re: Right Click Actions

This is an internal copy/paste. What is the 'action id' of cut, copy and paste built in commands in the contextual menu? Trying to replace it or remove without success.
by nstensland
Wed Feb 13, 2019 5:31 pm
Forum: Common Problems
Topic: WebDAV locks and unlocks
Replies: 4
Views: 2172

Re: WebDAV locks and unlocks

I will look at the PROPFIND response from our server. Sounds like something is not compatible.

Thanks again.
by nstensland
Sun Feb 10, 2019 1:15 am
Forum: SDK-API, Frameworks - Document Types
Topic: Right Click Actions
Replies: 10
Views: 4698

Re: Right Click Actions

Is there a way to override the copy,cut and paste commands using frameworks.js client side browser approach?

Thanks again!
Nat
by nstensland
Sat Feb 09, 2019 12:41 am
Forum: SDK-API, Frameworks - Document Types
Topic: Right Click Actions
Replies: 10
Views: 4698

Re: Right Click Actions

Sorry yes, pasted the wrong thing. Action I meant. Thanks.
by nstensland
Fri Feb 08, 2019 5:40 pm
Forum: Common Problems
Topic: WebDAV locks and unlocks
Replies: 4
Views: 2172

Re: WebDAV locks and unlocks

I can see it's not sending UNLOCK ever. Could you give me some idea of when you expect Oxygen will send a UNLOCK? What triggers an UNLOCK?

Thanks again!
Nat
by nstensland
Fri Feb 08, 2019 5:31 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Right Click Actions
Replies: 10
Views: 4698

Re: Right Click Actions

Thanks. Seems to work using contextualItems!

Quick follow up: sync.api.Workspace.EventType.EDITOR_LOADED, why does this get called 3 times when a page loads? First two times toolbar is null. Not sure from documentation what EDITOR_LOADED means exactly I guess.

Thanks again,
Nat
by nstensland
Mon Feb 04, 2019 3:47 am
Forum: SDK-API, Frameworks - Document Types
Topic: Right Click Actions
Replies: 10
Views: 4698

Re: Right Click Actions

I meant javascript running in the client browser. We are using Oxygen Web Author. We are integration via a html Frame. Is there a list of what the differences is between Oxygen stand alone and Web Author. It seems there are differences and some items which are not available in Web Author? Can I add ...
by nstensland
Fri Feb 01, 2019 7:10 pm
Forum: Feature Request
Topic: Change text of read only message.
Replies: 4
Views: 2925

Re: Change text of read only message.

That worked great. Any way to suppress the dialog box which popups (not the yellow strip) or to change the message?

Thanks again!

-Nat
by nstensland
Thu Jan 31, 2019 6:29 pm
Forum: Feature Request
Topic: Change text of read only message.
Replies: 4
Views: 2925

Change text of read only message.

Is there a way to change the text of "Someone else is currently editing this file and thus, it was opened as read-only." Sometimes this is misleading in our system because some files are just read only (never editable). We use HTTP 423 to communicate this. Is there a better way to make som...
by nstensland
Wed Jan 30, 2019 7:34 pm
Forum: Common Problems
Topic: WebDAV locks and unlocks
Replies: 4
Views: 2172

WebDAV locks and unlocks

We are hooking Oxygen up to our WebDAV server. We require using WebDAV locks to avoid concurrency issues. It is mostly working but Oxygen is not releasing locks. I never see a UNLOCK method via http. When will oxygen release the lock? Also the locks seemed to be tied to sessions, if a user has two w...
by nstensland
Wed Jan 30, 2019 7:07 pm
Forum: Feature Request
Topic: Left justify toolbar
Replies: 2
Views: 1923

Re: Left justify toolbar

That worked. Thanks!
by nstensland
Fri Jan 25, 2019 1:17 am
Forum: Feature Request
Topic: Left justify toolbar
Replies: 2
Views: 1923

Left justify toolbar

Is is possible to left justify (left align) toolbar in oxygen web author? Client would like prefer it this way to match their interface.

Thanks,
Nat
by nstensland
Wed Jan 16, 2019 5:26 am
Forum: SDK-API, Frameworks - Document Types
Topic: Right Click Actions
Replies: 10
Views: 4698

Right Click Actions

Is it possible to register a command via JavaScript API into the right click menu? I was able to register it into the toolbar but cannot find a way to register into the right click menu. I understand that it is possible via framework, am wondering if it is possible via JavaScript API.

Thanks,
Nat