fix editor start with src and dist using es-dev-server
This commit is contained in:
13
dist/editor/extensions/ext-polygon.js
vendored
13
dist/editor/extensions/ext-polygon.js
vendored
@@ -1646,8 +1646,13 @@ function _wrapRegExp(re, groups) {
|
||||
return _wrapRegExp.apply(this, arguments);
|
||||
}
|
||||
|
||||
var polygonIcons = "polygon-icons.svg";
|
||||
|
||||
/**
|
||||
* @file ext-polygon.js
|
||||
*
|
||||
*
|
||||
* @copyright 2010 CloudCanvas, Inc. All rights reserved
|
||||
*
|
||||
*/
|
||||
var extPolygon = {
|
||||
name: 'polygon',
|
||||
init: function init(S) {
|
||||
@@ -1738,7 +1743,7 @@ var extPolygon = {
|
||||
*/
|
||||
buttons = [{
|
||||
id: 'tool_polygon',
|
||||
icon: svgEditor.curConfig.extIconsPath + 'polygon.png',
|
||||
icon: 'polygon.png',
|
||||
type: 'mode',
|
||||
position: 11,
|
||||
events: {
|
||||
@@ -1762,7 +1767,7 @@ var extPolygon = {
|
||||
}];
|
||||
return _context.abrupt("return", {
|
||||
name: strings.name,
|
||||
svgicons: svgEditor.curConfig.extIconsPath + 'polygon-icons.svg',
|
||||
svgicons: 'polygon-icons.svg',
|
||||
buttons: strings.buttons.map(function (button, i) {
|
||||
return Object.assign(buttons[i], button);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user