trying to create a plugin oI see no way to do so. #170
-
BUG If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 30 replies
-
Do you read this documentation Creating plugin is not the easiest task, but it's documented rather good |
Beta Was this translation helpful? Give feedback.
-
@ungentilgarcon hello! To answer your questions
Based on the above, I can offer to implement a macro that overwrites data from the active cell.
(function()
{
//...code implemented here https://jsbin.com/qesiwelesa/edit?html,js,output
var oWorksheet = Api.GetActiveSheet();
var oActiveCell = oWorksheet.GetActiveCell();
oActiveCell.SetValue(removeDiacritics(oActiveCell.GetValue()));
})(); The next step is to realize the following non-visual plugin config.json parameter https://api.onlyoffice.com/plugin/config#isVisual You can imagine using this plugin step by step in the following way: 1.Activate the cell Result: Plugin using the method https://api.onlyoffice.com/plugin/callcommand |
Beta Was this translation helpful? Give feedback.
-
@ungentilgarcon you can use GetActiveCell for get active cell in a worksheet. You can use GetFillColor for get background color of cell. |
Beta Was this translation helpful? Give feedback.
@ungentilgarcon you can use GetActiveCell for get active cell in a worksheet. You can use GetFillColor for get background color of cell.
Also we added a lot of samples. Thanks