substance
Version:
Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing systems.
17 lines (11 loc) • 405 B
JavaScript
import { PropertyAnnotation, Fragmenter } from '../../model'
class Link extends PropertyAnnotation {}
Link.schema = {
type: "link",
title: { type: 'string', optional: true },
url: { type: 'string', 'default': ''}
}
// in presence of overlapping annotations will try to render this as one element
Link.fragmentation = Fragmenter.SHOULD_NOT_SPLIT
Link.autoExpandRight = false
export default Link