Commit acb23e89 by Edgar HIPP

Merge branch '0.x'

parents 103431b1 333cddeb
......@@ -45,6 +45,13 @@ class ImageModule
tagValue = scopeManager.getValue(tag)
tagXml=@manager.getInstance('xmlTemplater').tagXml
tagXmlParagraph = tagXml.substr(0,1)+':p'
if @options.centered==false
outsideElement=tagXml
if @options.centered==true
outsideElement=tagXmlParagraph
startEnd= "<#{tagXml}></#{tagXml}>"
if !tagValue? then return @replaceBy(startEnd,tagXml)
try
......@@ -59,10 +66,8 @@ class ImageModule
size=[@convertPixelsToEmus(sizePixel[0]),@convertPixelsToEmus(sizePixel[1])]
if @options.centered==false
outsideElement=tagXml
newText=@getImageXml(rId,size)
if @options.centered==true
outsideElement=tagXml.substr(0,1)+':p'
newText=@getImageXmlCentered(rId,size)
@replaceBy(newText,outsideElement)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment