Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
VF oblivious to customevents.js
fiquebem
We have TS 5.5.2 and VisualFormat 2.6.
My DCT points to a new VF configuration file, where I've created a few menu items. I thought I'd place my VF custom code in a new JavaScript file of my own but couldn't make that work. So I thought I'd just put my code in customevents.js (in the ewebeditpro20) directory. I added a reference to customevents.js to ewebeditpro.js (at the bottom of the eWebEditProIncludes array).
I noticed that there's a eWebEditProIncludes array in ewebeditproincludes.js too. It already has customevents.js, but it excludes ewebeditproeventsiw.js. What's up with that?
I put my customized code in ewebeditproevents.js for a second and VF recognized it immediately. But I don't want to leave it there. (I'm guessing that upgrades won't override customevents.js.)
How to make VF come to its senses? Or what am I doing wrong?
Thanks,
S.
Find more posts tagged with
Comments
fiquebem
Has anyone been able to get customevents.js to work? Wonder if having a separate configuration file (via external-editor-config) makes a difference in that regard. Of course, I could test this, but it's 6 p.m. on Friday : ).
Incidentally, is anyone using any "dynamically" change the editor? The VF manual (TeamSite Templating:VisualFormat
Developer’s Guide Release 5.5.2) says, "The server can dynamically create XML configuration data when the editor requests it. The data can be populated from a database. You can do this because the configuration of XML data is not limited to a flat file. ... To use this method, set the editor's config parameter to a URL that returns configuration data as XML."
Yeah, right. Setting external-editor-config to a URL doesn't work. That manual, I tell you ... Setting external-editor-config to a JSP or ASP file doesn't seem to fly either.
As for "Dynamically changing the editor on the client using JavaScript" it seems to be out of the picture too. However, as someone suggested in another thread, with the good graces of FormAPI it may be possible to declare a command-handler in, say, ewebeditproevents.js and point it to a function in a DCT. But, alas, what would the "fully-qualified" name of the function (including frame-name and what not) look like? Has anyone done it?
OK, I'm going to visualize the format of my weekend now. Cheers,
S.
kvargas23
Just wondering if you ever got this resolved.
I am trying to add a custom item to the ektron control.
The button shows up but nothing happens when clicked. Even when I try to use the basic hyperlink popup.
Keith
Migrateduser
I've run into the same problem before. The documented procedure just flat out doesn't work. In the end, I put the new code directly in ewebeditproevents.js and figured I would just deal with the consequences later if an upgrade overwrote it.
Bill Klish
I came across this issue at the beginning of last year. This issue is documented as bug #59726. Add your company to the bug to get it some priority to be fixed.