@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
26 lines (25 loc) • 736 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.placeholder = void 0;
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
var _unsupportedMark = require("../marks/unsupportedMark");
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
var placeholder = exports.placeholder = (0, _adfSchemaGenerator.adfNode)('placeholder').define({
selectable: false,
inline: true,
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
allowNoChildMark: true,
attrs: {
text: {
type: 'string',
default: ''
},
localId: {
type: 'string',
default: null,
optional: true
}
}
});