code: function(within, options) {
        // Use the safe filter so that the markup doesn't get double-escaped by nunjucks
        return self.apos.templates.safe(self.richText(within, options));
      }
docs: Returns the rich text markup of all `apostrophe-rich-text` widgets within the provided doc or area, concatenated as a single string. In future this method may improve to return the content of other widgets that consider themselves primarily providers of rich text, such as subclasses of `apostrophe-rich-text`, which will **not** be regarded as a bc break. However it will never return images, videos, etc.  By default the rich text contents of the widgets are joined with a newline between. You may pass your own `options.delimiter` string if you wish a different delimiter or the empty string. You may also pass an HTML element name like `div` via `options.wrapper` to wrap each one in a `<div>...</div>` block. Of course, there may already be a div in the rich txt (but then again there may not).  Content will be retrieved from any widget type that supplies a `getRichText` method.