From b66ba656f9429fef3102aa882fe30331c125e3cf Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sun, 11 Oct 2020 20:03:00 +0200 Subject: [PATCH] Add `parse:css` event --- src/parser/model/ParserCss.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/model/ParserCss.js b/src/parser/model/ParserCss.js index 0d91d2e2f..4a4f195ea 100644 --- a/src/parser/model/ParserCss.js +++ b/src/parser/model/ParserCss.js @@ -16,6 +16,7 @@ export default (config = {}) => ({ const editor = em && em.get && em.get('Editor'); const nodes = parserCss ? parserCss(str, editor) : BrowserCssParser(str); nodes.forEach(node => (result = result.concat(this.checkNode(node)))); + em && em.trigger('parse:css', { input: str, output: result }); return result; },