Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
ae3942bc
Commit
ae3942bc
authored
Mar 15, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update docs.
- Mention CSS file needed for embedded case. - Update some outdated text
parent
8ca9da2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
14 deletions
+28
-14
docs/source/configuration.rst
docs/source/configuration.rst
+28
-14
No files found.
docs/source/configuration.rst
View file @
ae3942bc
...
@@ -379,22 +379,30 @@ plugins from registering themselves under those names.
...
@@ -379,22 +379,30 @@ plugins from registering themselves under those names.
The core, and by default whitelisted, plugins are::
The core, and by default whitelisted, plugins are::
converse-bookmarks
converse-bookmarks
converse-chatboxes
converse-chatview
converse-chatview
converse-controlbox
converse-controlbox
converse-core
converse-core
converse-disco
converse-dragresize
converse-dragresize
converse-fullscreen
converse-headline
converse-headline
converse-mam
converse-mam
converse-minimize
converse-minimize
converse-muc
converse-muc
converse-muc-embedded
converse-notification
converse-notification
converse-otr
converse-otr
converse-ping
converse-ping
converse-profile
converse-register
converse-register
converse-roomslist
converse-rosterview
converse-rosterview
converse-vcard
converse-singleton
converse-spoilers
converse-vcard'
An example from `the embedded room demo <https://conversejs.org/demo/embedded.html>`_
Example:
.. code-block:: javascript
.. code-block:: javascript
...
@@ -402,17 +410,13 @@ An example from `the embedded room demo <https://conversejs.org/demo/embedded.ht
...
@@ -402,17 +410,13 @@ An example from `the embedded room demo <https://conversejs.org/demo/embedded.ht
converse.initialize({
converse.initialize({
// other settings removed for brevity
// other settings removed for brevity
blacklisted_plugins: [
blacklisted_plugins: [
'converse-controlbox',
'converse-dragresize',
'converse-dragresize',
'converse-minimize',
'converse-minimize'
'converse-vcard'
],
],
});
});
});
});
.. _`bosh-service-url`:
.. _`bosh-service-url`:
bosh_service_url
bosh_service_url
...
@@ -1466,9 +1470,10 @@ when switching view modes.
...
@@ -1466,9 +1470,10 @@ when switching view modes.
JavaScript builds, you'll still need to use different CSS files depending
JavaScript builds, you'll still need to use different CSS files depending
on the view mode.
on the view mode.
* For ``
overlayed`` this is ``./css/converse
.css``
* For ``
embedded`` you need to use ``./css/converse-muc-embedded
.css``
* For ``fullscreen`` you need ``./css/inverse.css``
* For ``fullscreen`` you need ``./css/inverse.css``
* For ``mobile`` you need to use both ``./css/converse.css`` and ``./css/mobile.css``
* For ``mobile`` you need to use both ``./css/converse.css`` and ``./css/mobile.css``
* For ``overlayed`` this is ``./css/converse.css``
Hopefully in a future release the CSS files will be combined and you'll
Hopefully in a future release the CSS files will be combined and you'll
only need ``converse.css``
only need ``converse.css``
...
@@ -1495,33 +1500,42 @@ By default all the core plugins are already whitelisted.
...
@@ -1495,33 +1500,42 @@ By default all the core plugins are already whitelisted.
These are::
These are::
converse-bookmarks
converse-bookmarks
converse-chatboxes
converse-chatview
converse-chatview
converse-controlbox
converse-controlbox
converse-core
converse-core
converse-disco
converse-dragresize
converse-dragresize
converse-fullscreen
converse-headline
converse-headline
converse-mam
converse-mam
converse-minimize
converse-minimize
converse-muc
converse-muc
converse-muc-embedded
converse-notification
converse-notification
converse-otr
converse-otr
converse-ping
converse-ping
converse-profile
converse-register
converse-register
converse-roomslist
converse-rosterview
converse-rosterview
converse-vcard
converse-singleton
converse-spoilers
converse-vcard'
If you are using a custom build which excludes some core plugins, then you
.. note::
should blacklist them so that malicious scripts can't register their own
If you are using a custom build which excludes some core plugins, then you
plugins under those names. See `blacklisted_plugins`_ for more info.
should blacklist them so that malicious scripts can't register their own
plugins under those names. See `blacklisted_plugins`_ for more info.
An example from `the embedded room demo <https://conversejs.org/demo/embedded.html>`_
Example:
.. code-block:: javascript
.. code-block:: javascript
require(['converse-core', 'converse-muc-embedded'], function (converse) {
require(['converse-core', 'converse-muc-embedded'], function (converse) {
converse.initialize({
converse.initialize({
// other settings removed for brevity
// other settings removed for brevity
whitelisted_plugins: ['
converse-muc-embedded
']
whitelisted_plugins: ['
myplugin
']
});
});
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment