mul118 / shinyMCE

tinyMCE editor for Shiny apps
Other
19 stars 18 forks source link

renderUI + tinyMCE fails if tinymce lib not loaded beforehand #1

Open mul118 opened 10 years ago

mul118 commented 10 years ago

4: Multiple Editors via renderUI:

runApp(list( ui = fluidPage(

With renderUI, necessary to load the resource first:

singleton(tags$head(tags$script(src ="//tinymce.cachefly.net/4.0/tinymce.min.js"))),
fluidRow(
  column(6, offset = 3,
         h2('tinyMCE Editors:'),
         uiOutput('editor1'),
         hr(),
         uiOutput('editor2')
  )
)

),

server = function(input, output, session) { output$editor1 <- renderUI({tinyMCE('editor1', 'Editor 1')}) output$editor2 <- renderUI({tinyMCE('editor2', 'Editor 2')}) } ))

LucasMelo3 commented 4 years ago

Dear @mul118 , thank you for this great package!

Is there any possibility that this solution could work offline? That doesn't depend on tinymce.min.js? I tried downloading the file and placing inside www folder but it doesn't work unless I use that link...