forked from bofh/fetsite
42 lines
952 B
Plaintext
42 lines
952 B
Plaintext
<%= tinymce_assets %>
|
|
<%= semantic_form_for @thema do |f| %>
|
|
<%= f.inputs do %>
|
|
<%= f.input :title %>
|
|
<%= f.input :themengruppe %>
|
|
<%= f.input :text, :as=>:tinymce_text%>
|
|
<% end %>
|
|
<%= tinymce %>
|
|
|
|
|
|
<h2>Attachments:</h2>
|
|
<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>
|
|
|
|
<%= f.actions do %>
|
|
<%= f.action :submit, :as => :input %>
|
|
<% end %>
|
|
|
|
<!--
|
|
<% @thema.attachments.each do |attachment| %>
|
|
<ul>
|
|
<li>
|
|
<%= link_to attachment.name, edit_thema_attachment_path(@thema,attachment) %>
|
|
<button type="button" onclick="insertAttachment(<%="\"" + attachment.datei.url + "\""%>,<%="\""+attachment.name+"\""%>)">Insert Me!</button>
|
|
</li>
|
|
</ul>
|
|
<% end %>
|
|
|
|
|
|
<% end %>
|
|
-->
|
|
<!--
|
|
|
|
<script>
|
|
function insertAttachment(url) {
|
|
|
|
tinymce.activeEditor.setContent(tinymce.activeEditor.getContent({format : 'raw'}) + "Test");
|
|
//editor.setContent(editor.getContent + "<img src=\"" + url + "\">")
|
|
}
|
|
</script>
|
|
|
|
-->
|