ElementalCode / elemental

A drag and drop block-based coding environment for front-end web technologies.
http://elementalcode.herokuapp.com
35 stars 10 forks source link

Elemental Text Editor (Please read whole post) #159

Open towerofnix opened 8 years ago

towerofnix commented 8 years ago

Wouldn't it be nice if you could replace the script editor contents with a custom text editor?

But wait! There are already places that have online webpage text editors! What's the point?

Well, the idea is while in the text editor, the block palette will stay open (but you can optionally close it). You can still drag blocks from the palette into the editor. If you drag a p block (we really need a p block) into the editor, it will insert <p></p> in, with the cursor set between <p> and </p>.

Here are a few other things to note about the text editor that I can't really put inside a paragraph if I want to keep this post organized:

One of the primary goals of ETE is to be a separate editor that works with the block editor.

Anywho opinions? :package:

matthewr6 commented 8 years ago

I need a tl;dr :package: I like it, but I personally think the site and editor core need more work. Feel free to start on it, though - it would be good for others to understand my code :P

rumanti commented 8 years ago

I love the idea. One more step to "real" website designing- reducing the "big jumps".

This would also mean more support for copy-pasting love! I also love the abbreviation - ETE :P

PolyEdge commented 8 years ago

I'll write a parser to highlight the markup and auto-cleanup.

matthewr6 commented 8 years ago

This is really far future - we should complete the editor before working on this.

towerofnix commented 8 years ago

So.. we added the far-future tag.

PolyEdge commented 8 years ago

I... meant... not... right... now... o.O

matthewr6 commented 8 years ago

Oh ok :P

towerofnix commented 8 years ago

We can create the editor first and then we can relax for a few years and then we can create this :)

matthewr6 commented 8 years ago

@liam4 please read through and understand (and maybe clean up) my JS if you haven't already

towerofnix commented 8 years ago

I haven't worked on Elemental in ages but I guess I can clean up stuff now :P