New tinyMCE editor and the images from posts

Jan 4, 2009 at 1:59 PM
Has anyone played with the new tinyMCE editor from the latest builds ?

If I try to add an image, I browse for the image, hit upload, and the image appears on my post.

Then I click publish to publish the post. If I go to the blog home page, there is no image on this new post.

Looking at the URL of the image, I see it's something like:
<p><img src="../../image.axd?picture=2009%2f1%2fimage.jpg" alt="" /></p>

With the old tinyMCE editor, the link would be something like:
<img src="image.axd?picture=2009%2f1%2fimage.jpg" alt="" />

The image was uploaded, I can see it on my server.

So it appears(to me) that the ../../ should not be there.

Thanks,

Adrian
Jan 4, 2009 at 2:35 PM
Same here. I gave up on the editor.
Jan 4, 2009 at 3:44 PM
Take a look at Windows Live Writer... its well worth the jump.

http://www.ocdprogrammer.com/post/2008/12/29/Windows-Live-Writer-2009-e28093-Release-Candidate.aspx
Jan 4, 2009 at 8:27 PM

File links inside post ( file.axd?file=myfile.pdf ) are also broken with latest builds. The problem in my opinion has nothing to do with tinyMCE editor. Old posts with file hyperlinks that worked fine,  do not work anymore with BE 1.4.5.13 change set 23913

Coordinator
Jan 5, 2009 at 3:36 AM
This is basically a problem with the new version of tinyMce.  The new version is doing its own conversion to the image src and hyperlink href values.  Old posts work because tinyMce isn't used to display posts -- it's used to create/edit posts.  I created a work issue for this and included what should be the necessary fix.

Broken Image/File links with New Version of tinyMCE
http://www.codeplex.com/blogengine/WorkItem/View.aspx?WorkItemId=8808
Jan 5, 2009 at 10:03 AM
@Ben mvincic commented that his old posts did break. I haven't upgraded any installs so I cannot verify.
Coordinator
Jan 5, 2009 at 4:33 PM
@Taylex, you're right, I misread that.  So I just tested this out.  The images/file links in an old post I composed with the old version of tinyMce do work in changeset 23913 (everything displays correctly).  But if you edit one of the old posts in the new version of tinyMce and save that post, then tinyMce will do its Url tweaking resulting in broken links.

It looks the Url converting is done when the new version of tinyMce is parsing through a post, whether that be editing an old post or inserting a new image/file with the Upload button.  When I apply the fix proposed in the issue tracker, the problem is resolved when either creating a new post, or editing an old post.
Jan 5, 2009 at 10:14 PM
Edited Jan 5, 2009 at 10:15 PM

My error, sorry for the confusion : I have broken some pages ( not posts ) by changing URL from http://www.mysite.com/blog to http://blog.mysite.com.
Then, I tried to fix one of the broken pages using tinyMCE 3, but this did not work as discussed.

Finally, I have fixed the problem using Windows Live Writer.

By the way, the latest WLW 2009 Beta release crashes when opening posts with embedded videos.