Try our conversational search powered by Generative AI!

Image not saved in xhtml property


We are having problem with a xhtml-property that we are using to present images and videos. The problem is that if we add a image and no text it looks good but the images are not saved. The property is a regular xhtml but the rendering on the page are using a custom displaytemplate

One strange thing is that the displaytemplate are not showin in onpageedit-mode, maby it can have something to do with that?

Nov 29, 2013 15:22


I guess that you don't use EPiServer's default editor for XhtmlString (TinyMCE) !?

Please give more information (some screenshots, console log, mock code ...)


Ha Bui

Nov 30, 2013 7:33

I am using the default editor with the default settings for TinyMCE. Here is the code to add it to the pagetype.

         Name = "Bild eller video (380x230)",
         Description = "Html-yta som är avsedd för bild eller film i sidhuvud",
         GroupName = SystemTabNames.Content,
         Order = 3)]
        public virtual XhtmlString MediaSelector { get; set; }


I noticed that it works in chrome (Version 31.0.1650.57)  but not in firefox (25.0.1, and I have tried older). I have recorded two videos with jing to show what happens, but I can't attach them here, so can I send them to you in some way?

Dec 02, 2013 7:36

Do you have any console error log? You can contact with me via email:

/Ha Bui

Dec 02, 2013 7:55

Now I have sent you a mail with a link to a zipfile in dropbox. It has two files in it, one showing Chrome and one showing FireFox, both with console open.

It seams like in FireFox the trigger that indicates to EPiServer that something has changed in the field is not triggered in FireFox.


Dec 02, 2013 8:11



This is bug on CMS 7!

http://tfs01vm:8080/tfs/web/wi.aspx?pcguid=abe04924-a11e-4090-aea0-9530e90c0aea&id=109076 (still in Triage state ;))

[Updated] Public link:

But DnD image is OK.



Ha Bui

Edited, Dec 02, 2013 9:20

I can't see anything on the link, should I be able to?

Dec 02, 2013 9:24

Ofcouse, this is internal link to bug list. I'll update when it's in public bug list!


Root cause of this bug is TinyMCEEditor is blured when user insert image from dialog (Insert / Edit image) before _onChange event is raised.

So _EditorWrapperBase consider the editor is not editing and not save any data change!



Ha Bui

Edited, Dec 02, 2013 9:29

Habu, has this been added to the public bug list yet?


Jan 17, 2014 15:01
Jan 17, 2014 15:40
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.