-
Notifications
You must be signed in to change notification settings - Fork 471
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
Running on browser #4
Comments
Hey @sarupbanskota, The open source version is an electron app— if you want to get that running, follow the directions in the readme and run
That being said, if you want to get it running in a browser, serving and loading In https://github.com/Pagedraw/pagedraw/blob/master/desktop-app/index.html#L16, notice we set It's pretty easy to see what I'd make a new route, cloning In the new route, you'll have to figure out how to get a docjson (and how to save it). To get started, I recommend just creating a fresh docjson ( There's also a bunch of code that does livecollab, which is beautiful, but requires a bit more refactoring... |
Hi there! what i assume from above conversation is that there is no such a way to run pagedraw with all feathures on a browser, right? |
Not without a little elbow grease :) Why does the Electron app not work for you? |
first: big thanks for your kind answer and support. |
Yeah that’s what Pagedraw was before we open sourced it... |
awesome! if i go with your proposed solution above for making a fresh browser.cjsx, this new file will be the clone of electron-app.cjsx with modifications made on lines 25 - 35 like below, am i right? `//openResults = electron.dialog.showOpenDialog() //if openResults? //else |
You’ll want to comment out the first Put up a pull request! |
thanks for your kind answer, i definitely go for a PR 👍 |
Thanks @jaredp! @pouyamiralayi - do you intend to send a PR to this repo? |
@sarupbanskota yes i am currently figuring out a way to not break functionality for this PR, i will inform you the result in this thread. |
Good day! Can i use something like "import {Editor} from ''pagedraw" to use this in own react component? I suspect that no, but I would like to. Do not plan to do this? Thanks! |
it's not quite that easy, but if you want to muck around in the code you certainly can get something like that working |
Hi @jaredp and co!
I was trying to get Pagedraw to load on a browser locally, and subsequently, deploy it.
I went through the following:
yarn
and thenyarn devserver
If I visit
http://localhost:3000
, I get the message described on #2:This is a placeholder needed for our build system in dev mode. You should never see it.
If I just served
desktop-app/index.html
, I get the following errorAny tips on getting it to work on a local browser? :)
Thank you!
The text was updated successfully, but these errors were encountered: