Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
Hi Khan, I think you can achive this bye following epi/shell/widget/Iframe.
There is example code however you can get ContentPreview node by using data-dojo-attach-point="previewContainer"
Hope this works
/asimz
define([ 'dojo/_base/declare', 'dojo', 'epi/shell/widget/Iframe' ], function (declare, dojo, Iframe) { return declare([Iframe], { baseUrl: null, buildRendering: function () { this.inherited(arguments); }, onClick: function () { this.baseUrl = "http://world.episerver.com/"; this.updateView() }, updateView: function () { var tc = dojo.query('.epi-editorViewport-previewBox')[0]; this.load(this.baseUrl, null); dojo.place(this.iframe, tc, 'only'); } }); });
http://world.episerver.com/documentation/JavaScript-Library/?documentId=CMS/10/epi-cms/contentediting/ContentPreview
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?
/K