(defaultValue: string, extendWith: SchemaMap = {})
| 63 | const makeMap = Tools.makeMap, each = Tools.each, extend = Tools.extend, explode = Tools.explode; |
| 64 | |
| 65 | const createMap = (defaultValue: string, extendWith: SchemaMap = {}): SchemaMap => { |
| 66 | const value = makeMap(defaultValue, ' ', makeMap(defaultValue.toUpperCase(), ' ')); |
| 67 | return extend(value, extendWith); |
| 68 | }; |
| 69 | |
| 70 | // A curated list using the textBlockElements map and parts of the blockElements map from the schema |
| 71 | // TODO: TINY-8728 Investigate if the extras can be added directly to the default text block elements |
no test coverage detected
searching dependent graphs…