Changeset 30020


Ignore:
Timestamp:
2015-07-14T05:01:33+12:00 (9 years ago)
Author:
Georgiy Litvinov
Message:

Fix for a bug in the new online editor

File:
1 edited

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>
Note: See TracChangeset for help on using the changeset viewer.