I add regex that get placeholder to modules/text.php file.
elseif ( preg_match( '/^placeholder:([a-zA-Zа-яёА-ЯЁ_]+)$/u', $option, $matches ) ) {
$placeholder_att = $matches[1];
}
and
if ( '' !== $placeholder_att )
$atts .= sprintf( ' placeholder="%s"', $placeholder_att );
In english all work fint, but now I have problem with russian symbols. If I type placeholder value on russian, element does not appear at all
I need form element like this:
<input type=”text” name=”text” placeholder=”text” />