This is a migrated thread and some comments may be shown as answers.

Images in Kendo UI Editor: first image will not display in IE

2 Answers 139 Views
Editor
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 02 Oct 2012, 03:39 PM
Here's a puzzle... I am building an editor that contains some HTML, including some image tags. In IE the first image displays in the editor as a broken image, while any subsequent images display correctly. This behaviour is not exhibited in Chrome. I've modified the HTML in the editor any way I can to try to "fix" this but no matter what the first image is broken in IE.

Any help?

EDIT:
This effect only occurs when the first image is on the server. If the first image is off the server (e.g. I take a URL from any image on the internets) then it's all good.
Any idea why IE would choose to not display the first image if it's on the server?
FYI: it's not a permission issue (I think) since the account used to run .NET has access to the images, and no suspicious events are being logged that suggests the server is denying the first image.

2 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 09 Oct 2012, 05:39 PM
UPDATE:

I've done some more testing, and I've narrowed this down to a Kendo UI Editor problem: if I put the content in the editor then the first image shows as a broken image, but if I put the content in a regular DIV then the images all display properly.

To summarize: the first image in content being edited in a Kendo UI Editor will not display in IE if the first image is on the server hosting the web page.

Can I get some help with this?
0
David
Top achievements
Rank 1
answered on 09 Oct 2012, 07:24 PM
SOLVED:

Must call editor.update() after setting editor.value(). Don't know why this creates this issue, but this fixes it.
Tags
Editor
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or