Skip to content

Commit f4632f5

Browse files
author
Dennis Krüger
committed
wysiwyg
1 parent 73ad43e commit f4632f5

File tree

3 files changed

+30
-15
lines changed

3 files changed

+30
-15
lines changed

app/views/layouts/phrasing.html.erb

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html
2+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3+
<html>
4+
5+
<head>
6+
<title>Phrasing</title>
7+
<%= stylesheet_link_tag "phrasing_engine", media: "all" %>
8+
<%= javascript_include_tag "phrasing_engine" %>
9+
<%= csrf_meta_tag %>
10+
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
11+
</head>
12+
13+
<body>
14+
<div id="page">
15+
<%= render 'phrasing/production_warning' if Rails.env.production? %>
16+
<%= render 'phrasing/menu' %>
17+
<%= render 'phrasing/messages' %>
18+
<%= yield %>
19+
</div>
20+
<script src="https://cdn.ckeditor.com/4.13.0/standard/ckeditor.js"></script>
21+
<script>
22+
$(document).ready(function () {
23+
CKEDITOR.replaceClass = 'editor';
24+
});
25+
CKEDITOR.replace('editor');
26+
</script>
27+
</body>
28+
29+
</html>

app/views/layouts/phrasing.html.haml

-14
This file was deleted.

app/views/phrasing_phrases/edit.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%h2= @phrasing_phrase.key
33
= link_to "Delete Phrase", phrasing_phrase_path(@phrasing_phrase), class: "btn btn-danger delete-phrase", method: :delete, data: { confirm: 'Are you sure?' }
44
= form_for @phrasing_phrase, url: { action: "update" } do |f|
5-
= f.text_area :value, rows: 12
5+
= f.text_area :value, rows: 12, class: 'editor'
66
= f.submit "Update", class: "btn btn-success submit-edit-phrase"
77
%br
88
- unless @phrasing_phrase.versions.empty?

0 commit comments

Comments
 (0)