diff --git a/src/editor/index.js b/src/editor/index.js index e617318ed..614d1abde 100644 --- a/src/editor/index.js +++ b/src/editor/index.js @@ -231,10 +231,12 @@ export default (config = {}) => { /** * Returns JS of all components + * @param {Object} [opts={}] Options + * @param {Component} [opts.component] Get the JS of a particular component * @returns {string} JS string */ - getJs() { - return em.getJs(); + getJs(opts) { + return em.getJs(opts); }, /**