Skip to content

Commit 8e1511e

Browse files
authored
Merge pull request #439 from DigitalCurationCentre/tinymce_issue
Fixed problem of loading tinymce styles for production environment.
2 parents dcc0676 + 92c8ac4 commit 8e1511e

File tree

12 files changed

+12
-13
lines changed

12 files changed

+12
-13
lines changed

app/views/answers/_new_edit.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
<p><%= raw(answer.text) %></p>
7575
<% else %>
7676
<%= text_area_tag('answer[text]', answer.text, id: "answer-text-#{question.id}") %>
77-
<%= tinymce(selector: "#answer-text-#{question.id}", setup: "$.fn.change_answer") %>
77+
<%= tinymce(selector: "#answer-text-#{question.id}", setup: "$.fn.change_answer", content_css: asset_path('application.css')) %>
7878
<% end %>
7979
<%end%>
8080
<% end %>
@@ -90,7 +90,7 @@
9090
<p><%= raw(answer.text) %></p>
9191
<% else %>
9292
<%= text_area_tag('answer[text]', answer.text, id: "answer-text-#{question.id}") %>
93-
<%= tinymce(selector: "#answer-text-#{question.id}", setup: "$.fn.change_answer") %>
93+
<%= tinymce(selector: "#answer-text-#{question.id}", setup: "$.fn.change_answer", content_css: asset_path('application.css')) %>
9494
<% end %>
9595
<% end %>
9696

app/views/guidances/_add_guidance.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
</div>
6464

6565
<br />
66-
<%= tinymce %>
66+
<%= tinymce :content_css => asset_path('application.css') %>
6767
<% end %>
6868
</div>
6969

app/views/guidances/admin_edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
</div>
8383

8484
<br />
85-
<%= tinymce %>
85+
<%= tinymce :content_css => asset_path('application.css') %>
8686
<%end%>
8787
</div>
8888
</div>

app/views/guidances/admin_new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</div>
8080

8181
<br />
82-
<%= tinymce %>
82+
<%= tinymce :content_css => asset_path('application.css') %>
8383
<%end%>
8484
</div>
8585
</div>

app/views/orgs/admin_edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@
7979
</div>
8080
</div>
8181

82-
<%= tinymce %>
82+
<%= tinymce :content_css => asset_path('application.css') %>
8383

app/views/phases/_add_note.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<fieldset class="standard">
1919
<%= label_tag "#{questionid}new_note_text", _('Share note with collaborators') %>
2020
<%= text_area_tag "#{questionid}new_note_text", nil, class: "tinymce" %>
21-
<%= tinymce %>
21+
<%= tinymce :content_css => asset_path('application.css') %>
2222
<input type="submit" class="form-submit new_comment_submit_button" value="<%= _('Save') %>" />
2323
</fieldset>
2424
<% end %>

app/views/phases/admin_add.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<td class="tinymce">
5151
<div class="div_left_icon">
5252
<%= text_area_tag("phase-desc","" , class: "tinymce") %>
53-
<%= tinymce %>
53+
<%= tinymce :content_css => asset_path('application.css') %>
5454
</div>
5555
<div class="div_right_icon">
5656
<%= link_to( image_tag("help_button.png"), "#", class: "phase_desc_popover", rel: "popover", "data-html" => "true", "data-content" => _("Enter a basic description. This will be presented to users on the 'Admin Plan' tab, above the summary of the sections and questions which they will be asked to answer."))%>

app/views/phases/admin_show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<%= stylesheet_link_tag "admin" %>
33
<% javascript 'admin.js' %>
44

5-
<%= tinymce %>
5+
<%= tinymce :content_css => asset_path('application.css') %>
66

77
<h1>
88
<%= @phase.template.title %>

app/views/plans/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
</div>
144144
<% end %>
145145
</div>
146-
<%= tinymce %>
146+
<%= tinymce :content_css => asset_path('application.css') %>
147147
</div>
148148
<div class="div_right">
149149
<a href="#<%= @plan.id %>-export-dialog" data-toggle="modal" class="btn btn-primary"><%= _('Export') %></a>

app/views/templates/admin_new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
<% end %>
4646
</div>
4747
</div>
48-
<%= tinymce %>
48+
<%= tinymce :content_css => asset_path('application.css') %>

0 commit comments

Comments
 (0)