package org.wordpress.aztec.plugins.shortcodes.handlers

import org.wordpress.aztec.handlers.GenericBlockHandler
import org.wordpress.aztec.plugins.shortcodes.spans.CaptionShortcodeSpan

class CaptionHandler : GenericBlockHandler<CaptionShortcodeSpan>(CaptionShortcodeSpan::class.java) {
    override fun handleNewlineInBody() {
        block.end = newlineIndex + 1
    }

    override fun handleNewlineAtTextEnd() {
        block.end = newlineIndex + 1
    }
}
Add a possibility to end a caption with a newline using a block handler
Add a possibility to end a caption with a newline using a block handler

wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android