Hi all,
i would say how to create a custom button and custom javascript for fckeditor.
I have to do this :
1- a button as Bold button , that highlight the word i have selected in textarea;
2- it's possible make a mysql connection for insert into database the selected text , when i have pushed my
custom botton?
i have founded this simple code.... but i dont know what insert inside ...... i dont know the variables and commands for edit selected text.
Please help.
this is the code :
thank you all.
i would say how to create a custom button and custom javascript for fckeditor.
I have to do this :
1- a button as Bold button , that highlight the word i have selected in textarea;
2- it's possible make a mysql connection for insert into database the selected text , when i have pushed my
custom botton?
i have founded this simple code.... but i dont know what insert inside ...... i dont know the variables and commands for edit selected text.
Please help.
this is the code :
function OpenUrl() { } // Disable button toggling. OpenUrl.prototype.GetState = function() { return FCK_TRISTATE_OFF; } // Our method which is called on button click. OpenUrl.prototype.Execute = function() { // HERE i dont know what to do for point 1 and 2 } // Register the command. FCKCommands.RegisterCommand('openurl', new OpenUrl()); // Add the button. var item = new FCKToolbarButton('openurl', 'Open URL'); item.IconPath = FCKPlugins.Items['openurl'].Path + 'openurl.gif'; FCKToolbarItems.RegisterItem('openurl', item);
thank you all.