Question

It seems that adding a p:editor to a TabView with dynamic="false" fails to initialize the editor unless its in the first tab. I tried adding

onTabShow="handleTabShow(tab)"

function handleTabShow(tab) {
    if (tab.index() === 7) {
        editorWidgetVar.init();
    }
}

to the tabView, but this fails to initialize the editor. I have the same problem with onTabChange. Does anyone know how to get a primefaces editor to load in this context?

Was it helpful?

Solution

My issue was not adding the editorWidgetVar.cfg as a parameter to the init() function. If I do this it works...seems weird that there isnt a simpler, less hacky way to get this editor to display...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top