About Quill plug-in

About Quill plug-in

IT CMSIT CMS Posts: 13Questions: 2Answers: 0

Hi,
I want to suggest a new comment for the Quill plug-in (can't post it my self : POST 403 Forbidden).
Here the comment :
If you want to render and save html, you should replace

    get: function ( conf ) {
        return conf._quill.getText();
    },
  
    set: function ( conf, val ) {
        conf._quill.setText( val !== null ? val : '' );
    },

by

    get: function ( conf ) {
        return conf._quill.root.innerHTML;
    },
 
    set: function ( conf, val ) {
        conf._quill.root.innerHTML = val !== null ? val : '';
    },

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,793Questions: 1Answers: 10,945 Site admin
    Answer ✓

    Hi,

    Thank you for sharing this! I'll add a note into the plugin page, or possibly add a configuration option for it now that I think it over a bit. The plugins are all due for a bit of a tidy up!

    Allan

Sign In or Register to comment.