UNPKG

@atlaskit/editor-core

Version:

A package contains Atlassian editor core functionality

20 lines 995 B
"use strict"; // # What do marks exist? // // Marks are categorised into different groups. One motivation for this was to allow the `code` mark // to exclude other marks, without needing to explicitly name them. Explicit naming requires the // named mark to exist in the schema. This is undesirable because we want to construct different // schemas that have different sets of nodes/marks. // // Groups provide a level of indirection, and solve this problem. For the immediate use-case, one // group called "not_code" would have sufficed, but this an ultra-specialised to code. Object.defineProperty(exports, "__esModule", { value: true }); // Mark group for font styling (e.g. bold, italic, underline, superscript). exports.FONT_STYLE = 'fontStyle'; // Marks group for search queries. exports.SEARCH_QUERY = 'searchQuery'; // Marks group for links. exports.LINK = 'link'; // Marks group for colors (text-color, background-color, etc). exports.COLOR = 'color'; //# sourceMappingURL=groups.js.map