apiKey
field with your own, which you can get here.textarea
element specified in the editor
attribute. 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 textarea
elements on the same page or with in the same application, there should be multiple instances of codox,
one for each textarea.
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)
textarea Element
autoStart
(optional)
boolean
app
string
'text'
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
Element
textarea
, in which the co-editing session should be bootstrapped. 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
.