I want to make a plugin for FCK just to write the
I manage to show at toolbar the control but the is an error, I can not write this I want.How can I do that?
<.!--more --.>.
I manage to show at toolbar the control but the is an error, I can not write this I want.How can I do that?
more=function(){ccTag = '<!--First-->'; FCK.InsertHtml(ccTag);} FCKToolbarItems.RegisterItem( 'more' , new FCKToolbarButton( 'more' , FCKLang.InsertRowAfter, null, null, null, true, 100 ) ) ; FCKCommands.RegisterCommand( 'more', more) ; // Create the "Plaholder" toolbar button. var more = new FCKToolbarButton( 'more', FCKLang.PlaceholderBtn ) ; more.IconPath = FCKPlugins.Items['more'].Path + 'placeholder.gif' ; FCKToolbarItems.RegisterItem( 'more', more ) ;
Re: Fckeditor plugin problem
Make sure to read http://docs.fckeditor.net/FCKeditor_2.x ... n/Plug-ins
And you can also check my insertHTML plugin, http://sourceforge.net/tracker/index.ph ... tid=737639. It has an option to show a dialog to let you instert HTML; or to have pre-configured HTML inserted, which is actually what you want to do. So you can look at the code or just use the plugin