source: branches/ray/plugins/PasteText/popups/paste_text.html @ 761

Last change on this file since 761 was 761, checked in by ray, 13 years ago

updated branch

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 1.7 KB
Line 
1<!DOCTYPE html
2     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
6  <title>Paste Text</title>
7  <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
8  <script type="text/javascript" src="../../../popups/popup.js"></script>
9<script type="text/javascript">
10
11function init() {
12
13  __dlg_translate("PasteText");
14  __dlg_init(null,{width:600,height:480});
15
16  var param = window.dialogArguments;
17  document.getElementById("paragraphOption").style.display = (param.showParagraphOption) ? '' : 'none';
18   document.getElementById("insertParagraphs").checked = param.newParagraphDefault;
19  document.getElementById("inputArea").focus();
20}
21
22function onCancel() {
23  __dlg_close( null );
24  return false;
25}
26
27function onOK() {
28  var ret = {};
29  ret.text = document.getElementById("inputArea").value;
30  ret.insertParagraphs = document.getElementById("insertParagraphs").checked;
31  __dlg_close( ret );
32}
33window.onload = init;
34</script>
35</head>
36
37<body class="dialog">
38<div class="title">Paste as Plain Text</div>
39<textarea name="inputArea" id="inputArea" cols=22 rows=5 style="width: 100%; height: 315px; margin-top: 8px; margin-bottom: 4px; font-family: monospace; font-size: 11px;"></textarea>
40<div id="buttons">
41<label for="insertParagraphs" style="float:left;display:none" id="paragraphOption">
42<input type="checkbox" id="insertParagraphs" /> Insert text in new paragraph
43</label>
44    <button type="button" name="ok" onclick="return onOK();">OK</button>
45    <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
46</div>
47</body>
48</html>
Note: See TracBrowser for help on using the repository browser.