unlock maxlength

This commit is contained in:
Amberstone 2024-11-22 01:10:40 +09:00
parent d88c531b5b
commit 1e5e1ecf3d
Signed by: amber
GPG key ID: 094B0E55F98D8BF1

View file

@ -71,7 +71,10 @@ function editor_html($id, $content, $is_dhtml_editor = true)
}
$smarteditor_class = $is_dhtml_editor ? "smarteditor2" : "";
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" maxlength=\"65536\" style=\"width:100%;height:300px\">$content</textarea>";
if (!isset($is_admin)) {
$maxlength = "maxlength=\"65536\" ";
}
$html .= "\n<textarea id=\"$id\" name=\"$id\" class=\"$smarteditor_class\" {$maxlength}style=\"width:100%;height:300px\">$content</textarea>";
$html .= "\n<span class=\"sound_only\">웹 에디터 끝</span>";
return $html;
}