Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docxtemplater-image-module
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
npm
docxtemplater-image-module
Commits
8cab9112
Commit
8cab9112
authored
Dec 03, 2014
by
Edgar Hipp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed description from arguments
parent
d0b348e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
coffee/index.coffee
+4
-4
No files found.
coffee/index.coffee
View file @
8cab9112
...
...
@@ -43,7 +43,7 @@ class ImageModule
subContent
=
new
SubContent
(
xmlTemplater
.
content
)
.
getInnerTag
(
templaterState
)
.
getOuterXml
(
'w:t'
)
newText
=
@
getImageXml
(
rId
,
"description"
)
newText
=
@
getImageXml
(
rId
)
if
@
options
.
centered
==
true
subContent
=
new
SubContent
(
xmlTemplater
.
content
)
.
getInnerTag
(
templaterState
)
...
...
@@ -52,13 +52,13 @@ class ImageModule
xmlTemplater
.
replaceXml
(
subContent
,
newText
)
null
getImageXml
:
(
rId
,
imageDescription
=
""
)
->
getImageXml
:
(
rId
)
->
return
"""
<w:drawing>
<wp:inline distT="0" distB="0" distL="0" distR="0">
<wp:extent cx="1905000" cy="1905000"/>
<wp:effectExtent l="0" t="0" r="0" b="0"/>
<wp:docPr id="2" name="Image 2" descr="
#{
imageDescription
}
"/>
<wp:docPr id="2" name="Image 2" descr="
image
"/>
<wp:cNvGraphicFramePr>
<a:graphicFrameLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/>
</wp:cNvGraphicFramePr>
...
...
@@ -66,7 +66,7 @@ class ImageModule
<a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:pic xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture">
<pic:nvPicPr>
<pic:cNvPr id="0" name="Picture 1" descr="
#{
imageDescription
}
"/>
<pic:cNvPr id="0" name="Picture 1" descr="
image
"/>
<pic:cNvPicPr>
<a:picLocks noChangeAspect="1" noChangeArrowheads="1"/>
</pic:cNvPicPr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment