@atlaskit/adf-schema
Version:
Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs
26 lines (25 loc) • 722 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.placeholder = void 0;
var _adfNode = require("@atlaskit/adf-schema-generator/adfNode");
var _unsupportedMark = require("../marks/unsupportedMark");
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
var placeholder = exports.placeholder = (0, _adfNode.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
}
}
});