Is it possible to configure Converse.js to render it's boxes into custom div
containers instead of adding them to the body of the page?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- Keeping track of variable instances
- Can php detect if javascript is on or not?
Yes, you can do this by writing a converse.js plugin in which you override the insertIntoPage method of
ChatBoxView
.Refer to the plugin documentation I linked to above. In short, it would look something like this:
UPDATE: Since recent versions of converse.js, the method to override is instead _ensureElement and not
insertIntoPage
.