views/mdc/components/rich_text_area.erb in voom-presenters-0.2.0 vs views/mdc/components/rich_text_area.erb in voom-presenters-2.0.0

- old
+ new

@@ -1,19 +1,22 @@ <div class="v-rich-text-area-container v-input" - <% if comp.tag %> - data-input-tag="<%= comp.tag %>" - <% end %>> - <label for="<%= comp.id %>"><%= expand_text(comp.label) %></label> + 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 %>" - style="<%= 'width:100%;' if comp.full_width %> - <%= "height:#{comp.height};" %>" + 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> - <input type="hidden" name="<%= comp.name %>" value="<%= comp.value %>"/> - <span class="mdl-textfield__error <% if comp.error %> is-invalid<%end%>" ><%= comp.error || comp.hint%></span> + <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.error || comp.hint %> + <%= 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>