neyre / sir-trevor-wp

An intuitive, block-based content editor for Wordpress.
http://wordpress.org/plugins/sir-trevor-wp/
14 stars 7 forks source link

When code block loads the caption is missing #3

Closed bobbyzholmes closed 9 years ago

bobbyzholmes commented 10 years ago

The following code doesn't load the caption in the code block

loadData: function(data){
        this.getTextBlock().html(SirTrevor.toHTML(data.text, this.type));
    }

I fixed the issue with the following

loadData: function(data){
        this.getTextBlock().html(SirTrevor.toHTML(data.text, this.type));
        this.$('.js-caption-input').val(data.caption);
    }
neyre commented 9 years ago

Thank you. Fixed in b8a1902

mcshanea commented 9 years ago

Many thanks @bobbyzholmes (and @neyre) ...we were missing using this plugin over on tech.eu!