package org.wordpress.aztec.plugins.shortcodes.spans

import android.text.TextPaint
import android.text.style.CharacterStyle
import android.text.style.ParagraphStyle
import org.wordpress.aztec.AztecAttributes
import org.wordpress.aztec.spans.*
import org.xml.sax.Attributes

class CaptionShortcodeSpan(override var attributes: AztecAttributes,
                           override val TAG: String, override var nestingLevel: Int)
    : IAztecInlineBlockSpan
package org.wordpress.aztec.plugins.shortcodes.spans

import android.graphics.Typeface
import android.text.style.StyleSpan
import org.wordpress.aztec.AztecAttributes
import org.wordpress.aztec.spans.*

class CaptionShortcodeSpan(override var attributes: AztecAttributes,
                           override val TAG: String, override var nestingLevel: Int)
    : StyleSpan(Typeface.ITALIC), IAztecBlockSpan {

    override var endBeforeBleed: Int = -1
    override var startBeforeCollapse: Int = -1
}
Make the caption span a block span and styled as italic
Make the caption span a block span and styled as italic

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