London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
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