remove local jquery file and update to latest npm version
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
/* globals jQuery */
|
||||
const $ = jQuery;
|
||||
/* globals $ */
|
||||
const atags = document.querySelectorAll('a');
|
||||
Array.prototype.forEach.call(atags, function (aEle) {
|
||||
aEle.addEventListener('click', function (event) {
|
||||
|
||||
@@ -4,9 +4,15 @@ For default config and extensions (and available options) available to
|
||||
`setConfig()`, see the file `docs/tutorials/ConfigOptions.md`
|
||||
*/
|
||||
|
||||
import './jquery.min.js';
|
||||
import jQuery from 'jquery/dist/jquery.slim.js';
|
||||
import jQueryPluginSVG from '../svgcanvas/jQuery.attr.js'; // Needed for SVG attribute
|
||||
import './components/index.js';
|
||||
import './dialogs/index.js';
|
||||
import Editor from './Editor.js';
|
||||
|
||||
// Global Constant
|
||||
window.$ = jQueryPluginSVG(jQuery);
|
||||
|
||||
const svgEditor = new Editor();
|
||||
svgEditor.init();
|
||||
|
||||
|
||||
4
src/editor/jquery.min.js
vendored
4
src/editor/jquery.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user