Studio Developer Manual / Version 2101
Table Of Contents
By dragging image documents from the library into a richtext field you can create inline
images. The document types that are supported for this operation and the image blob
properties that are accessed to display the images can be configured using the
registerRichTextEmbeddableType
method of the global
editorContext
object. You can also use the configureDocumentTypes
plugin as shown in the BlueprintFormsStudioPlugin
of
CoreMedia Blueprint:
<editor:ConfigureDocumentTypes names="CMPicture,CMImage" richTextImageBlobProperty="data"/> <editor:ConfigureDefaultRichTextImageDocumentType defaultRichTextImageType="CMPicture"/>
Example 7.25. Inline images in richtext
The previous example also shows how the
configureDefaultRichTextImageDocumentType
plugin can be used to configure the
document type that limits the search when the library is opened using the embedded image
button of the richtext toolbar.