essepuntato / rash

Research Articles in Simplified HTML (RASH) Framework includes a markup language defined as a subset of HTML+RDF for writing scientific articles, and related tools to convert it into different formats, to extract data from it, etc.
https://w3id.org/people/essepuntato/papers/rash-peerj2016.html
ISC License
82 stars 24 forks source link

Avoiding editing of immutable objects #88

Closed essepuntato closed 7 years ago

essepuntato commented 7 years ago

The content of some of the objects visualised by "rash.js" (cross-ref, section numbering, etc.) cannot be modified by the user.

gspinaci commented 7 years ago

Update

Caption of figures are added as non editable objects, using contenteditable=false. In this case captions are not editable but they are removeable.

gspinaci commented 7 years ago

Proposal

Probably another way is to mark every "immutable" objects (captions, section[role]>h1) with a label like data-immutable, and call a function to transform them into a not editable and not removeable element (but also selecteable).

gspinaci commented 7 years ago

Todo

Understand how and why backspace press is blocked before a immutable reference. This happens with crossreferences pointing to bliblioentries