[
https://issues.apache.org/jira/browse/TOBAGO-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573234#action_12573234
]
Volker Weber commented on TOBAGO-626:
-------------------------------------
if you need the TextRange to insert the pasteText on curserPos:
if (typeof textarea.selectionStart != 'undefined') {
/* für neuere auf Gecko basierende Browser */
start = textarea.value.substr(0,textarea.selectionStart);
end = textarea.value.substr(textarea.selectionEnd);
textarea.value = start + pasteText + end;
} else if (typeof document.selection != 'undefined') {
/* für Internet Explorer */
...
> Input length restriction for tc:textarea
> ----------------------------------------
>
> Key: TOBAGO-626
> URL: https://issues.apache.org/jira/browse/TOBAGO-626
> Project: MyFaces Tobago
> Issue Type: Improvement
> Components: Themes
> Affects Versions: 1.0.16
> Environment: All / IE
> Reporter: Helmut Swaczinna
> Attachments: TOBAGO-626-core.diff, TOBAGO-626-theme-scarborough.diff,
> TOBAGO-626-theme-standard.diff
>
>
> The length of the input text in a tc:textrea should be restricted by the
> browser like it is in tc:in
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.