git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
word/edit: track touch events in crop area
[sheet.git]
/
word
/
edit.plp
diff --git
a/word/edit.plp
b/word/edit.plp
index 0f212b86702d05e211cbc2edea6fa52c414e8e31..40bf8afbb97547b3b3639261d4db4d3ded4fd2af 100644
(file)
--- a/
word/edit.plp
+++ b/
word/edit.plp
@@
-10,8
+10,6
@@
Html({
raw => <<'EOT',
<link rel="stylesheet" type="text/css" media="all" href="/word/editor.css" />
<script src="/word/editor.js"></script>
raw => <<'EOT',
<link rel="stylesheet" type="text/css" media="all" href="/word/editor.css" />
<script src="/word/editor.js"></script>
-<script src="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.min.js"></script>
-<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/croppie/2.6.5/croppie.min.css" />
EOT
});
EOT
});
@@
-262,7
+260,7
@@
for my $col (@wordcols) {
printf '<span class=inline>';
print $row->input($col => $attr);
if (my $imgsrc = $attr->{-src}) {
printf '<span class=inline>';
print $row->input($col => $attr);
if (my $imgsrc = $attr->{-src}) {
- printf('<
img id="%spreview" src="/%s" alt="%s"%s /
>',
+ printf('<
span id="%spreview"><img src="/%s" alt="%s"%s /></span
>',
$col, $_, $row->{form}, $col eq 'source' && ' hidden'
) for grep { -e } $imgsrc->($row);
}
$col, $_, $row->{form}, $col eq 'source' && ' hidden'
) for grep { -e } $imgsrc->($row);
}