Hello,
I am new to FCKEditor, but fairly comfortable with JS. I want to use FCKEditor with a content management system. Part of the CMS allows users to edit the CSS file for their site. So, when I implement FCKEditor, I want to remove the default "Styles" dropdown and have a dropdown that contains the Style names from the CSS file. I am fine with having the dropdown just on the page and not actually in the FCKE toolbar, however I need to know where the function is that inserts tags when the user clicks the Bold button. I am hoping I can just do an onChange on my new styles dropdown and pass the open and close tags I need FCKE to put around the selected text.
So, again, when user clicks B, FCKE takes the currently selected text, places a "<b>" in front and "</b>" behind.
So on my new styles menu I want to have them choose "Caption", I need to call whatever function FCKE uses so that it will place "<span class="Caption">" in front and "</span>" behind.
Any help is greatly appreciated.
I am new to FCKEditor, but fairly comfortable with JS. I want to use FCKEditor with a content management system. Part of the CMS allows users to edit the CSS file for their site. So, when I implement FCKEditor, I want to remove the default "Styles" dropdown and have a dropdown that contains the Style names from the CSS file. I am fine with having the dropdown just on the page and not actually in the FCKE toolbar, however I need to know where the function is that inserts tags when the user clicks the Bold button. I am hoping I can just do an onChange on my new styles dropdown and pass the open and close tags I need FCKE to put around the selected text.
So, again, when user clicks B, FCKE takes the currently selected text, places a "<b>" in front and "</b>" behind.
So on my new styles menu I want to have them choose "Caption", I need to call whatever function FCKE uses so that it will place "<span class="Caption">" in front and "</span>" behind.
Any help is greatly appreciated.
Re: Where is the Insert Function for buttons?
Re: Where is the Insert Function for buttons?
Re: Where is the Insert Function for buttons?
let's say on the form that contains my FCKEditor, I have a dropdown, that when someone selects something from it, I want the value to be inserted into the FCKE editor area. Since the FCKE editor area is not a true <textarea>, I can't do just a simple javascript to insert the value in there. So I am trying to find the function in FCKE for things like the Bold button. You know how if you click the Bold button in FCKE, it inserts bold tags into the FCKE editor area? I just want to know what function does that so that I can use it to insert my own stuff.
Re: Where is the Insert Function for buttons?
Thank you so much.
Re: Where is the Insert Function for buttons?