Files
17168ERP/web/admin/ckeditor/plugins/googlemap/plugin.js
2025-08-29 01:27:25 +08:00

14 lines
441 B
JavaScript

CKEDITOR.plugins.add( 'googlemap', {
icons: 'googlemap',
init: function( editor ) {
editor.addCommand( 'googlemapDialog', new CKEDITOR.dialogCommand( 'googlemapDialog' ) );
editor.ui.addButton( 'googlemap', {
label: 'GoogleMap',
command: 'googlemapDialog',
toolbar: 'paragraph'
});
CKEDITOR.dialog.add( 'googlemapDialog', this.path + 'dialogs/map.js' );
}
});