Let's suppose you want to insert an image into a news article. After
using the Picture button of the toolbar to insert
an <img> element and double-clicking (or
right-clicking) the image placeholder icon, a dialog box reporting an
"openResource not implemented" error is displayed. See figure
below.
Therefore the only way to specify the @src attribute of
the newly inserted <img> element is to use the
Edit Attributes dialog box. However, after doing
that, the image placeholder icon just changes its color from blue to green
and you'll not see the image you have specified.
Figure 6-3. The NewsApp web application without any
ResourceStorage registered with
XMLEditor
This limitation is due to the fact that XMLEditor makes very few
assumptions about how documents and also document resources like images,
video, audio, are stored by your web application.
This
limitation may be removed by implementing a ResourceStorage and registering
it with XMLEditor using its resourceStorage property.
Save resource
data (for example, an image File dragged from the
desktop and dropped onto the image placeholder icon) to specified URI
and return the corresponding newly created
Resource.