From af38ca1a85f94669fc53e8dad43f1d703fdfeb78 Mon Sep 17 00:00:00 2001 From: jocs Date: Thu, 27 Sep 2018 21:35:50 +0800 Subject: [PATCH] fix(#450) style error when render inline math --- src/muya/lib/assets/styles/index.css | 2 +- src/muya/lib/contentState/pasteCtrl.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/muya/lib/assets/styles/index.css b/src/muya/lib/assets/styles/index.css index 8876f5de..f8c92c47 100644 --- a/src/muya/lib/assets/styles/index.css +++ b/src/muya/lib/assets/styles/index.css @@ -156,7 +156,7 @@ span.ag-math { padding: .5rem; border-radius: 4px; position: absolute; - top: 30px; + top: 100%; left: 0; z-index: 10; } diff --git a/src/muya/lib/contentState/pasteCtrl.js b/src/muya/lib/contentState/pasteCtrl.js index afa0454d..7d5468d4 100644 --- a/src/muya/lib/contentState/pasteCtrl.js +++ b/src/muya/lib/contentState/pasteCtrl.js @@ -76,8 +76,8 @@ const pasteCtrl = ContentState => { const text = event.clipboardData.getData('text/plain') let html = event.clipboardData.getData('text/html') html = this.standardizeHTML(html) - console.log(text) - console.log(html) + // console.log(text) + // console.log(html) const copyType = this.checkCopyType(html, text) const { start, end } = this.cursor const startBlock = this.getBlock(start.key)