kazzkiq / CodeFlask

A micro code-editor for awesome web pages.
https://kazzkiq.github.io/CodeFlask/
MIT License
1.07k stars 120 forks source link

How to use the code from the editor? #53

Closed humaxi closed 6 years ago

humaxi commented 6 years ago

Hello,

Is this a toy for the user, or something that's just there for aesthetics? Because it seems impossible to actually use the code inside the editor.

In my use case I have 2 editors that and the code inside needs to be send to the server and processed, how can I achive that with this script, if possible by default.

humaxi commented 6 years ago

update: I did implement this feature now, by adding a getCode function. If you're interested let me know..

kazzkiq commented 6 years ago

You're right. Right now the only way to get the code is using .onUpdate() or adding a value-changed event listener. There should be a way to do that without events fired.

Glad to know you actually solved it. Do you mind linking the code with the solution? Or perhaps opening a PR?

kazzkiq commented 6 years ago

This is implemented in 1.0.