We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
custom Plugins (e.g youtubePlugin example) don't work in viewer while they work in editor. Imported chart plugin works fine in both editor and viewer
https://codesandbox.io/s/damp-glitter-wiims
Viewer should show youtube video as well as chart - it only shows chart and not custom plugin youtube
viewer:
editor:
The text was updated successfully, but these errors were encountered:
fixed by using this setup from #899 (comment) :
working:
youTubePlugin(editor) { const { codeBlockManager } = Object.getPrototypeOf(editor).constructor codeBlockManager.setReplacer("youtube", youtubeId => { [...] return `<div id="${wrapperId}"></div>`; }); }
not working:
import TuiEditor from '@toast-ui/editor' youTubePlugin() { TuiEditor.codeBlockManager.setReplacer('youtube', (youtubeId) => { [...] return `<div id="${wrapperId}"></div>` }) },
Please update your documentation! Thanks :)
Sorry, something went wrong.
feat: use squire official (fix #1018)
3ebcdd6
#1018 #1043 #1030 #1031 #1037 #1038 #1039 #1040 #1041 #1042
No branches or pull requests
Describe the bug
custom Plugins (e.g youtubePlugin example) don't work in viewer while they work in editor. Imported chart plugin works fine in both editor and viewer
To Reproduce
https://codesandbox.io/s/damp-glitter-wiims
Expected behavior
Viewer should show youtube video as well as chart - it only shows chart and not custom plugin youtube
Screenshots
viewer:
editor:
The text was updated successfully, but these errors were encountered: