Editor In View mode

UI Components for React
Post Reply
Posts: 58
Joined: 21 Jan 2015, 22:16

29 Apr 2020, 22:03

Current behavior
Currently I'm using Serenity template and using Editor input to view data coming back from API. I'd like to just view (without allow user to edit) so we don't need Toolbar on the top of Editor. I already try Header empty to see how it works. It overridded all Toolbar buttons but is still showing a header for the Editor.

Expected behavior
Could we have any way just to using Editor to view data without showing Editor' header

Posts: 4569
Joined: 29 Jun 2013, 12:38

30 Apr 2020, 05:07

Please try;

Code: Select all

body .p-editor-container .p-editor-toolbar {
   display: none;


<Editor headerTemplate={<></>} .../>

Posts: 58
Joined: 21 Jan 2015, 22:16

30 Apr 2020, 12:57

Thanks a lot. it works but it impacts to all Editors.

Could you please advice a bit more to see how can I apply to a specific control only?

Sorry I'm not a front-end developer. So please help


Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest