Search found 17 matches

by pramanikhimangshu
Thu Mar 22, 2018 1:09 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Finding a particular attribute of tags within the document
Replies: 1
Views: 1110

Finding a particular attribute of tags within the document

Hello,

I need to find the tags with ID element similar to : topic15409.html

I need to do this using java api.
Any one please guide me with this.

Thanks and Regards,
Himangshu
by pramanikhimangshu
Wed Feb 07, 2018 7:42 am
Forum: SDK-API, Frameworks - Document Types
Topic: Change custom action name depending on some event
Replies: 1
Views: 1215

Change custom action name depending on some event

Hi, I have a custom action dita framework to create a link and it modifies the link if selection is already link. I want to change the display name of the action in context menu. In normal case it will display "Link..." and when the selection is already a link it should display "Modify Link..." in t...
by pramanikhimangshu
Thu Feb 01, 2018 8:44 am
Forum: SDK-API, Frameworks - Document Types
Topic: Calling a Java class from javascript framework
Replies: 1
Views: 1274

Calling a Java class from javascript framework

Hi, I have this java class: ro.sync.ecss.extensions.dita.topic.table.InsertTableOperation doOperation signature of the java class:: doOperation(AuthorAccess paramAuthorAccess, ArgumentsMap paramArgumentsMap) The arguementmap has a argument Object localObject1 = paramArgumentsMap.getArgumentValue("ce...
by pramanikhimangshu
Tue Jan 30, 2018 3:41 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Use of Jquery in framework.js
Replies: 2
Views: 1486

Re: Use of Jquery in framework.js

Hi Gabriel Titerlea, Thank you for the reply. I want to resize the html table column size according to user preference inside the dialog box and not the full dialog. So if I want to include jQuery or other plugin js files to use in framework.js file, so that I can customize individual html content. ...
by pramanikhimangshu
Tue Jan 30, 2018 8:38 am
Forum: SDK-API, Frameworks - Document Types
Topic: Use of Jquery in framework.js
Replies: 2
Views: 1486

Use of Jquery in framework.js

Hello,

I need to create a dialog-box with resize-able html table in oXygen Web Author.
To do this what shall I do, If I can use jquery then how shall I include the jquery js file in framework.js?
Or there is any better alternative to do this, kindly guide me.

Thank you.
Regards,
Himangshu.
by pramanikhimangshu
Tue Jan 23, 2018 11:12 am
Forum: SDK-API, Frameworks - Document Types
Topic: Insert Icon to custom framework action
Replies: 1
Views: 1296

Insert Icon to custom framework action

Hello,

I created a custom framework action and added it to DITA toolbar and context-menu.
Please guide me how to add an icon to the action.

Thank You.
Regards,
Himangshu.
by pramanikhimangshu
Mon Jan 22, 2018 9:07 am
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Re: Creating a custom Dialog for Link

Hi, Thank you for the reply it was helpful. I want to know two more things: 1> Can we use the blue notification box that web author shows during logging in our custom framework using JS-API, if we can can you please tell process, so that displaying user message/notification stay aligned to web autho...
by pramanikhimangshu
Fri Jan 19, 2018 1:28 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Re: Creating a custom Dialog for Link

HI Thank you for the previous reply to stop the default propagation. I want to use the authoraccess variable in JS. In documentation it is stated : It must have a function called doOperation() I tried to put a doOperation function in the framework.js file, but I cannot access the authoraccess. Coul...
by pramanikhimangshu
Fri Jan 19, 2018 12:52 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Re: Creating a custom Dialog for Link

Hi, 1> Please see our questions and answers about this in the "Finding a particular attribute of tags within the document" topic. From what I understand, it has the same subject. 2> You can call the preventDefault function on the event: e.preventDefault(); Best regards, Mihaela function buttonClick...
by pramanikhimangshu
Fri Jan 19, 2018 9:35 am
Forum: SDK-API, Frameworks - Document Types
Topic: Finding a particular attribute of tags within the document
Replies: 5
Views: 2113

Re: Finding a particular attribute of tags within the document

Hi, I am trying to create internal content linking in the Dita Document. To link a internal content, I need to display all the elements having ID attribute to the user to select which element to use and create a link of that element in the currently selected text. This is the use-case: A example doc...
by pramanikhimangshu
Fri Jan 19, 2018 7:48 am
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Re: Creating a custom Dialog for Link

HI Thank you for the previous reply to stop the default propagation. I want to use the authoraccess variable in JS. In documentation it is stated : It must have a function called doOperation() I tried to put a doOperation function in the framework.js file, but I cannot access the authoraccess. Could...
by pramanikhimangshu
Thu Jan 18, 2018 12:29 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Finding a particular attribute of tags within the document
Replies: 5
Views: 2113

Re: Finding a particular attribute of tags within the document

HI Mihaela, I am trying to customize the dita framework. I am trying to get the dita tags(sync.api.dom.Element) which has a particular attribute in whole dita document. Eg: If I want to get all the Dita tags which are links. So I would like to search for href attribute in all the tags and whichever ...
by pramanikhimangshu
Wed Jan 17, 2018 9:16 am
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Re: Creating a custom Dialog for Link

Hello, Thank you very much for the help, now I can change the attributes of the existing links. :D 1>I would like to ask is there any JS-Api methods to check for a particular kind of an attribute from all the tags present in the document i.e I need to find all the ELEMENTS from the dita document whi...
by pramanikhimangshu
Tue Jan 16, 2018 5:13 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Finding a particular attribute of tags within the document
Replies: 5
Views: 2113

Finding a particular attribute of tags within the document

Hi, I need to find a particular type of attribute from the any xml tags of dita document in Oxygen Web Author. I tried doing it by JSAPI modifying framework.js: function printAllAttrVals(rootNode) { if(rootNode == null || rootNode == undefined || rootNode.id == undefined) return; console.log(rootNod...
by pramanikhimangshu
Mon Jan 15, 2018 10:41 am
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Re: Creating a custom Dialog for Link

Hi Michael, Thank you for the quick reply and it was very helpful. I am currently working on the customization of external links in oxygen web author. I currently used sync.api.dom.Element to get the href of selection element is already a link or not, but if it is a link then I should change the exi...
by pramanikhimangshu
Fri Jan 12, 2018 10:04 am
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Re: Creating a custom Dialog for Link

Hi Michael,

Thank you for your quick reply it worked and I can handle the button clicks for the particular dialog.
One more question is where to add the css file specific to that dialog box html content?

Thank you.
Regards,
Himangshu
by pramanikhimangshu
Thu Jan 11, 2018 9:24 am
Forum: SDK-API, Frameworks - Document Types
Topic: Creating a custom Dialog for Link
Replies: 14
Views: 3748

Creating a custom Dialog for Link

Hello, I am new to the JS api provided to customize Frameworks in Web Author. As demonstrated in the example of customizing DITA framework by writing custom code using Oxygen JS api in framework.js I could implement the code for attaching the external link. The current implementation uses : var text...