INNER CODE UNIT · JavaScript
text
presenta-software/presenta-lib · src/blocks/text/index.js:53
const text = function (el, config) {
const that = this
return new Promise((resolve, reject) => {
const html = config.content || ''
if (!html) return resolve(that)
let rawp = u.rawProps('text', props, config)
const size = getSize(config.scale)
let fsize = size.v
const funit = size.u
const autoscale = config.autoscale
let inlineStyleClasses = ''
inlinestyles.forEach(s => {
if (config[s]) {