Hi
Took the above and tweaked to add the save code too see below (HTML is as yours), and it still misses the event.
The CSS changes fine, but when I click save after changing the CSS it doesnt work, I have to click it twice.
Have stuck in breakpoints to see when code is being hit and it doesnt even go into the postbackcommand event (does the second time tho).
Any ideas?
Andy
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Page.IsPostBack Then
'Cute Editor Settings
Editor1.EditorWysiwygModeCss = "~/styles/AcmsMain.css"
End If
End Sub
Protected Sub Editor1_PostBackCommand(ByVal Sender As Object, ByVal e As System.Web.UI.WebControls.CommandEventArgs) Handles Editor1.PostBackCommand
If String.Compare(e.CommandName, "Save", True) = 0 Then
Literal1.Text = "Saved"
End If
End Sub
Protected Sub themeList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles themeList.SelectedIndexChanged
Editor1.EditorWysiwygModeCss = themeList.SelectedItem.Value
Literal1.Text = ""
End Sub