medium-draft
Version:
A medium like rich text editor built upon draft-js with an emphasis on eliminating mouse usage by adding relevant keyboard shortcuts
31 lines (25 loc) • 962 B
JavaScript
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _customStyleMap;
var _constants = require('./constants');
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
/*
Custom style map for custom entities like Hihglight.
*/
var customStyleMap = (_customStyleMap = {}, _defineProperty(_customStyleMap, _constants.Inline.HIGHLIGHT, {
backgroundColor: 'yellow'
}), _defineProperty(_customStyleMap, _constants.Inline.CODE, {
fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
margin: '4px 0',
fontSize: '0.9em',
padding: '1px 3px',
color: '#555',
backgroundColor: '#fcfcfc',
border: '1px solid #ccc',
borderBottomColor: '#bbb',
borderRadius: 3,
boxShadow: 'inset 0 -1px 0 #bbb'
}), _customStyleMap);
exports.default = customStyleMap;