Hi,
How easy is it to add a drop down list to the toolbar via a plugin - more specifically a drop down list that is populated from a database (using ASP.Net)
I can handle the .Net stuff, but am unsure how to add the drop down list to the toolbar.
Any help would be appreciated.
Cheers,
Julian
How easy is it to add a drop down list to the toolbar via a plugin - more specifically a drop down list that is populated from a database (using ASP.Net)
I can handle the .Net stuff, but am unsure how to add the drop down list to the toolbar.
Any help would be appreciated.
Cheers,
Julian

RE: Adding Drop Down List into toolbar via pl
https://sourceforge.net/tracker/index.p ... tid=737639
RE: Adding Drop Down List into toolbar via pl
https://sourceforge.net/tracker/index.p ... tid=737639
RE: Adding Drop Down List into toolbar via pl
I have been trying your plugin with the older version of FCKeditor and it worked great.
I have just switched to the new Beta 2.3 and I have troubles. In Firefox I have the following error and I have no idea how to get rid of it:
FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName) has no properties
Can you help?
Thanks
RE: Adding Drop Down List into toolbar via pl
I to do had this prob with my custom plugin..it was fixed after i applied an ID on the form field
note: id="txtName"
<select id="txtName" name="txtName" style="WIDTH: 100%">
and in the js above it... (note the getbyid)
function Ok()
{
if ( document.getElementById('txtName').value.length == 0 )
{
alert( oEditor.FCKLang.DlgClassifyErrorName ) ;
return false ;
}
//oEditor.FCK.InsertHtml( '<a name="' + GetE('txtName').value + '"><\/a>' ) ;
oEditor.FCK.InsertHtml( '<b>'+ document.getElementById('txtName').value + '</b>  ' ) ;
return true ;
}
RE: Adding Drop Down List into toolbar via pl
http://www.opensource.org/licenses/lgpl-license.php
http://www.fckeditor.net/
fredck@fckeditor.net
remsikt@gmail.com
<html> <head> <title>Class Name Picker</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta content="noindex, nofollow" name="robots"> <script src="common/fck_dialog_common.js" type="text/javascript"></script> <script type="text/javascript"> var oEditor = window.parent.InnerDialogLoaded() ; // Gets the document DOM var oDOM = oEditor.FCK.EditorDocument ; var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ; window.onload = function() { // First of all, translate the dialog box texts oEditor.FCKLanguageManager.TranslatePage(document) ; if ( oActiveEl && oActiveEl.tagName == 'A' && oActiveEl.name.length > 0 && oActiveEl.getAttribute('href').length == 0 ) document.getElementById('txtName').value = oActiveEl.name ; else oActiveEl = null ; window.parent.SetOkButton( true ) ; } function Ok() { if ( document.getElementById('txtName').value.length == 0 ) { alert( oEditor.FCKLang.DlgClassErrorName ) ; return false ; } //oEditor.FCK.InsertHtml( '<a name="' + GetE('txtName').value + '"><\/a>' ) ; oEditor.FCK.InsertHtml( '<b>'+ document.getElementById('txtName').value + '</b>  ' ) ; return true ; } </script> </head> <body style="OVERFLOW: hidden" scroll="no"> <table height="100%" width="100%"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" width="80%"> <tr> <td> <span fckLang="ClassName">Class Picker</span><BR> <select id="txtName" name="txtName" style="WIDTH: 100%"> <option value="">----Class Picker----</option> <? while($row1=mssql_fetch_array($class_result2)) { echo "<option value=\"$row1[name]\">$row1[name]</option>"; }; ?> </select> </td> </tr> </table> </td> </tr> </table> </body> </html>RE: Adding Drop Down List into toolbar via pl
RE: Adding Drop Down List into toolbar via pl
https://sourceforge.net/tracker/index.p ... tid=737639
RE: Adding Drop Down List into toolbar via pl