hi,
i have a custom dialog of my own that i use on the <a> tag, but i also want to use FCK <a> tag editor.
i use a custom attribute on the <a> tag to mark it as mine and not a regular tag (so i can do my stuff on it later).
I'm not trusting the use to always get the difference - and some times he can't because the link looks the same.
so i currently have 2 dialogs for the same <a> tag.
once a user click on the wrong command, is there a way to close the dialog(end the command) and open my custom one (and vice versa)?
when i try something like this:
fckdialog.html(window.init) function. throw an error at this line
i rather not duplicate all the logic to 2 dialogs and js., is there a way to make this work?
10x,
i have a custom dialog of my own that i use on the <a> tag, but i also want to use FCK <a> tag editor.
i use a custom attribute on the <a> tag to mark it as mine and not a regular tag (so i can do my stuff on it later).
I'm not trusting the use to always get the difference - and some times he can't because the link looks the same.
so i currently have 2 dialogs for the same <a> tag.
once a user click on the wrong command, is there a way to close the dialog(end the command) and open my custom one (and vice versa)?
when i try something like this:
//find out if this is my link if (oLink) { if (GetAttribute(oLink,'myCustomAttribute','') == 'true') { dialog.Cancel(false); oEditor.FCK.Commands.GetCommand( 'MyLink').Execute() ; return; } }
fckdialog.html(window.init) function. throw an error at this line
ParentDialog().contentWindow.SetEnabled( false ) ;
i rather not duplicate all the logic to 2 dialogs and js., is there a way to make this work?
10x,