Sha256: 390754a83afdca858f47b1218904247cd4187eebe83c9819a8e7869a453b544a
Contents?: true
Size: 688 Bytes
Versions: 140
Compression:
Stored size: 688 Bytes
Contents
if(window.Trix) { window.Trix.config.blockAttributes.default.tagName = 'p'; window.Trix.config.blockAttributes.default.breakOnReturn = true; window.Trix.Block.prototype.breaksOnReturn = function() { const attr = this.getLastAttribute(); const config = Trix.getBlockConfig(attr ? attr : 'default'); return config ? config.breakOnReturn : false; }; window.Trix.LineBreakInsertion.prototype.shouldInsertBlockBreak = function() { if(this.block.hasAttributes() && this.block.isListItem() && !this.block.isEmpty()) { return this.startLocation.offset > 0 } else { return !this.shouldBreakFormattedBlock() ? this.breaksOnReturn : false; } }; }
Version data entries
140 entries across 140 versions & 1 rubygems