Changeset 30020

Show
Ignore:
Timestamp:
14.07.2015 05:01:33 (4 years ago)
Author:
litvinovg
Message:

Fix for a bug in the new online editor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r29978 r30020  
    8989    <xsl:template name="wrappedSectionText"> 
    9090        <br /><br /> 
    91         <div id="text{@nodeID}" contenteditable="true" class="sectionText"><!-- *** --> 
     91        <div id="text{@nodeID}" class="sectionText"><!-- *** --> 
     92            <xsl:if test="/page/pageRequest/paramList/param[(@name='docEdit') and (@value='on' or @value='true' or @value='1')]"> 
     93                        <xsl:attribute name="contenteditable"> 
     94                    <xsl:text>true</xsl:text> 
     95                </xsl:attribute> 
     96                </xsl:if> 
    9297            <xsl:attribute name="style"> 
    9398                <xsl:choose>