View Single Post
  #4 (permalink)  
Old July 2nd, 2010, 06:21 AM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Hi Adam,

You don't have to use the ID. You should be able to simp,y assign a CssClass of ckeditor:

<asp:TextBox ....... CssClass="ckeditor" .... />

and then it should work.
http://docs.cksource.com/ckeditor_ap...ByClassEnabled

Not sure why this is not explicitly mentioned in the CKEditor docs.

Alternatively, you can use the control's ClientID:

CKEDITOR.replace('<%=txtIntroText.ClientID%>);

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
AdamPembs (July 2nd, 2010)