Home Search Member List Faq Register Login  
UltimateEditor
Ultimate Editor Toolbar - custom button - stays in "onmouseover" once completed

Thread Starter: warrendc   Started: 11-29-2007 9:51 PM   Replies: 2
 Karamasoft Support Forums » General Discussions » UltimateEditor » Ultimate Editor Toolbar - custom button - stays in "onmouseover" once completed
 Printable Version    « Previous Thread   Next Thread »
  29 Nov 2007, 9:51 PM
warrendc is not online. Last active: 10/1/2008 8:20:52 PM warrendc

Top 10 Posts
Joined on 09-26-2006
Posts 10
Ultimate Editor Toolbar - custom button - stays in "onmouseover" once completed
Hi,

I've had a look at your samples and the difference with my code is that it doesn't execute a command. It executes javascript function to update text in the UtlimateEditor control. Once done, it does not restore the button image to the 'onmouseout' state.

I thought it may have been the image I used, but even with one of the standard button images when used with my javascript, it does this also.

The javascript function is like this:

function insertPageAnchor(uedID) {

UltimateEditors[uedID].StoreCurrentRange();

var htmlStr = prompt('Please enter Anchor Name:', 'AnchorName');

htmlStr = "<a name='" + htmlStr + "'>";

UltimateEditors[uedID].InsertText(htmlStr);

}

In the XML file:

<ToolbarItem Type="Button" ID="InsertAnchor" OnAfterClick="insertPageAnchor();" Command="None" ButtonFile="CreatePageAnchor.gif" />

In the VB Ultimate Editor Init function:

Public Sub UltimateEditorToolbarInit(ByVal sender As Object, ByVal e As Karamasoft.WebControls.UltimateEditor.ToolbarItemRenderEventArgs)

Dim ued As UltimateEditor

ued = sender

If (e.ToolbarItem.ID = "InsertAnchor") Then

e.ToolbarItem.OnAfterClick = "insertPageAnchor('" & ued.ClientID & "');"

End If

End Sub


  
  30 Nov 2007, 2:07 PM
Karamasoft is not online. Last active: 5/8/2018 10:36:45 AM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 6,820
Re: Ultimate Editor Toolbar - custom button - stays in "onmouseover" once completed
Thanks for your feedback. We fixed this issue and send you the patch shortly. We will release v3.0 of UltimateEditor in two weeks and the new version has the functionality of inserting anchor through an editor toolbar button.
  
  02 Dec 2007, 8:21 PM
warrendc is not online. Last active: 10/1/2008 8:20:52 PM warrendc

Top 10 Posts
Joined on 09-26-2006
Posts 10
Re: Ultimate Editor Toolbar - custom button - stays in "onmouseover" once completed
Thanks - it worked!
  
 Page 1 of 1 (3 items)
Karamasoft Support Forums » General Discussions » UltimateEditor » Ultimate Editor Toolbar - custom button - stays in "onmouseover" once completed

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2020 Karamasoft LLC. All rights reserved.