From 163f747ed478b68967026a7d0d096e919c3c9cfd Mon Sep 17 00:00:00 2001 From: Snuggs Date: Fri, 21 Jul 2017 01:20:03 -0400 Subject: [PATCH 01/25] Add text-editor to web components in examples/index.html --- examples/index.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/index.html b/examples/index.html index 5c83d5068f6..fdea6659847 100644 --- a/examples/index.html +++ b/examples/index.html @@ -41,9 +41,6 @@

Custom Elements

  • <input-output> -
  • - <to-do> -
  • <multiple-choice> @@ -83,6 +80,10 @@

    Components

    From 78391eefe047419190de742292bab3a779ca96a9 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Fri, 21 Jul 2017 01:20:39 -0400 Subject: [PATCH 02/25] Add text-editor to web components in index.html --- index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b401b13125f..5d7d7dcab56 100644 --- a/index.html +++ b/index.html @@ -667,9 +667,6 @@

    Further Learning

  • <input-output> -
  • - <to-do> -
  • <multiple-choice> @@ -711,6 +708,11 @@

    Further Learning

    From f954d4d67510fe7fb9e2bf8353ab4f3c1286cb61 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Fri, 21 Jul 2017 01:21:11 -0400 Subject: [PATCH 03/25] Add `text-editor` directory to examples --- examples/text-editor/index.html | 1 + 1 file changed, 1 insertion(+) create mode 100644 examples/text-editor/index.html diff --git a/examples/text-editor/index.html b/examples/text-editor/index.html new file mode 100644 index 00000000000..f3e333e80d2 --- /dev/null +++ b/examples/text-editor/index.html @@ -0,0 +1 @@ +

    Hello World

    From 4b52d1b4a67ad3304a87dcaaea75108227dbec0a Mon Sep 17 00:00:00 2001 From: Snuggs Date: Fri, 21 Jul 2017 11:00:28 -0400 Subject: [PATCH 04/25] Rough draft of minimum markup without menu --- examples/text-editor/index.html | 44 ++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/examples/text-editor/index.html b/examples/text-editor/index.html index f3e333e80d2..3be4c31cddb 100644 --- a/examples/text-editor/index.html +++ b/examples/text-editor/index.html @@ -1 +1,43 @@ -

    Hello World

    +<text-editor> + + + + + + + + + + +

    <text-editor>

    + See more component examples +
    + + + + + + + + + + + + From aaee5b5cb4befb7d7cfc3ef6d8c97f07916d8f8e Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 23 Jul 2017 12:09:14 -0400 Subject: [PATCH 05/25] Add README.md --- examples/text-editor/README.md | 67 ++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 examples/text-editor/README.md diff --git a/examples/text-editor/README.md b/examples/text-editor/README.md new file mode 100644 index 00000000000..f5a59936430 --- /dev/null +++ b/examples/text-editor/README.md @@ -0,0 +1,67 @@ +# `` + +## HTML: + +```html + + +``` + +## Browser Support + + * IE 9+ + * Chrome 5+ + * Firefox 4+ + * Safari 5+ + * Opera 11.6+ + +## Comparisons + +| library | size (min+gzip) | size (min) | jquery | bootstrap | +|---------------------|-----------------|------------|--------|-----------| +| <text-editor> | 1.11kB | 2.85kB | | | +| pell | 1.11kB | 2.85kB | | | +| medium-editor | 27kB | 105kB | | | +| quill | 43kB | 205kB | | | +| ckeditor | 163kB | 551kB | | | +| summernote | 26kB | 93kB | x | x | +| froala | 52kB | 186kB | x | | +| tinymce | 157kB | 491kB | x | | + + +## Actions + + - Bold + - Italic + - Underline + - Strike-through + - Heading 1 + - Heading 2 + - Paragraph + - Quote + - Ordered List + - Unordered List + - Code + - Horizontal Rule + - Link + - Image + +## Roadmap + + - Justify Center + - Justify Full + - Justify Left + - Justify Right + - Subscript + - Superscript + - Font Name + - Font Size + - Indent + - Outdent + - Clear Formatting + - Undo + - Redo + +### License + +MIT From 9d24cc4b554917a8d6c1be47cc83a84db49be3f7 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 23 Jul 2017 14:08:28 -0400 Subject: [PATCH 06/25] Comment out default styles --- examples/text-editor/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/text-editor/index.html b/examples/text-editor/index.html index 3be4c31cddb..8b5f03aefe7 100644 --- a/examples/text-editor/index.html +++ b/examples/text-editor/index.html @@ -1,7 +1,17 @@ <text-editor> + + + + From 0ee0eb46c9084da85cfa7d298f06cacd40a834a5 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 23 Jul 2017 14:08:59 -0400 Subject: [PATCH 07/25] Add editable article to text-editor --- examples/text-editor/index.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/examples/text-editor/index.html b/examples/text-editor/index.html index 8b5f03aefe7..da783f3ea53 100644 --- a/examples/text-editor/index.html +++ b/examples/text-editor/index.html @@ -27,8 +27,25 @@

    <text-editor>

    +
    This is default text for article
    + + + +
    From cce73b9a71d8df64fabdd27276a2605c89f3aa6b Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 23 Jul 2017 14:43:13 -0400 Subject: [PATCH 12/25] Strip pell stuff --- examples/text-editor/index.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/examples/text-editor/index.html b/examples/text-editor/index.html index 658ce1fc87f..71880de6c2c 100644 --- a/examples/text-editor/index.html +++ b/examples/text-editor/index.html @@ -5,14 +5,6 @@ --> - - - From c5d983d220a18dc56ac0e473f6d2aff9f849d7c5 Mon Sep 17 00:00:00 2001 From: Snuggs Date: Sun, 23 Jul 2017 14:43:29 -0400 Subject: [PATCH 13/25] Create actions map for buttons --- examples/text-editor/index.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/text-editor/index.html b/examples/text-editor/index.html index 71880de6c2c..a6cfa61f2ef 100644 --- a/examples/text-editor/index.html +++ b/examples/text-editor/index.html @@ -44,6 +44,18 @@

    <text-editor>