app/assets/javascripts/pageflow/editor/views/page_preview_view.js in pageflow-0.6.0 vs app/assets/javascripts/pageflow/editor/views/page_preview_view.js in pageflow-0.7.0

- old
+ new

@@ -56,13 +56,16 @@ this.initEmbeddedViews(); }, update: function() { this.$el.removeClass(pageflow.Page.transitions.join(' ')).addClass(this.model.configuration.get('transition')); + this.pageType().update(this.$el, this.model.configuration); _.extend(this.$el.data('configuration'), this.model.configuration.attributes); + this.refreshScroller(); + this.ensureTargetBlankForContentLinks(); }, updateChapterBeginningClass: function() { var chapterBeginning = this.model.get('position') === 0; this.$el.toggleClass('chapter_beginning', chapterBeginning); @@ -76,9 +79,13 @@ return this._unescape($('script[data-template="' + this.model.get('template') + '_page"]').html()); }, refreshScroller: function() { this.$el.page('refreshScroller'); + }, + + ensureTargetBlankForContentLinks: function() { + pageflow.links.ensureTargetBlankForContentLinks(this.el); }, initEmbeddedViews: function() { var view = this;