| Mei Ying 2004-05-20, 5:41 am |
| Hi
I don't see that hapening on our setups. Images are added
and saved even without the existence of a parent paragraph
tag.
Just to ensure that this is not the culprit - have you
allowed images in the Placeholder by setting the
AllowImages property of the HtmlPlaceholderDefinition to
true?
Then again, I guess that you must have or the "Insert
Image" button would be disabled.
And to understand a little more about how the content of
the Placeholder being retrieved and displayed. Are you
using the API to do so or using the default behaviour of
the Html Placeholder Control?
Mei Ying
>-----Original Message-----
>Hi,
>
>I noticed something odd when saving HtmlPlaceholder
contents. It seems that
>if you insert a single image in an empty
HtmlPlaceholderControl (completely
>empty, one that contains no paragraphs --- can be
obtained by creating a new
>page, for example) the inserted image tag will be
stripped during the save.
>
>Is that so, that an image tag can not exist without a
paragraph? If so,
>where do I replace the functionality of the 'Insert
image' toolbar button so
>that it, when inserting the image tag, looks for a parent
paragraph and
>creates one if necessary?
>
>Lasse
>
>
>.
>
|