apiKey
field with your own, which you can get here.editor
attribute. codox.init()
the Froala editor should be fully initialized. In the example code, we ensure that Froala is initialized first by adding an initialized
event hook to Froala's constructor.docId
andusername
should come from your document management service. Codox expects docId
to be globally unique across your service. codox
object. That means if you are running multiple instances of Froala editor on the same page or with in the same application, there should be multiple instances of codox,
one for each Froala editor instance or document fragment (note: each document fragment should be uniquely identifiable). config
parameter is a JSON object with the following key-value pairs:app
(required)
string
docId
(required)
string
user
(required)
object
apiKey
(required)
string
editor
(required)
Froala
autoStart
(optional)
boolean
app
string
'froala'
docId
string
user
object
name
(optional)
string
email
(optional)
string
avatar
(optional)
string
id
(optional)
string
user.name
will be used to render the default text-based initials avatar. To create an image-based avatar, set user.avatar
to the path of the image resource. apiKey
string
editor
Froala
autoStart (optional)
boolean
true
to start the co-editing session automatically on init(config)
. Set to false
to initialize but delay start the co-editing (see the start()
client API). Default setting is true
.