source: trunk/plugins/PasteText/popups/paste_text.html @ 858

Last change on this file since 858 was 858, checked in by ray, 12 years ago
  • fixed some HTML errors in various files
  • add setValues() to Xinha.PanelDialog?.prototype.show()
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 1.7 KB
RevLine 
[718]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">
[334]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>
[718]9<script type="text/javascript">
[334]10
[718]11function init() {
[334]12
13  __dlg_translate("PasteText");
[718]14  __dlg_init(null,{width:600,height:480});
15
[334]16  var param = window.dialogArguments;
[718]17  document.getElementById("paragraphOption").style.display = (param.showParagraphOption) ? '' : 'none';
18   document.getElementById("insertParagraphs").checked = param.newParagraphDefault;
19  document.getElementById("inputArea").focus();
[334]20}
21
22function onCancel() {
23  __dlg_close( null );
24  return false;
25}
26
27function onOK() {
[718]28  var ret = {};
29  ret.text = document.getElementById("inputArea").value;
30  ret.insertParagraphs = document.getElementById("insertParagraphs").checked;
[334]31  __dlg_close( ret );
32}
[718]33window.onload = init;
[334]34</script>
35</head>
36
[718]37<body class="dialog">
[858]38<div class="title">Paste as Plain Text</div>
39<form>
40<div>
[718]41<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>
[334]42<div id="buttons">
[718]43<label for="insertParagraphs" style="float:left;display:none" id="paragraphOption">
44<input type="checkbox" id="insertParagraphs" /> Insert text in new paragraph
45</label>
46    <button type="button" name="ok" onclick="return onOK();">OK</button>
[334]47    <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
[858]48</div>
49</div>
50</form>
[334]51</body>
[463]52</html>
Note: See TracBrowser for help on using the repository browser.