diff --git a/articles/text_editors_with_contenteditable.article.html b/articles/text_editors_with_contenteditable.article.html
new file mode 100644
index 0000000..946d156
--- /dev/null
+++ b/articles/text_editors_with_contenteditable.article.html
@@ -0,0 +1,4 @@
+
+ I've been playing with an exciting feature of HTML5 that I hadn't heard of: the contentEditable
attribute. It's magical! It just makes anything suddenly be editable in-browser! It also finally provides me with the thing I've been wanting ever since growing dissatisfied with text editors: A way to build a new text editor, without having to actually code up the guts of text movement, manipulation, and entry. Oh, happy day!
+ More on this as the situation progresses.
+
\ No newline at end of file
diff --git a/articles/text_editors_with_contenteditable.template.html b/articles/text_editors_with_contenteditable.template.html
new file mode 100644
index 0000000..ba0ca4e
--- /dev/null
+++ b/articles/text_editors_with_contenteditable.template.html
@@ -0,0 +1,9 @@
+{% extends "articles/article.template.html" %}
+
+{% block title -%}
+contentEditable: Text Editors Made Easy?
+{%- endblock %}
+
+{% block body -%}
+{%- include "articles/text_editors_with_contenteditable.article.html" -%}
+{%- endblock %}
\ No newline at end of file
diff --git a/static/text_editor.html b/static/text_editor.html
index 278e33f..7a189f2 100644
--- a/static/text_editor.html
+++ b/static/text_editor.html
@@ -13,7 +13,6 @@
margin: 0;
}
.block {
- white-space: pre-line;
font-family: monospace;
background-color: white;
padding: 4px;
@@ -41,33 +40,7 @@ When I see the text "if (something)", then I should make a new if block.
["block", "block if"] => ["block", "block if"]
- some kind of preparation code, I guess
- or something
+ some kind of preparation code, I guess
+ or something
@@ -94,16 +67,16 @@ function make_new_else(text_area) {
- some code
- do other thing
- {} | : {} ();
+ some code
+ do other thing
+ {} | : {} ();
while (something)
- update the counters
- hack the gibsons
- do the stuff
+ update the counters
+ hack the gibsons
+ do the stuff
@@ -121,68 +94,58 @@ function make_new_else(text_area) {