Ritch text editor Readonly mode?

Hi 

I have a doubt, I am coding Blazor Webassembly application version 18.4.0.41

I need to put RTE in readonly mode

This works

   <div class="form-group row">
                <div class="col-sm-12">
                    <SfRichTextEditor @ref="RteObj" @bind-Value="@dModel.COMENTARIOS" CssClass="height:300" Readonly="true">
                        <RichTextEditorToolbarSettings Items="@Tools" Type="ToolbarType.Expand" />
                    </SfRichTextEditor>
                </div>
            </div>

Using variable not works

   <div class="form-group row">
                <div class="col-sm-12">
                    <SfRichTextEditor @ref="RteObj" @bind-Value="@dModel.COMENTARIOS" CssClass="height:300" Readonly="@CAN_EDIT">
                        <RichTextEditorToolbarSettings Items="@Tools" Type="ToolbarType.Expand" />
                    </SfRichTextEditor>
                </div>
            </div>

Please help!


1 Reply 1 reply marked as answer

PM Pandiyaraj Muniyandi Syncfusion Team February 4, 2021 12:13 PM UTC

Hi Jose, 
 
Greetings from Syncfusion support. 
 
We have validated the reported issue with shared sample code snippets, and we couldn’t reproduce the issue from our end. We tried following ways, like your replication procedure. 
 
  • Setting the value directly into Readonly property
  • Assigning the Readonly property value using variable
 
We have prepared video and sample for your reference, get it from below link 
 
 
Can you provide the following details, which help us to provide the solution at earliest? 
  • Modify the shared sample with replication and revert to us.
  • Share the video reference of the issue, which replicate the issue.
 
Regards, 
Pandiyaraj 


Marked as answer
Loader.
Up arrow icon