cancel
Showing results for 
Search instead for 
Did you mean: 

Richtext control read only mode

scundall
Champ in-the-making
Champ in-the-making
Is there a way how to use richtext control provided by alfresco in read-only mod?
4 REPLIES 4

scundall
Champ in-the-making
Champ in-the-making
The code below does not work …
<field id="bpm:workflowDescription" label="Instructions" read-only="true">
                  <control template="/org/alfresco/components/form/controls/richtext.ftl">
                     <control-param name="style">width: 95%</control-param>
                     <control-param name="editorAppearance">explorer</control-param>
                  </control>
               </field>

scundall
Champ in-the-making
Champ in-the-making
<code ><field id="bpm:workflowDescription" label="Instructions" read-only="true">
                  <control template="/org/alfresco/components/form/controls/richtext.ftl">
                     <control-param name="style">width: 95%</control-param>
                     <control-param name="editorAppearance">explorer</control-param>
                  </control>
               </field>

</code>

govinda
Champ in-the-making
Champ in-the-making

stuhlgang
Champ in-the-making
Champ in-the-making
It is possible to disable the control via share configuration as follows:


<field id="bpm:workflowDescription" label="Instructions">
   <control template="/org/alfresco/components/form/controls/richtext.ftl">
      <control-param name="style">width: 95%</control-param>
      <control-param name="editorAppearance">custom</control-param>
                <control-param name="editorParameters">
                     theme: "advanced",
                     readonly: 1
                </control-param>
   </control>
</field>


It works for me.