var AdminBlockTypeParserController = function(params) { this.init(params); }; AdminBlockTypeParserController.prototype = { container: 'block_type_parser', authenticity_token: false, //original_html: "
\n
\n
\n
\n

Beautiful content. Responsive.

\n

Lorem Ipsum is simply dummy text.

\n
\n Read More\n
\n
\n
\n
\n \n
\n
\n
\n", //original_html: "
\n
\n
\n

Lorem Ipsum

\n
\n
\n
\n", //original_html: "" + // "
\n" + // "
\n" + // "
\n" + // "
\n" + // "

Beautiful content. Responsive.

\n" + // "

Lorem Ipsum is simply dummy text.

\n" + // "
\n" + // " Read More\n" + // "
\n" + // "
\n" + // "
\n" + // "
\n" + // " \n" + // "
\n" + // "
\n" + // "
\n", original_html: "", parsable_tags: { heading: 'Headings' , richtext: 'Rich Text' , img: 'Images' , link: 'Links' }, tags_to_parse: { heading: true , richtext: true , img: true , link: true }, render_function: false, children: false, init: function(params) { var that = this; for (var i in params) this[i] = params[i]; that.print_step1(); }, print_step1: function() { var that = this; var tr = $(''); var all_checked = true; $.each(that.parsable_tags, function(tag, name) { if (!that.tags_to_parse[tag]) { all_checked = false; return false; }}); tr.append($('').append($('').attr('type', 'checkbox').attr('id', 'all').prop('checked', all_checked).click(function() { var checked = $(this).is(':checked'); $.each(that.parsable_tags, function(tag, name) { $('#'+tag).prop('checked', checked); }); }))) .append($('').append($('