(text, index)
| 22842 | return this.insertChildParticle(text, index) |
| 22843 | } |
| 22844 | insertChildParticle(text, index) { |
| 22845 | const singleParticle = new Particle(text).getSubparticles()[0] |
| 22846 | const newParticle = this.insertLineAndSubparticles(singleParticle.getLine(), singleParticle.subparticlesToString(), index) |
| 22847 | const stumpParserIndex = this.filter(particle => particle.isHtmlTagParser).indexOf(newParticle) |
| 22848 | this.getShadow().insertHtmlParticle(newParticle, stumpParserIndex) |
| 22849 | return newParticle |
| 22850 | } |
| 22851 | isInputType() { |
| 22852 | return ["input", "textarea"].includes(this.getTag()) || this.get("contenteditable") === "true" |
| 22853 | } |
no test coverage detected