TypeError: Cannot read property of 'QuillDeltaToHtmlConverter' of undefined
alexjustesen opened this issue · 4 comments
alexjustesen commented
Just found this library and trying to implement it into a project. I'm using requireJS to load my js files and I'm getting the following error.
Uncaught TypeError: Cannot read property 'QuillDeltaToHtmlConverter' of undefined at QuillDeltaToHtmlConverter.bundle.js:1178
Here is how I am loading and running the script:
require(['quill-delta-to-html'], function( QuillDeltaToHtmlConverter ) {
// Get quill contents
var delta = JSON.parse( $('input[name=league_description]').val() );
// Log contents delta ops to console
console.log( delta.ops );
console.log( window.opts_ );
// Convert quill ops delta to html
var converter = new QuillDeltaToHtmlConverter( delta.ops, {} );
var html = converter.convert();
// Log html to console
console.log(html);
// Update converted view
document.getElementById('league-description-view').innerHTML = html;
});
Any help would be greatly appreciated, thanks.
nozer commented
Fixed and pushed as v0.9.8
alexjustesen commented
I'll test tonight, thanks for the quick reply.
nozer commented
Welcome
alexjustesen commented
Looks like that addressed the undefined type error, there is a constructor error that I'll create a separate ticket for.