Try our conversational search powered by Generative AI!

Image not saved in xhtml property

Vote:
 

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?

#77988
Nov 29, 2013 15:22
Vote:
 

Hi,

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

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

Thanks

Ha Bui

#77997
Nov 30, 2013 7:33
Vote:
 

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

        [Display(
         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?

#78011
Dec 02, 2013 7:36
Vote:
 

Do you have any console error log? You can contact with me via email: Ha.Bui@episerver.com

/Ha Bui

#78012
Dec 02, 2013 7:55
Vote:
 

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.

 

#78015
Dec 02, 2013 8:11
Vote:
 

Hi,

 

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: http://world.episerver.com/Support/Bug-list-beta/bug/109076/

But DnD image is OK.

 

Thanks

Ha Bui

#78017
Edited, Dec 02, 2013 9:20
Vote:
 

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

#78018
Dec 02, 2013 9:24
Vote:
 

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!

 

BR

Ha Bui

#78019
Edited, Dec 02, 2013 9:29
Vote:
 

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

/Henrik

#80252
Jan 17, 2014 15:01
Vote:
 
#80255
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.