Skip to content

Commit

Permalink
Merge branch 'multirowselect'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Apr 27, 2009
2 parents 230385c + ae5920a commit 5347c23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Tests/UserTests/Element/Element.Forms.all.html
Expand Up @@ -10,7 +10,7 @@ <h2><a name="element.gettextinrange" id="element.gettextinrange">Element.getText

<style>input.example {clear: both;width: 500px;display: block;}</style>
text in range (click the input to execute):
<input class="example" value="0123456789" id="ip1" onclick="EFexample(this, 'getTextInRange(2,5)', $(this).getTextInRange(2,5))"><input class="example">
<input class="example" value="0123456789" id="ip1" onclick="EFexample(this, 'getTextInRange(2,5)', $(this).getTextInRange(2,5))" /><input class="example" />
</p>

</div>
Expand All @@ -25,7 +25,7 @@ <h2><a name="element.getselectedtext" id="element.getselectedtext">Element.getSe

<p>
selected text (select some text to execute):
<input class="example" value="0123456789" id="ip2" onclick="EFexample(this, 'getSelectedText', $(this).getSelectedText())"><input class="example">
<input class="example" value="0123456789" id="ip2" onclick="EFexample(this, 'getSelectedText', $(this).getSelectedText())" /><input class="example" />
</p>

</div>
Expand All @@ -41,7 +41,7 @@ <h2><a name="element.getselectedrange" id="element.getselectedrange">Element.get
<textarea class="example" value="0123456789" id="ip3" onclick="EFexample(this, 'getSelectedRange', JSON.encode($(this).getSelectedRange()))">
0123456789 0123456789 0123456789
</textarea>
<input class="example">
<input class="example" />
</p>

</div>
Expand All @@ -58,7 +58,7 @@ <h2><a name="element.selectrange" id="element.selectrange">Element.selectRange</
<textarea class="example" id="ip4" onclick="EFexample(this, 'selectRange(2,5)', ''); $(this).selectRange(2,5)">
0123456789 0123456789 0123456789
</textarea>
<input class="example">
<input class="example" />
</p>

</div>
Expand All @@ -71,7 +71,7 @@ <h2><a name="element.insertatcursor" id="element.insertatcursor">Element.insertA

<p>
insertAtCursor (click anywhere to insert the example):
<input class="example" value="0123456789" id="ip6" onclick="EFexample(this, 'insertAtCursor(\'!!!INSERTED!!!\')', $(this).insertAtCursor('!!!INSERTED!!!'))"><input class="example">
<input class="example" value="0123456789" id="ip6" onclick="EFexample(this, 'insertAtCursor(\'!!!INSERTED!!!\')', $(this).insertAtCursor('!!!INSERTED!!!'))" /><input class="example" />
</p>

</div>
Expand All @@ -83,10 +83,13 @@ <h2><a name="element.insertaroundcursor" id="element.insertaroundcursor">Element
</p>

<p>
insertAroundCursor (select some text or click anywhere to insert "<" and ">" around the text):
insertAroundCursor (select some text or click anywhere to insert "<" and ">" around the text, test multiple lines):

<input class="example" value="0123456789" id="ip7" onclick="EFexample(this, 'insertAroundCursor({before: \'<\', after: \'>\'})', $(this).insertAroundCursor({before: '<', after: '>'}))"><input class="example">
<textarea class="example" cols="20" rows="3" id="ip7" onclick="EFexample(this, 'insertAroundCursor({before: \'<\', after: \'>\'})', $(this).insertAroundCursor({before: '<', after: '>'}))">0123456789
second line
third line</textarea><input class="example" />
</p>
</div>

<script>function EFexample(input, txt, value){
try {
Expand Down
3 changes: 3 additions & 0 deletions Tests/assets/tests.css
Expand Up @@ -154,6 +154,9 @@ textarea {
padding: 4px;
height: 25px;
}
textarea.example {
height: auto;
}
#testFrameContainer textarea {
width: 391px;
height: 100px;
Expand Down

0 comments on commit 5347c23

Please sign in to comment.