1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

fix turndown

This commit is contained in:
Baptiste Augrain
2018-11-08 10:01:16 +01:00
parent 157eb5f87b
commit 48c29dd7d9

View File

@@ -63,6 +63,8 @@ export default class CodeEditor extends React.Component {
this.formatTable = () => this.handleFormatTable()
this.editorActivityHandler = () => this.handleEditorActivity()
this.turndownService = new TurndownService()
}
handleSearch (msg) {
@@ -550,6 +552,7 @@ export default class CodeEditor extends React.Component {
}
const pastedHtml = clipboardData.getData('text/html')
console.log(pastedHtml)
if (pastedHtml !== '') {
this.handlePasteHtml(e, editor, pastedHtml)
} else if (dataTransferItem.type.match('image')) {