Sha256: 87bb0fcdb9529f0032fa4651d12a2ebbe1c7ccc6f12ea61192c358a6e28d2810

Contents?: true

Size: 1.58 KB

Versions: 20

Compression:

Stored size: 1.58 KB

Contents

<p>
  <label for="element_content" class="desc">Paragraph Content (English)</label>
  <%= f.text_area :content, rows: 6, cols: 80, id: "element_content_#{element.id}" %>
</p>
<% @page.question_sheet.languages.select(&:present?).each do |language| %>
  <p>
    <label for="element_content_translations_<%= language %>" class="desc">Paragraph Content (<%= Fe::LANGUAGES[language] %>)</label>
    <%= text_area_tag "element[content_translations][#{language}]", @element.content_translations[language], rows: 6, cols: 80 %>
  </p>
<% end %>

<p>
  <label for="element_css_class" class="desc">Css Class</label>
  <%= f.text_field :css_class %>
</p>

<script type="text/javascript" charset="utf-8">
$(function() {
  if (typeof(CKEDITOR) !== "undefined") {
    if (CKEDITOR.instances["element_content_<%= element.id %>"]) {
      CKEDITOR.instances["element_content_<%= element.id %>"].destroy();
    }
    editor = CKEDITOR.replace( "element_content_<%= element.id %>", {
          toolbar : [["Bold", "Italic", "-", "NumberedList", "BulletedList", "-", "Link"]],
          on :
          {
              instanceReady : function( ev )
              {
                  // Output paragraphs as <p>Text</p>.
                  this.dataProcessor.writer.setRules( "p",
                      {
                          indent : false,
                          breakBeforeOpen : true,
                          breakAfterOpen : false,
                          breakBeforeClose : false,
                          breakAfterClose : true
                      });
              }
          }

        }
      );
  }
});
</script>

Version data entries

20 entries across 15 versions & 1 rubygems

Version Path
fe-2.1.6.1 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.1.6 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.1.5 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.1.4 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.1.3 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.1.2 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.1.1 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.8 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.6 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.5 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.4 app/views.current/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.4 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.3 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.3 app/views.current/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.2 app/views.current/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.2 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.1 app/views.current/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.1 app/views/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.0 app/views.current/fe/admin/panels/_prop_paragraph.html.erb
fe-2.0.0 app/views/fe/admin/panels/_prop_paragraph.html.erb