drawio/war/plugins/text.js
Gaudenz Alder bafe685031 6.0.2.11 release
Former-commit-id: 19cd5d623f
2017-01-18 08:58:48 +01:00

24 lines
479 B
JavaScript

/**
* Explore plugin.
*/
Draw.loadPlugin(function(ui)
{
// Adds resource for action
mxResources.parse('extractText=Extract Text...');
// Adds action
ui.actions.addAction('extractText', function()
{
mxUtils.popup(ui.editor.graph.getIndexableText());
});
var menu = ui.menus.get('extras');
var oldFunct = menu.funct;
menu.funct = function(menu, parent)
{
oldFunct.apply(this, arguments);
ui.menus.addMenuItems(menu, ['-', 'extractText'], parent);
};
});