简体   繁体   中英

Using PrimeFaces editor in a TabView with dynamic set to false

It seems that adding ap: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?

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...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM