Skip to content
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

Save code in the live editor #25

Open
curvedmark opened this issue Feb 8, 2013 · 3 comments
Open

Save code in the live editor #25

curvedmark opened this issue Feb 8, 2013 · 3 comments

Comments

@curvedmark
Copy link
Owner

maybe use gist.
and use an url like roole.org/#editor:hash

@jamiebuilds
Copy link

👍 Hash: You should mimic how the coffeescript editor does it so you aren't having to host all of that data. Also, I'll contact Chris Coyier about adding Roole support to CodePen

@curvedmark
Copy link
Owner Author

I'm aware its editor, but I don't think embedding the code in the url is the right way to do it, for the following reasons:

  • the embedded code is escaped, so the result url is urgly
  • browsers can only handle a limited length of url, although the code is usually short, nothing prevents a user to write some serious code.
  • pasting the url is hard, e.g., you don't want to paste it directly to an irc channel
  • asking users to use a url shortening service is user-unfriendly

@jamiebuilds
Copy link

Okay, you can do what you want but you'll have to store all of the data it generates, which may be hard to keep up with

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