pad.pub0.org/doc/api/embed_parameters.md

48 lines
754 B
Markdown
Raw Normal View History

# Embed parameters
2012-08-03 20:04:06 +00:00
You can easily embed your etherpad-lite into any webpage by using iframes. You can configure the embedded pad using embed paramters.
2012-08-07 18:19:37 +00:00
Example:
Cut and paste the following code into any webpage to embed a pad. The parameters below will hide the chat and the line numbers.
```
<iframe src='http://pad.test.de/p/PAD_NAME?showChat=false&showLineNumbers=false' width=600 height=400></iframe>
```
2012-08-03 20:04:06 +00:00
## showLineNumbers
2012-08-03 20:04:06 +00:00
* Boolean
Default: true
## showControls
2012-08-03 20:04:06 +00:00
* Boolean
Default: true
## showChat
2012-08-03 20:04:06 +00:00
* Boolean
Default: true
## useMonospaceFont
2012-08-03 20:04:06 +00:00
* Boolean
Default: false
## userName
2012-08-03 20:04:06 +00:00
* String
Default: "unnamed"
Example: `userName=Etherpad%20User`
## noColors
2012-08-03 20:04:06 +00:00
* Boolean
Default: false
## alwaysShowChat
2012-08-03 20:04:06 +00:00
* Boolean
Default: false