HelloI need to modify the visual formatter to add a new button.Specifically, when the button is pressed I want to launch a new dialgoue requesting the user to indicate the properties that should be applied to a popup window using javascript (window.open method).I would prefer to do this using pure javascript within the DCT (or an included file) rather than editing visualformatconfig.xml etc.I have been able to create a toolbar and add buttons to it (as per the vf documentation), but I can't see a way of binding a callback to the clicking of a toolbar button.I may have missed something, so apologies if its a case of RTFM.Thanks
ewebeditproevents.js and [font='Times New Roman']customevents.js.
[font='Times New Roman']
[font='Times New Roman']You can add events inside : [font='Times New Roman'][color=#000000]ewebeditproevents.js
[font='Times New Roman'][font='Times New Roman']All custmizations will go inside : [font='Times New Roman']customevents.js
[font='Times New Roman'][font='Times New Roman'][font='Times New Roman']
[font='Times New Roman'][font='Times New Roman'][font='Times New Roman']You need to map the events using .xml(config) file. All are under /iw-home/httpd/iw/
[font='Times New Roman'][font='Times New Roman'][font='Times New Roman']Hope this helps little
I meant the internal name for a visual formatter that you would access using eWebEditPro.instances[internal-name]as opposed to the DCT item that this maps on to. Whilst debugging, I stepped into a whole load of interwoven javascript code and it does look like its always called 'MyContent1'. Presumably this is possible regardless of the number for visual formatter controls that are on a DCT since 1 is only ever displayed at a time.