Skip to content

Commit

Permalink
fix turndown
Browse files Browse the repository at this point in the history
  • Loading branch information
daiyam committed Nov 8, 2018
1 parent 157eb5f commit 48c29dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser/components/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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')) {
Expand Down

0 comments on commit 48c29dd

Please sign in to comment.