Reputation: 357
I have an application made with JSF 2.0, Primefaces 5.2, using MDL: Material Design Lite from Google (MDL). When I put p:editor on my jsf page it's not working: every element on the editor is disabled. When I inspect the elements, I can see that every div is disabled.
Also, when I first open the page, the editor does not work, but when I press F12 (to see javascript console) and close that tab (console) the editor starts to work.
Can anyone help me?
Upvotes: 1
Views: 881
Reputation: 357
Apparently , JavaScript MDL interfered with jquery, when load page, the Editor.init() from Jquery was called, then MDL did something that p:edit was disabled. So, I make it:
<script type="text/javascript">
$(function () {
setTimeout(function () {
PrimeFaces.ab({s: 'id_from_editor', p: 'id_from_editor', u: 'id_from_editor'});
}, 1000);
})
</script>
It's working.
Upvotes: 2