ppom-textcounter.js row 48
$(".ppom-input-"+data_name+" textarea).textcounter({
to
$(".ppom-input-"+data_name+" textarea, .ppom-input-"+data_name+" input[type=text]").textcounter({
input-textcounter.php
add to get_settings:
,
'input_type' => array (
'type' => 'select',
'title' => __ ( 'Input Type', 'ppom' ),
'desc' => __ ( 'Select text count type.', 'ppom'),
'options' => array('text' => 'text', 'textarea' => 'textarea'),
)
ppom-addon-text-counter.php row 1353
Change
$html .= '<textarea class="form-control ppom-textcounter-id" rows="5"></textarea>';
to
if($meta['input_type']=='text'){
$html .= '<input type="text" class="form-control ppom-textcounter-id"/>';
} else {
$html .= '<textarea class="form-control ppom-textcounter-id" rows="5"></textarea>';
}
These changes seem to be working ok. Let me know if I’m forgettings something…..
Maybe you can add this to the addon.