You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constquillRef=useRef(null);consthandleSave=async()=>{try{consthtmlContent=awaitquillRef.current.getHtml();console.log("HTML Content: ",htmlContent);// Logs an empty string}catch(error){console.error("Error: ",error);}};return(<QuillEditorref={quillRef}initialHtml="<p>Initial Content</p>"onHtmlChange={({ html })=>console.log("HTML Changed: ",html)}// Does not trigger/>);
The text was updated successfully, but these errors were encountered:
zahrafalah
changed the title
getHtml() returns empty string in react-native-cn-quill version x.x.x
getHtml() returns empty string in react-native-cn-quill version 0.7.18
Oct 1, 2024
Description
When calling
getHtml()
after editing content in the editor, the method returns an empty string.Steps to Reproduce
QuillEditor
component in a React Native project.initialHtml
prop.getHtml()
and observe that it returns an empty string.Expected Behavior
getHtml()
should return the current HTML content in the editor.Actual Behavior
getHtml()
returns an empty string.Environment
Package version: "react-native-cn-quill": "^0.7.18"
React Native version: "react-native": "^0.74.3"
Platform: Web
WebView version: "react-native-webview": "^11.0.0",
Code Example
The text was updated successfully, but these errors were encountered: