Fork of DraftJS Plugins
This repo is a fork of DraftJS Plugins. It fixes the issue with the inline-toolbar going beyond of viewport by maintaining toolbar width and adjusting pointer tip accordingly.
Files Fixed
The fix touches two files:
Description
- Fix the width of toolbar to 147px
- Check where the toolbar lies on the viewport. If it lies at a left/right distance of less than 73.5px (147/2 px), then fix it's left/right distance as 73px and change the pointer tip to the selected word.