Search found 95 matches

by SmitaPatil
Thu Dec 01, 2022 3:14 pm
Forum: Common Problems
Topic: How to dynamically call register action
Replies: 5
Views: 830

Re: How to dynamically call register action

Hi Bogdan,
just wanted to know if there is any callback or something available when dialog get disposed after clicking on X i.e close icon.
I am using workspace.createDialog() method.

Thanks,
Smita
by SmitaPatil
Thu Dec 01, 2022 12:29 pm
Forum: Common Problems
Topic: How to dynamically call register action
Replies: 5
Views: 830

Re: How to dynamically call register action

Hi Bogdan, Actually following event listener will call every time when user will make changes even if it is in register action or not. goog.events.listen(workspace, sync.api.Workspace.EventType.EDITOR_LOADED, function(e) { var editor = e.editor; var selectionModel = editor.getSelectionManager(); var...
by SmitaPatil
Thu Dec 01, 2022 12:14 pm
Forum: Common Problems
Topic: How to dynamically call register action
Replies: 5
Views: 830

Re: How to dynamically call register action

Hi Bogdan,
I can't go with the first option.
and for second, I will try it.
Thank you

Thanks,
Smita
by SmitaPatil
Thu Dec 01, 2022 11:04 am
Forum: Common Problems
Topic: How to dynamically call register action
Replies: 5
Views: 830

How to dynamically call register action

Hi Team, I have created on action and registered it using registerAction(id, action, shortcutopt) on click of one button. After clicking on button we are showing popup which has list of valid element which can be inserted where cursor is present. for creating popup , I am using workspace.createDialo...
by SmitaPatil
Thu Dec 01, 2022 10:52 am
Forum: Common Problems
Topic: Regarding comparing xml
Replies: 8
Views: 866

Re: Regarding comparing xml

Hi,
Its Resolved.
Thanks,
Smita
by SmitaPatil
Wed Nov 30, 2022 8:55 pm
Forum: Common Problems
Topic: Regarding comparing xml
Replies: 8
Views: 866

Re: Regarding comparing xml

Hi Bogdan,
Already tried not working, diff.css is loading later directly from plugin and as it has important.
Unable to change. working on it trying to find workaround.

thanks,
Smita
by SmitaPatil
Wed Nov 30, 2022 6:23 pm
Forum: Common Problems
Topic: Regarding comparing xml
Replies: 8
Views: 866

Re: Regarding comparing xml

Hi Team,

I have tried to override the background color for highlighted change but as it is already !important in diff.style.
I am not able to override it. can you please suggest something on it to override the style which present in diff.style.
image.png
image.png (8.83 KiB) Viewed 814 times
Thanks,
Smita
by SmitaPatil
Wed Nov 30, 2022 1:15 pm
Forum: Common Problems
Topic: How can we get previous and next sibling nodes
Replies: 1
Views: 453

How can we get previous and next sibling nodes

Hi Team, Can you please tell how can we get previous and next sibling of current selected node? We you see in below screenshot we have some nodes in document, suppose currently we have access to node which has content pub target . Can we get the next sibling node(which has content abc) and previous ...
by SmitaPatil
Wed Nov 30, 2022 12:44 pm
Forum: Common Problems
Topic: Regarding comparing xml
Replies: 8
Views: 866

Re: Regarding comparing xml

Hi Bogdan, Apology for miscommunication. I could able to resolve it, By the way, this topic reminds me of another topic, Highlight the differences. Did you manage to try the plugin I sent there? If yes, was there something wrong with the plugin or you simply wanted something else? Ans : the previous...
by SmitaPatil
Tue Nov 29, 2022 9:20 am
Forum: Common Problems
Topic: Regarding comparing xml
Replies: 8
Views: 866

Regarding comparing xml

Hi Team, I am using diffUrl parameter for comparing two xml, We made changes as <paratext level=1> changed to <paratext> but we are going to that change using next change arrow button, the change in focus is the <paratext level=1> that was changed to <paratext>. The yellow color on “1” is the text h...
by SmitaPatil
Wed Nov 23, 2022 8:05 am
Forum: Common Problems
Topic: Functions related to table
Replies: 11
Views: 1405

Functions related to table

Hi Team, Can you please tell if there is any methods available in oxygen web author to get data from table eg. if we need data from last column of selected table. which will help to do some more functionalities(span cells, unspan cells, selecting column content) related to table. Can you please let ...
by SmitaPatil
Fri Nov 18, 2022 8:41 am
Forum: Common Problems
Topic: How we can add schemaAware as true while unwrapping element
Replies: 1
Views: 422

How we can add schemaAware as true while unwrapping element

Hi Team. I am using below function for unwrapping selected element or tag. this.editor.getActionsManager().invokeOperation('ro.sync.ecss.extensions.commons.operations.UnwrapTagsOperation',{}) But, even if it document will be invalid after unwrapping in such case also its unwrapping. Can you please t...
by SmitaPatil
Mon Nov 14, 2022 8:03 am
Forum: Common Problems
Topic: xmlns attribute is getting added
Replies: 3
Views: 567

Re: xmlns attribute is getting added

Hi Bogdan,
Actually I just want to add tag in document.
for example in below case its a <bold></bold>
not a document.
Can you suggest any method or class which I can call to insert a tag or element in document.

Thanks & Regards,
Smita
by SmitaPatil
Fri Nov 11, 2022 12:56 pm
Forum: Common Problems
Topic: xmlns attribute is getting added
Replies: 3
Views: 567

xmlns attribute is getting added

Hi Team, I am using below InsertFragmentOperation class to insert tag into document. this.editor.getActionsManager(); actionManager.invokeOperation('ro.sync.ecss.extensions.commons.operations.InsertFragmentOperation', { fragment:fragmentToInsert //schemaAware :true }, Tag is getting added but xmlns ...
by SmitaPatil
Wed Nov 09, 2022 1:37 pm
Forum: Common Problems
Topic: What is the functionality of this arrow
Replies: 1
Views: 403

What is the functionality of this arrow

Hi Team,
I have used diffUrl parameter for comparing two xml and I can see below two arrow saying Next block of change and previous block of changes
image.png
image.png (22.59 KiB) Viewed 403 times
Can you please explain the functionality of these two arrows?

Thanks & Regards,
Smita
by SmitaPatil
Wed Nov 09, 2022 10:28 am
Forum: Common Problems
Topic: How to stop oxygen from making decision of inserting tag or text
Replies: 4
Views: 575

Re: How to stop oxygen from making decision of inserting tag or text

Hi Bogdan,
Issue is resolved.
Thank you so much !!
by SmitaPatil
Fri Nov 04, 2022 8:01 am
Forum: Common Problems
Topic: How to stop oxygen from making decision of inserting tag or text
Replies: 4
Views: 575

Re: How to stop oxygen from making decision of inserting tag or text

Hi, I have already verified whether its issue regarding caret offset but no. Before deleting node caretoffset is as shown below image.png and After deleting node acret offset is as shown below image.png Code I am using to implement it is as follows : int caretOffset = authorAccess.getEditorAccess()....
by SmitaPatil
Thu Nov 03, 2022 4:47 pm
Forum: Common Problems
Topic: How to stop oxygen from making decision of inserting tag or text
Replies: 4
Views: 575

How to stop oxygen from making decision of inserting tag or text

Hi Team, I am trying unwrap comment (I am deleting element completely nd then inserting just content of comment) here which is present in below screenshot. image.png after deleting I want insert text to be at that caret position only and for that I am using below method AuthorDocumentController.inse...
by SmitaPatil
Thu Nov 03, 2022 10:43 am
Forum: Common Problems
Topic: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.
Replies: 7
Views: 864

Re: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.

Hi Cristian, I have tried using this method, in case of invalid deletion of tag, but in case of valid unwrap also it is returning false. public boolean handleDeleteElementTags(AuthorNode nodeToUnwrap, AuthorAccess authorAccess) throws InvalidEditException is this method will only work user use keybo...
by SmitaPatil
Wed Nov 02, 2022 4:42 pm
Forum: Common Problems
Topic: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.
Replies: 7
Views: 864

Re: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.

Hi Cristian, its not exactly deleting element its about deleting just tag not content inside it. in below screenshot you can see venue.name inside content.venue element. image.png if suppose user is just removing tag i.e unwrapping venue.name then we will have content as shown below which is not val...
by SmitaPatil
Wed Nov 02, 2022 3:34 pm
Forum: Common Problems
Topic: how we can make oxygen to give error when user is trying to make changes which will cause validation issue.
Replies: 7
Views: 864

how we can make oxygen to give error when user is trying to make changes which will cause validation issue.

Hi Team,
I have one scenario where suppose if user is trying to delete only the tag and if deletion of tag will cause document to be invalid then oxygen should throw error while deleting the tags.
Can you please tell if we have something in oxygen to handle this scenario?

Thanks & Regards,
Smita
by SmitaPatil
Wed Nov 02, 2022 1:11 pm
Forum: Common Problems
Topic: Validate document
Replies: 5
Views: 666

Re: Validate document

Hi Cristian,
I wonder how we can access authorDocumentModel at javascript side or client side.
Can you please tell me how we can access authorDocumentModel at js side. I want to call this method using js.

Thanks & Regards,
Smita
by SmitaPatil
Wed Nov 02, 2022 12:48 pm
Forum: Common Problems
Topic: Can we get element name where cursor is placed
Replies: 9
Views: 959

Re: Can we get element name where cursor is placed

Hi Cristian,
Thank you.
I tried unwrapping <#comment> element but its not working.
Can you please tell how we can just remove comment tag and just keep the text which is present inside comment.

Thanks & Regards,
Smita
by SmitaPatil
Wed Nov 02, 2022 12:01 pm
Forum: Common Problems
Topic: Validate document
Replies: 5
Views: 666

Re: Validate document

Hi Cristian,
Suppose user has removed the tag in that case, after this change if document is not valid I can see red lines in the document.
can you tell which api we can use to check whether current document is valid or not based on schema.

Thanks & Regards,
Smitz
by SmitaPatil
Wed Nov 02, 2022 11:43 am
Forum: Common Problems
Topic: Can we get element name where cursor is placed
Replies: 9
Views: 959

Re: Can we get element name where cursor is placed

Hi Cristian,
Thank you.
Can you tell me how we can differentiate between other elements or tag and comment tag.
just wanted to know if there any method to get to know whether element is comment or not where cursor has placed.

Thanks & Regards,
Smita
by SmitaPatil
Mon Oct 31, 2022 2:34 pm
Forum: Common Problems
Topic: Unnecessary differences are showing while comparing
Replies: 1
Views: 398

Unnecessary differences are showing while comparing

Hi Team, I am using diffUrl parameter to compare two xmls but I observed one thing that while comparing even if there no change in tag not even change of space but still difference is getting added. please see below screenshot. image.png Can you please check and let me know how we can ignore this di...
by SmitaPatil
Mon Oct 31, 2022 1:00 pm
Forum: Common Problems
Topic: Can we get element name where cursor is placed
Replies: 9
Views: 959

Re: Can we get element name where cursor is placed

Hi Cristian,
I want to check whether that node can have a child "xyz"?

Thanks & Regards,
Smita
by SmitaPatil
Mon Oct 31, 2022 11:09 am
Forum: Common Problems
Topic: Can we get element name where cursor is placed
Replies: 9
Views: 959

Re: Can we get element name where cursor is placed

Hi Cristian,
Thank you so much!!.
just one more question, can you please tell the method for just checking if the given element has child element with some "xyz" name.

Thanks & Regards,
Smita
by SmitaPatil
Mon Oct 31, 2022 10:27 am
Forum: Common Problems
Topic: Validate document
Replies: 5
Views: 666

Validate document

Hi Team,
Can you please tell me if there is any method using which we can validate the content at selected caret position in document.

Thanks & Regards,
Smita