X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/64023eecd0051c57391e28a989aec4660d891a3b..c62820ef529ff40e46d30aedff2ba870e8e18395:/modules/documentCanvas/canvas/widgets.js diff --git a/modules/documentCanvas/canvas/widgets.js b/modules/documentCanvas/canvas/widgets.js index 570bd0b..033feda 100644 --- a/modules/documentCanvas/canvas/widgets.js +++ b/modules/documentCanvas/canvas/widgets.js @@ -1,6 +1,7 @@ define([ -'libs/jquery-1.9.1.min' -], function($) { +'libs/jquery-1.9.1.min', +'utils/wlxml' +], function($, wlxmlUtils) { 'use strict'; @@ -8,7 +9,7 @@ return { labelWidget: function(tag, klass) { return $('') .addClass('canvas-widget canvas-widget-label') - .text(tag + (klass ? ' / ' + klass : '')); + .text(wlxmlUtils.wlxmlTagNames[tag] + (klass ? ' / ' + wlxmlUtils.wlxmlClassNames[klass] : '')); }, footnoteHandler: function(clickHandler) {