Skip to content

Commit

Permalink
Update raw html processing
Browse files Browse the repository at this point in the history
  • Loading branch information
crabbly committed May 25, 2019
1 parent 37628cb commit eae6b27
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/js/raw-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ import Print from './print'

export default {
print: (params, printFrame) => {
// Store html data
params.htmlData = addWrapper(params.printable, params)
// Create printable element (container)
params.printableElement = document.createElement('div')
params.printableElement.setAttribute('style', 'width:100%')

// Set our raw html as the printable element inner html content
params.printableElement.innerHTML = params.printable

// Print html contents
Print.send(params, printFrame)
Expand Down

0 comments on commit eae6b27

Please sign in to comment.