rx/presenters

View on GitHub
views/mdc/components/rich_text_area.erb

Summary

Maintainability
Test Coverage
<div class="v-rich-text-area-container v-input"
     id="<%= comp.id %>"
     <% if comp.tag %>data-input-tag="<%= comp.tag %>"<% end %>
     <% if comp.dirtyable %>data-dirtyable<% end %>
     <% if comp.height %>data-initial-height="<%= comp.height %>"<% end %>
     <% if comp.resizable %>data-resizable<% end %>
     <% if comp.disabled %>disabled<% end %>>
  <label for="<%= comp.id %>-rta"><%= expand_text(comp.label) %></label>
  <div class="v-rich-text-area"
       id="<%= comp.id %>-rta"
       style="<%= 'width: 100%;' if comp.full_width %>"
       data-name="<%= comp.name %>"
       <%= "data-placeholder='#{comp.placeholder}'" if comp.placeholder %>>
    <%= comp.value %>
  </div>
  <span class="mdl-textfield__error" ><%= comp.hint%></span>
  <p id="<%= comp.id %>-input-helper-text" class="mdc-text-field-helper-text mdc-text-field-helper-text--persistent mdc-text-field-helper-text--validation-msg" aria-hidden="true">
    <%= comp.hint %>
  </p>
  <div class="v-hidden v-rich-text-area--fixed-up-content" hidden aria-hidden="true"></div>
  <%= erb :"components/tooltip", :locals => {comp: comp.tooltip, parent_id: comp.id} %>
</div>