Platform Detection
The editor automatically detects the platform and adapts its behavior accordingly:Mobile Toolbar
AppFlowy Editor includes a mobile-optimized toolbar with touch-friendly controls.Basic Mobile Toolbar Setup
Custom Mobile Toolbar Items
You can create custom toolbar items with actions or menus:Mobile Icons
AppFlowy Editor provides a set of mobile-optimized SVG icons:Available Mobile Icons
AFMobileIcons.textDecorationAFMobileIcons.boldAFMobileIcons.italicAFMobileIcons.underlineAFMobileIcons.strikethroughAFMobileIcons.codeAFMobileIcons.colorAFMobileIcons.linkAFMobileIcons.heading/h1/h2/h3AFMobileIcons.list/bulletedList/numberedListAFMobileIcons.checkboxAFMobileIcons.quoteAFMobileIcons.dividerAFMobileIcons.close
Mobile Selection Service
The mobile selection service handles touch gestures, magnifier, and selection handles.Mobile Scroll Service
The mobile scroll service provides smooth scrolling optimized for touch interactions:Touch Gesture Handling
Mobile platforms support various touch gestures:- Single Tap: Place cursor at tap position
- Double Tap: Select word at tap position
- Triple Tap: Select paragraph
- Long Press: Show context menu
- Drag: Adjust selection
Mobile-Specific Configuration
Platform-Specific Behavior
iOS-Specific
- Native iOS selection handles
- iOS-style magnifier
- iOS haptic feedback
- iOS context menu style
Android-Specific
- Material Design selection handles
- Android-style magnifier
- Material context menu
- Android haptic feedback
Best Practices
- Test on Real Devices: Always test mobile interactions on physical devices, not just simulators
- Touch Target Size: Ensure toolbar items are at least 44x44 points for easy tapping
- Gesture Conflicts: Be careful with custom gestures that might conflict with editor gestures
- Keyboard Behavior: Handle keyboard show/hide events appropriately
- Orientation: Support both portrait and landscape orientations