From a250556c669c7d20e17ab1adba27eef0acdd9a93 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Mon, 21 Jun 2021 09:01:58 +0200 Subject: [PATCH] Pass options to editor.getJs method --- src/editor/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }, /**