Sample Blog Post

Testing the Full Ember App Embed Mode

Welcome to Our Blog

This is a sample blog post to test the new Discourse full app embed mode. Unlike the traditional embed which shows a simplified view, the full app mode renders the complete Discourse Ember application inside the iframe.

With full app mode enabled, users can:

Configuration

To enable full app mode, add this snippet to your page:

window.DiscourseEmbed = {
  // Your Discourse forum URL (must end with /)
  discourseUrl: 'https://your-forum.example.com/',

  // URL of the page embedding comments (must be in embed settings)
  discourseEmbedUrl: window.location.href,

  // Enable full Ember app mode
  fullApp: true,

  // Optional: customize iframe height (default: 600px)
  embedHeight: '700px',
};

(function() {
  var d = document.createElement('script');
  d.type = 'text/javascript';
  d.async = true;
  d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
  (document.getElementsByTagName('head')[0] ||
   document.getElementsByTagName('body')[0]).appendChild(d);
})();

Comments