[
http://jira.jboss.com/jira/browse/JBSEAM-2664?page=comments#action_12400406 ]
Nicklas Karlsson commented on JBSEAM-2664:
------------------------------------------
Not a patch but something in the lines of
<script>
function formatText(element, tag) {
if (element.setSelectionRange) {
element.value = element.value.substring(0, element.selectionStart) +
tag + element.value.substring(element.selectionStart, element.selectionEnd) +
tag + element.value.substring(element.selectionEnd, element.value.length);
} else {
var selectedText = document.selection.createRange().text;
if (selectedText != "") {
var newText = tag + selectedText + tag;
document.selection.createRange().text = newText;
}
}
}
</script>
<body>
<form>
<input type="button" value="BOLD"
onclick="formatText(document.getElementById('myta'), '*')"/>
<textarea id="myta" rows="10"
cols="30"></textarea>
</form>
</body>
might work. Have to take a look at it once I get back from vacation...
Select text + choose function places wiki tokens at end of selection
on IE7
---------------------------------------------------------------------------
Key: JBSEAM-2664
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2664
Project: JBoss Seam
Issue Type: Bug
Components: Wiki
Environment: IE7
Reporter: Nicklas Karlsson
Assigned To: Christian Bauer
Minor one here:
1. Select text in forum posting
2. Choose function from dropdown menu (e.g. underline)
3. __ is placed at end of text
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira