Skip to content

load local html on dash? #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
highwindmx opened this issue Jan 19, 2019 · 5 comments
Closed

load local html on dash? #546

highwindmx opened this issue Jan 19, 2019 · 5 comments

Comments

@highwindmx
Copy link

Hi, Dash!

I am trying to create my own app to organize my notes which are saved in html format.
I am wondering if dash can load these contents and display:

  1. like in flask I can use {{content|safe}} method
  2. Or any other way round by base64 en-decoding?

Thanks

@highwindmx
Copy link
Author

I think it is dup of #118 Rendering raw HTML

@highwindmx
Copy link
Author

Or any idea about how to embed a WYSIWYG editor in dash app?

@ned2
Copy link
Contributor

ned2 commented Jan 20, 2019

As you probably already gathered, for rendering raw HTML, there is the dash-dangerously-set-inner-html component, which as the name implies, can be dangerous.

The best course of action for a WYSIWYG editor would be to find a React component that does what you want and convert it into a Dash component, as discussed in the Dash Guide.

Questions like these are better posted over on the Dash community forum, where you're more likely to get a discussion going.

@highwindmx
Copy link
Author

@ned2 wow, very quick respond, now I can try to dig it follow your suggestion. thank you so much.

@ned2
Copy link
Contributor

ned2 commented Jan 20, 2019

No worries :) good luck!

@ned2 ned2 closed this as completed Jan 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants