deleted crap files, removed (not-that-)epic-editor

This commit is contained in:
jomo
2014-04-10 01:55:34 +02:00
parent 2d68cbf358
commit b740c4db3a
16 changed files with 6 additions and 530 deletions

View File

@@ -21,26 +21,4 @@ $(function(){
})
});
}, 4000);
var editor = new EpicEditor({
container: 'epic',
textarea: 'epic-textarea',
basePath: '/assets',
clientSideStorage: false,
theme: {
base: '/base/epiceditor.css',
preview: '/preview/github.css',
editor: '/editor/epic-light.css'
},
button: {
bar: true
},
autogrow: {
minHeight: 300
}
});
try {
editor.load();
} catch (e) {}
});

View File

@@ -11,6 +11,5 @@
// GO AFTER THE REQUIRES BELOW.
//= require jquery
//= require jquery_ujs
//= require epiceditor
//= require app
//= require moment

View File

@@ -3,7 +3,4 @@
*= require style.css
*= require screen.css
*= require mobi.css
*/
@import 'base/epiceditor';
@import 'preview/github';
@import 'editor/epic-light';
*/

View File

@@ -3,4 +3,4 @@
\[yt\]\(([a-zA-Z0-9\-_]+)\)
https://www.youtube.com/embed/{id}?theme=light&iv_load_policy=3&showinfo=1&showsearch=0&rel=0&modestbranding&hd=1&autohide=1
https://www.youtube.com/embed/{id}?theme=light&iv_load_policy=3&showinfo=1&showsearch=0&rel=0&modestbranding&hd=1&autohide=1&html5=1

View File

@@ -2,8 +2,7 @@
<p id="markdown-note">Note: You can use <%= link_to "Markdown", "https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet", target: "_blank" %>!</p>
<%= simple_form_for @post do |f|%>
<%= f.input :title, :label => false %>
<%= f.hidden_field :content, id: "epic-textarea", :label => false, input_html: {class: "full-width vertical"} %>
<div id="epic"></div>
<%= f.hidden_field :content, :label => false, input_html: {class: "full-width vertical"} %>
<%= f.submit "Update Post", class: "btn blue left" %>
<% end %>
<%= button_to "Delete post", @post, :method => "delete", :confirm => "Delete post & comments forever?", class: "btn red right" %>

View File

@@ -2,7 +2,6 @@
<p id="markdown-note">Note: You can use <%= link_to "Markdown", "https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet", target: "_blank" %>!</p>
<%= simple_form_for @post do |f|%>
<%= f.input :title, placeholder: "Title" %>
<%= f.hidden_field :content, id: "epic-textarea", placeholder: "Text", input_html: {class: "full-width vertical"} %>
<div id="epic"></div>
<%= f.hidden_field :content, placeholder: "Text", input_html: {class: "full-width vertical"} %>
<%= f.submit "Create Post", class: "btn blue left" %>
<% end %>

View File

@@ -2,8 +2,7 @@
<p id="markdown-note">Note: You can use <%= link_to "Markdown", "https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet", target: "_blank" %>!</p>
<%= simple_form_for [@thread.forum, @thread] do |f|%>
<%= f.input :title, label: false %>
<%= f.hidden_field :content, id: "epic-textarea", label: false, input_html: {class: "full-width vertical"} %>
<div id="epic"></div>
<%= f.hidden_field :content, label: false, input_html: {class: "full-width vertical"} %>
<%= f.submit "Update thread", class: "btn blue left" %>
<% end %>
<%= button_to "Delete thread", [@thread.forum, @thread], :method => "delete", :confirm => "Delete thread & comments forever?", class: "btn red right" %>

View File

@@ -16,7 +16,6 @@
<div id="form_inputs">
<%= f.text_field :title, placeholder: "Title" %>
</div>
<%= f.hidden_field :content, id: "epic-textarea", placeholder: "Text" %>
<div id="epic"></div>
<%= f.hidden_field :content, placeholder: "Text" %>
<p><%= f.submit "Create thread", class: "btn blue" %></p>
<% end %>