355
edits
No edit summary |
No edit summary |
||
| Line 90: | Line 90: | ||
Yes there is! Simply type <code>Control-J</code> and you will flip between. You will notice that when the editor is out of focus the cursor will turn into a red block. In the command line the ">" prompt will turn orange when focus is applied. | Yes there is! Simply type <code>Control-J</code> and you will flip between. You will notice that when the editor is out of focus the cursor will turn into a red block. In the command line the ">" prompt will turn orange when focus is applied. | ||
==== Why did you decide to use Canvas and not contentEditable / DOM approaches ==== | |||
This project started as a challenge to see if we could create something fast and scale up to large files. We have tried to do this via the DOM in the past and always ran into bottlenecks and pain. The Canvas approach got us out from under the DOM and we thought it was an interesting path to go on. We wanted to share this with the community to see if it is interesting. We are game for people to try to do this using contentEditable / DOM / other techniques and would love to see those side by side. This was just our approach. | |||
==== Why did you choose Prototype? ==== | |||
This can become a religious war. There isn't a huge method to the reasoning on us choosing Prototype. There are a couple of things: | |||
* We did some jQuery work, but since the app doesn't actually use the DOM a lot, it didn't feel like the best choice for us. We love jQuery, but it lacked some of the helpers that we enjoy with Prototype (array stuff, OO stuff etc). | |||
* We use Prototype now, but this will probably change. We want components such as the editor to play nice, and adding global objects makes us a bit concerned. Also, with the comet work, and other pieces, it may make sense for us to actually turn to Dojo which has all of this already. Still working this all out. | |||
==== Why doesn't Bespin support i18n well? ==== | ==== Why doesn't Bespin support i18n well? ==== | ||
| Line 102: | Line 113: | ||
[https://wiki.mozilla.org/Labs/Bespin/KnownIssues#I_am_having_strange_issues_with_my_key_bindings I am having strange issues with my key bindings] | [https://wiki.mozilla.org/Labs/Bespin/KnownIssues#I_am_having_strange_issues_with_my_key_bindings I am having strange issues with my key bindings] | ||
==== Why is copy and paste not working with the system clipboard? ==== | ==== Why is copy and paste not working with the system clipboard? ==== | ||
edits