package org.wordpress.aztec.spans

import android.graphics.Typeface
import org.wordpress.aztec.AztecAttributes

class AztecStyleItalicSpan(attributes: AztecAttributes = AztecAttributes())
    : AztecStyleSpan(Typeface.ITALIC, attributes)

package org.wordpress.aztec.spans

import android.graphics.Typeface
import org.wordpress.aztec.AztecAttributes

class AztecStyleItalicSpan(attributes: AztecAttributes = AztecAttributes())
    : AztecStyleSpan(Typeface.ITALIC, attributes) {

    override val TAG by lazy {
        when (style) {
            Typeface.ITALIC -> {
                return@lazy "em"
            }
        }
        throw IllegalArgumentException()
    }
}


Make em the default italic tag
Make em the default italic tag

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