nhn / toast-ui.react-editor

This repository is DEPRECATED! GO TO 👉 https://github.com/nhn/tui.editor/tree/master/apps/react-editor
MIT License
45 stars 12 forks source link

the property "exts={['scrollSync']}" not effective #20

Open hxj123 opened 4 years ago

hxj123 commented 4 years ago

Version

Test Environment

Current Behavior

I want to use "scrollSync" exts, but it not effective

<Editor
  placeholder='请输入文章的内容'
  previewStyle='vertical'
  height='100%'
  initialValue={origin}
  initialEditType='markdown'
  useCommandShortcut={true}
  hideModeSwitch={true}
  exts={['scrollSync']}
/>

Expected Behavior

C-likethis123 commented 4 years ago

Hello, it's a late reply but I realised that importing this css file fixes the issue: import 'tui-editor/dist/tui-editor-extScrollSync'.

Feel free to ask any questions regarding this.

hxj123 commented 4 years ago

Hello, it's a late reply but I realised that importing this css file fixes the issue: import 'tui-editor/dist/tui-editor-extScrollSync'.

Feel free to ask any questions regarding this.

it's good, thank you very much.