Sign in
Log inSign up

How to split n element by using js

Mohammad shahaparan mojumder's photo
Mohammad shahaparan mojumder
·Jul 10, 2019

I need to show specific content for users who can edit and view.

I am trying to get specific html element for rich editor . - user can edit inside this div content content - user can only read classname="header"

<div classname="main">

<div classname="header"> it can be read only</div>

<div classname="contenteditable">it can be edit only</div> </div> How can i do this by using reactjs

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct