Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- ✏️ Rich text input with Markdown output
- 🕹️ Imperative API for toggling styles and managing links
- 📋 Native format bar and context menu with formatting options
- 📋 Native context menu with formatting submenu
- 🔍 Real-time style state detection
- 🔗 Auto-link detection with customizable regex
- 🔄 Smart copy/paste with Markdown preservation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ import com.swmansion.enriched.markdown.input.layout.InputLayoutManager
import com.swmansion.enriched.markdown.input.model.FormattingRange
import com.swmansion.enriched.markdown.input.model.InputFormatterStyle
import com.swmansion.enriched.markdown.input.model.StyleType
import com.swmansion.enriched.markdown.input.toolbar.FormatBar
import com.swmansion.enriched.markdown.input.toolbar.InputContextMenu
import com.swmansion.enriched.markdown.utils.input.AutoCapitalizeUtils
import kotlin.math.ceil
Expand Down Expand Up @@ -72,7 +71,6 @@ class EnrichedMarkdownInputView(
private var fontWeightValue: Int = ReactConstants.UNSET

val contextMenu = InputContextMenu(this)
val formatBar = FormatBar(this)
val eventEmitter = InputEventEmitter(this)
private val autoLinkDetector = AutoLinkDetector(formattingStore)
private val detectorPipeline = DetectorPipeline()
Expand Down Expand Up @@ -122,7 +120,6 @@ class EnrichedMarkdownInputView(
if (hasFocus) {
eventEmitter.emitFocus()
} else {
formatBar.dismiss()
eventEmitter.emitBlur()
}
}
Expand Down Expand Up @@ -248,8 +245,6 @@ class EnrichedMarkdownInputView(
}
}

formatBar.onSelectionChanged(selStart, selEnd)

eventEmitter.emitSelection(selStart, selEnd)
eventEmitter.emitState()
}
Expand Down
Loading
Loading