forked from GitHub/gf-core
translator: expanatory text for local file import
This commit is contained in:
@@ -45,8 +45,8 @@ closed and reopened later. Documents can be saved locally or in the cloud.
|
|||||||
<h2>TODO</h2>
|
<h2>TODO</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Text can be imported by copying and pasting and from local files
|
<li>Text can be imported by copying and pasting and from local files
|
||||||
in browsers that support it (Chrome, Firefox and Opera, but not Safari),
|
(in browsers that support it, currently Chrome, Firefox and Opera, but
|
||||||
but other ways could be added.
|
not Safari), but other ways could be added.
|
||||||
<li>Text can be exported by copying and pasting, but other ways could
|
<li>Text can be exported by copying and pasting, but other ways could
|
||||||
be added.
|
be added.
|
||||||
<li>GF's lexer/unlexer is used to allow for more natural looking text, but
|
<li>GF's lexer/unlexer is used to allow for more natural looking text, but
|
||||||
@@ -64,7 +64,7 @@ closed and reopened later. Documents can be saved locally or in the cloud.
|
|||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<div class=modtime><small>
|
<div class=modtime><small>
|
||||||
<!-- hhmts start --> Last modified: Tue Jun 19 15:54:33 CEST 2012 <!-- hhmts end -->
|
<!-- hhmts start --> Last modified: Tue Jun 19 16:07:15 CEST 2012 <!-- hhmts end -->
|
||||||
</small></div>
|
</small></div>
|
||||||
<address>
|
<address>
|
||||||
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
|
<a href="http://www.cse.chalmers.se/~hallgren/">TH</a>
|
||||||
|
|||||||
@@ -442,7 +442,10 @@ Translator.prototype.import=function(el) {
|
|||||||
// Allow import from local files, if the browers supports it.
|
// Allow import from local files, if the browers supports it.
|
||||||
// See http://www.html5rocks.com/en/tutorials/file/dndfiles/
|
// See http://www.html5rocks.com/en/tutorials/file/dndfiles/
|
||||||
var files=node("input",{name:"files","type":"file"})
|
var files=node("input",{name:"files","type":"file"})
|
||||||
e.insertBefore(files,inp)
|
var extra=wrap("span",[text("Choose a file: "),
|
||||||
|
files,
|
||||||
|
text(" and/or enter text to import below.")])
|
||||||
|
e.insertBefore(extra,inp)
|
||||||
}
|
}
|
||||||
t.view.appendChild(e)
|
t.view.appendChild(e)
|
||||||
e.onsubmit=done
|
e.onsubmit=done
|
||||||
|
|||||||
Reference in New Issue
Block a user