From d12ea8bd892eb90824f573ecfb58b1144f9b97b1 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 30 Sep 2014 13:38:49 +0200 Subject: [PATCH] Added second example with existing content at loading. --- .../app/controllers/layout_ref.js.coffee | 8 ++- .../app/views/layout_ref/content.jst.eco | 61 ++++++++++++++++++- 2 files changed, 67 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/layout_ref.js.coffee b/app/assets/javascripts/app/controllers/layout_ref.js.coffee index 565af9ba4..ae3c276d9 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee @@ -38,7 +38,7 @@ class Content extends App.ControllerContent @textareaHeight = open: 148 - closed: 38 + closed: 20 @dragEventCounter = 0 @attachments = [] @@ -64,6 +64,12 @@ class Content extends App.ControllerContent render: -> @html App.view('layout_ref/content')() + @$('[contenteditable]').ce({ + mode: 'textonly' + multiline: true + maxlength: 2500 + }) + showOrganisationMembers: (e) => e.stopPropagation() diff --git a/app/assets/javascripts/app/views/layout_ref/content.jst.eco b/app/assets/javascripts/app/views/layout_ref/content.jst.eco index 71f7d8254..73017ceaf 100644 --- a/app/assets/javascripts/app/views/layout_ref/content.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/content.jst.eco @@ -42,7 +42,7 @@
-

Article Reply

+

Article Reply #1

@@ -101,6 +101,65 @@
+

Article Reply #2

+ +
+
+
+
+
+
with some default text
+ +
+ +
+
+ Antwort eingeben oder + + Dateien wählen.. + + +
+
+
+
+ <%- @T(' Uploading ') %> (0%) ... +
+
+
<%- @T('Cancel Upload') %> +
+
+
+
+
+
+
+ <%- @T('Drop Files here') %> +
+
+
+
+
+
+ +
+

User Selection