CoCreate-cursor

A simple component of HTML5, CSS and pure JavaScript. Easy configuration using data attributes and highly stylizable, whose objective is to provide a shared cursor in an html element (input, textarea or div [content-editable])

Install

npm install cocreate-cursors

Or you can use cdn link:

https://cdn.cocreate.app/CoCreate-cursors.min.js

Usage

This is cursor reference

                                
<form array="module_activities" class="margin:20px">
      <textarea
        cursors="true"
        array="module_activities"
        object="5edda7608d5c7a7d656edecd"
        key="text_area"
        placeholder="Text Area"
        class="floating-label">
      </textarea>
</form>
                                
                            

This is cursor reference

Attributes

  • - string optional

    It has no data attributes, the cursor starts automatically for elements with realtime = true

Demo