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
How to use youtube plugin in React Viewer
youtube plugin
"@toast-ui/react-editor": "^2.1.2"
In 1.x, i use Editor.factory and set viewer value true to display content
Editor.factory
viewer
true
this.editor = new Editor.factory({ el: document.querySelector('#viewContainer'), viewer: true, initialValue: this.state.markdown, exts: [ 'videoPlugin', ], })
After upgrade to 2.x, is there a recommended way to use video plugin in Viewer ?
ToastEditor.codeBlockManager.setReplacer only work in Editor
Editor
The text was updated successfully, but these errors were encountered:
#899
Sorry, something went wrong.
const videoPlugin = (editor) => { const { codeBlockManager } = Object.getPrototypeOf(editor).constructor codeBlockManager.setReplacer('youtube', function(sourceId) { …… }
this way work in Editor and Viewer
style: toEqual to toBe (ref #1007)
829acd7
No branches or pull requests
Summary
How to use
youtube plugin
in React ViewerVersion
"@toast-ui/react-editor": "^2.1.2"
Additional context
In 1.x, i use
Editor.factory
and setviewer
valuetrue
to display contentAfter upgrade to 2.x, is there a recommended way to use video plugin in Viewer ?
ToastEditor.codeBlockManager.setReplacer only work in
Editor
The text was updated successfully, but these errors were encountered: