Hi All,
I am using FCK Editor (love the name yes) in an c#/asp.net portal app i am building.
I have scoured the doc and cannot seem to find if FCK Editor Dose the following:
I was wondering if there is any way to get the editor to display in text view,(so it dose not render as a text box control but as plain old HTML, lable control or some ting like that) and then flick the editor to edit mode when needed.
ie: DisplayMode="text" or DisplayMode="editor" this would make things so neat if i could.
I know it would be easy to apply the same logic to two controls but i just though if FCK would do this then great ,less coding.
Thanks PP
I am using FCK Editor (love the name yes) in an c#/asp.net portal app i am building.
I have scoured the doc and cannot seem to find if FCK Editor Dose the following:
I was wondering if there is any way to get the editor to display in text view,(so it dose not render as a text box control but as plain old HTML, lable control or some ting like that) and then flick the editor to edit mode when needed.
ie: DisplayMode="text" or DisplayMode="editor" this would make things so neat if i could.
I know it would be easy to apply the same logic to two controls but i just though if FCK would do this then great ,less coding.
Thanks PP
Re: HTML/Text only Display Mode
I'd probably call the feature you describe a "preview" mode. (i.e. it shows the contents inline, rather than in an editor).
Whilst this sounds nice, for technical reasons it would be very convoluted to implement in the FCKeditor's core (the first reason I can think of, would be handling a situation where the browser doesn't support Javascript...). It could quite easily be implemented in the FCKeditor.Net control, but then that would be a .Net-only feature and I think the .Net component is only a small part of the editor's user base. A "preview" function is also very much dependent on the context of your application - i.e. outside the scope of the editor itself.
I would recommend adding the mechanism as you suggest by having a second control on the page, and changing visiblity dependant upon whether you want to be in edit mode or not. You could also consider adding the option yourself into a custom build of FCKeditor.Net.
Be aware if you're using the editor in ASP.NET AJAX, and also if you're showing/hiding the editor dynamically, there are bugs relating to this scenario (http://dev.fckeditor.net/ticket/234 and http://dev.fckeditor.net/ticket/1255). I have a fix for this if you need it.
Re: HTML/Text only Display Mode
I have created a web part with a label control and added the fck editor to the asp.net portals editor zone and tyed it all up.
Nice. It all works fine.