Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
None of these work:
pageWidget && pageWidget.length > 0 && pageWidget[0].inputWidget && pageWidget[0].inputWidget.onChange(function () {
var mm = "test";
}) &&
on(pageWidget[0].inputWidget, "onchange", function() {
var mm = "aaa";
}) &&
on(pageWidget[0].inputWidget, "changed", function () {
var mm = "bbb";
})
&&
on(pageWidget[0].inputWidget, "onselect", function () {
var mm = "ccc";
})
&&
on(pageWidget[0].inputWidget, "selected", function () {
var mm = "ddd"
})
I have also tried with this:
var page = null,
pageWidget = getPageWidget(hyperLinkSelector.wrappers);
pageWidget && pageWidget.length > 0 && (page = pageWidget[0]) && page && page.inputWidget &&
connect.connect(page.inputWidget.selectedContentLinkNode, "onchange", function () {
var mm = "xx";
});
and I've included dojo connect:
require([
"dojo/_base/lang",
"dojo/_base/array",
"dojo/on",
"dojo/when",
"dojo/dom-style",
"dojo/_base/connect",
"epi/dependency",
"epi/shell/widget/dialog/Dialog",
"epi-cms/ApplicationSettings",
"epi-cms/widget/LinkEditor",
"epi/i18n!epi/cms/nls/episerver.cms.widget.editlink"
],
function (lang, array, on, when, domStyle, connect, dependency, Dialog, ApplicationSettings, LinkEditor, resource) {
Hey guys, I am creating a TinyMCE button - very similar to EPiLink button. I need to hook to page-selected/page-changed, this does not work:
getPageWidget is similar as getAnchorWidget:
and it is getting the correct widget, my hope is that the name of the event is wrong. Breakpoint doesn't get hit when I select the page in the tree and the dialog closes. If anyone knows how to hook to dialog closed from the same file, it's also of great help.