You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i am having trouble with the editor widget. When i run the example code
using Bonito
using Observables
using Hyperscript
Bonito.browser_display()
app = App() do session::Session
editor = CodeEditor("julia"; initial_source="""1 + 1""")
eval_button = Button("eval")
output = Observable(DOM.div())
on(eval_button) do click
src = editor.onchange[]
result = eval(Bonito.parseall(src))
output[] = DOM.div(result)
end
return DOM.div(editor, eval_button, output)
end
server = Server("localhost",8081)
route!(server,"/" => app)
the Editor does not show any code. I had it already running in some older version but now it stopped working with Bonito 4.0. I tested it under both chrome and Firefox (the OS is Opensuse Tumbleweed). Also "markdown" als laguage does not change anything. The Browser Console does not show any error logs.
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
i am having trouble with the editor widget. When i run the example code
the Editor does not show any code. I had it already running in some older version but now it stopped working with Bonito 4.0. I tested it under both chrome and Firefox (the OS is Opensuse Tumbleweed). Also "markdown" als laguage does not change anything. The Browser Console does not show any error logs.
Thanks in advance!
The text was updated successfully, but these errors were encountered: