1 Reply Latest reply on Feb 21, 2018 12:46 PM by gvdd

    How to embed the Jive document viewer into Jive content via an iframe?

    gvdd

      Wondering if anyone already succeeded to embed the Jive document viewer into Jive content.

       

      Use case : We have a file uploaded in Jive of which we would like to show the preview in a Jive blog.

       

      Looked into the source code of the Jive file to copy the code which displays the viewer

       

      <span id="document-viewer-frame-holder">

           <iframe id="docverse-viewer-frame" scrolling="no" marginheight="0" marginwidth="0" src="/__services/v2/rest/office/d/preview/html/1200/viewer" allowfullscreen="true" width="100%" height="850" frameborder="0"></iframe>

      </span>

       

      If I paste it into the source code of a new Jive blog it looks fine

       

       

      When I publish the blog however the src attribute is being stripped from the code and the viewer is gone ...

       

      Already tried to alter the HTML filter so it contains all possible domain variations (such as jiveon.com), but it keeps getting stripped.

       

      Including iframes with a source different from our jive instance isn't an issue.

       

      As a workaround we could use an external viewer, but than we'll have the file on two different locations.