5 Replies Latest reply on Oct 17, 2012 7:03 PM by aron.racho

    How do you embed static HTML content in a document from bangapps?


      I'd like to get some static HTML content and then add it to a document using bangapps.


      Looking at the Jive Images app, here's how they embed an image into the document…

      Source from: http://apphosting.jivesoftware.com/apps/releases/images/v1/js/main.js

        $('#results').delegate('a', 'click', function(e) {


          var fullImage = $(this).attr('data-full-image');




              display: {

                type: "image",

                previewImage: fullImage,

                label: "..."


              target: {

                type: "url",

                url: fullImage






      However, I want to publish static HTML rather than just a single image...

      https://community.jivesoftware.com/docs/DOC-68012 suggests that it is somehow possible e.g.


      RTE Action Contribution Selection when editing a document (partial, direction: Container's RTE -> app)

      jive: {

          content: {

              id: 1234,

              type: "osapi.jive.core.Document"


          rte: {

              htmlBody: "<p>Document content</p>"




      This seems to be close to what I want, but I'm not quite sure how to tie this into osapi.jive.core.container.closeApp()

      Is there any documentation that I've missed? Or a nice working example that I could appropriate?