I'm trying to create custom plugin for FCKeditor which should add HTML tag to code and I have two problems:
1. I'm using dialog pop-up window to ask user how to align tag. I can open dialog window but I can't close it. Default "Cancel" button using Cancel() function to close dialog. But when I try to execute Cancel() function I'm getting error: "ReferenceError: Cancel is not defined". Can somebody explain me how to close FCKeditor dialog window?
2. I'm using following code to create button in toolbar:
I can see button in toolbar and per my understanding I should have "Insert Tag 2" after my custom button but in some reason it doesn't work. How can I fix this issue?
1. I'm using dialog pop-up window to ask user how to align tag. I can open dialog window but I can't close it. Default "Cancel" button using Cancel() function to close dialog. But when I try to execute Cancel() function I'm getting error: "ReferenceError: Cancel is not defined". Can somebody explain me how to close FCKeditor dialog window?
2. I'm using following code to create button in toolbar:
... var insertTagButton = new FCKToolbarButton('insertTag', 'Insert Tag 1', 'Insert Tag 2'); insertTagButton.IconPath = FCKPlugins.Items['insertTag'].Path + 'images/img.gif'; FCKToolbarItems.RegisterItem('insertTag', insertTagButton); ...
I can see button in toolbar and per my understanding I should have "Insert Tag 2" after my custom button but in some reason it doesn't work. How can I fix this issue?
Re: Problems with custom plugin (dialog and button)
instead of
.