How to load custom view in preview ContentPreview iFram

I'm trying to load custom view in preview contennair/iFrame using above ContentPreview dojo digit. however can't get iFram.Load working. Getting Iframe as NULL.

Any Help?


Nov 25, 2016 18:01

Hi Khan, I think you can achive this bye following  epi/shell/widget/Iframe. 

  • Used iframe wiget and load url in widget
  • Then place this new widget into ContentPreview widget

There is example code however you can get ContentPreview node by using data-dojo-attach-point="previewContainer" 

Hope this works


function (declare, dojo, Iframe) {
    return declare([Iframe], {
        baseUrl: null,
        buildRendering: function () {
        onClick: function () {
            this.baseUrl = "";
        updateView: function () {
            var tc = dojo.query('.epi-editorViewport-previewBox')[0];
            this.load(this.baseUrl, null);
  , tc, 'only');


Edited, Nov 26, 2016 11:15
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.