I want users to be able to create links and add images, however the toolbars supplied with fckeditor are too advanced for my use. When I load the image toolbar it has options to upload files etc. All I want is an address box which someone can enter the path into. Similiarly for links, type link address, and the the text e.g <a href="">text here</a>.
Is there a way to remove the advanced options?
Any thoughts suggestions are really appreciated. I love fckeditor, but need to make it simplier to meet my needs
Tue, 05/22/2007 - 08:11
#1
RE: Simpifying Image and Link toolbar options
If you can't manage this yourself than you can always contact me for paid support.
RE: Simpifying Image and Link toolbar options
Thanks for pointing me in the right direction saul11. I found the file fckeditor\editor\dialog\fck_link\fck_link.js and saw the if statements at the beggining:
if ( FCKConfig.LinkUpload )
window.parent.AddTab( 'Upload', FCKLang.DlgLnkUpload, true ) ;
So I changed these settings in fckconfig.js e.g. FCKConfig.ImageUpload = false ;
So it is now setup exactly how I want it to be, except that in the link there is a dropdown box entitled protocol with options http:// https:// ftp:// etc.
Is there a quick way to remove this?
I think it may confuse my customers who will only ever want to link to a http:// webpage.
RE: Simpifying Image and Link toolbar options
RE: Simpifying Image and Link toolbar options
The thing is when I remove the html code which refers to the protocol dropdown box, the form submit "Ok" button no longer functions. The code I deleted is as follows:
<td nowrap="nowrap">
<span fckLang="DlgLnkProto">Protocol</span><br />
<select id="cmbLinkProtocol">
<option value="http://" selected="selected">http://</option>
<option value="https://">https://</option>
<option value="ftp://">ftp://</option>
<option value="news://">news://</option>
<option value="" fckLang="DlgLnkProtoOther"><other></option>
</select>
</td>
<td nowrap="nowrap"> </td>
So there is obviously something relying on this somewhere else.
Also when I enter http://www.blah.com into that box it instantly removes the http://
I suppose this is not an issue but could be useful to stop.
Any thoughts?
Re: Simpifying Image and Link toolbar options
Re: Simpifying Image and Link toolbar options