Welcome Guest Search | Active Topics | Sign In | Register

Editor and PreserveRelativePaths Options
DrG
Posted: Saturday, June 19, 2010 12:43:07 PM
Rank: Newbie
Groups: Member

Joined: 3/3/2008
Posts: 5
I'm using the Editor and require the full paths to be retained when inserting images, but this only works if you change the ActiveMode before your page posts back.

Changed the Demo to:
set PreserveRelativePaths = false;

I can reproduce this with your demo by putting a breakpoint on CS\Demos\Editor\Designs\Office 2003 XP Style\Demo.aspx.cs (page_Load) inserting an image and selecting one of the radio buttons on the page then examining the Editor.HTML. On the first trip back to the server you don't get the full path but you do on the second trip, or if you change the ActiveMode before the post back.

Am i missing something ?

Thanks
DrG
Posted: Saturday, June 19, 2010 2:15:06 PM
Rank: Newbie
Groups: Member

Joined: 3/3/2008
Posts: 5
The work around, I came up with: Angel

On the form submitasp:ImageButton: added onclientclick="updater();" before the normal OnClick="onSubmit"

<script type="text/javascript">

function updater() {
var editor = eo_GetObject("Editor1");
editor.execCommand("HTMLMode");
editor.execCommand("DesignMode");
return true;

}
eo_support
Posted: Monday, June 21, 2010 7:26:19 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thanks for sharing. We have posted a new build that should fix this issue so the workaround code would no longer be necessary. Please see your private message for download location.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.