Hello has anybody here had any experience with the fckeditor that now comes with the standard text/html module.
What I want to do is disable a couple toolbar items on the fckeditor and than repackage the texthtml module with those adjustments and call it like text/htmlrevised or something of that nature.
The project is to allow members of our organization the ability to post articles on our site without giving them the ability to tamper with scripts such as javascripts, etc....
I was scratching my head as to how to best accomplish this and decided on the idea of revising the text/html module to eliminate the source button from the fckeditor as well as the flash button and allow all the rest of the richtext panel to show up.
Does anyone here either know how this can be done or a better approach of giving people enough access to post articles for say a press release without giving them the full scope and power of source code editing, scripts, etc..
I have read a couple of things on the fckeditor in regards to disabling buttons but couldn't get a handle on it. the site I went to is
http://www.fckeditor.net/forums/vie...ate+buttonand here is a couple clips from it:
---------------------------------------------------------------------------------------------
So for example to disable a command by default (i.e. onload of the editor), copy the code below and put it in the page that creates the editor. Replace 'FCKeditor1' with the instanceName you chose for your editor. Then pick your command and fill it in in the GetCommand method (replace 'FitWindow'). When you now visit your webpage containing the FCKeditor, the command should be disabled.
...and changing the .Execute function doesn't really disable the
button, the
button will look enabled so that's bad user experience.
You could do it better this way:
The question I have is first of all what page in dnn actually generates or creates the editor. I was dabbling around with texteditor.ascx in the controls folder of dotnetnuke and found what I thought was the main code for the fckeditor in providers>HtmlEditorProviders>fck>fckeditor>editor>js>fckeditorcode_ie.js
So I was going back and forth between the texteditor.ascx file and the fckeditorcode_ie.js file to try to disable some toolbar items when using ie but with no luck.
I did notice that in texteditor.ascx their was an asp code bit within the asp:placeholder that had an id of piceditor. I am guessing piceditor is the instance name used but couldn't actually find the words piceditor anywhere but that one spot in that one page so am not sure how the id of piceditor is refrencing the actual fckeditor but maybe the answer is buried in one of those .dll files within the bin folder.
If anyone has any ideas concerning this situation pleas let me know.
Thanks,
Bo
P.S. some module that lets you write html but strips scripts like I noticed this forum did when trying to showcase the javascript example is a possibility as well for what I need that actually gave me an idea when that happened.