Skip to content

Commit

Permalink
docs: Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
svalvaro committed Nov 13, 2024
1 parent 333879f commit cd51326
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

[Quill](https://quilljs.com/) is an open-source JavaScript library to generate rich text editors. This R package makes it easy to create Quill editors from R.

```r
library(quill)
quill()
```
![](man/figures/README-example.png)

## Installation
Expand Down Expand Up @@ -34,11 +38,13 @@ ui <- fluidPage(

server <- function(input, output, ...) {
...
output$text_editor <- renderQuill(quill())
output$text_editor <- renderQuill({
quill(toolbar = toolbar_options(code = TRUE))
})

# You can listen what the user is writing in HTML, JSON, and plain text
observeEvent(input$text_editor, {
get_editor_content(input$text_editor, format = "HTML")
observeEvent(input$text_editor_content, {
get_editor_content(input$text_editor_content, format = "HTML")
}
...
}
Expand Down
Binary file modified man/figures/README-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cd51326

Please sign in to comment.