diff --git a/README.md b/README.md index 7a0d702..0cd57be 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,96 @@ npm install react-native-ckeditor-custom ## Usage -```js -import { multiply } from 'react-native-ckeditor-custom'; +```jsx +import * as React from 'react'; + +import { ActivityIndicator, StyleSheet, Text, View } from 'react-native'; +import CKEditor5 from 'react-native-ckeditor-custom'; + +export default function App() { + const initalData = `
Test
`; + const height = 200; // Example height in pixels + const maxHeight = 400; // Example max height in pixels, or set it to null if not needed + // const colors = {}; + const fontFamily = 'Arial, sans-serif'; // Example font family + const toolbarBorderSize = '1px solid #ccc'; // Example toolbar border size and color + const editorFocusBorderSize = '2px solid #007bff'; // Example editor focus border size and color + const disableTooltips = false; // Set to true to disable tooltips, false otherwise + const placeHolderText = 'Enter your text here'; // Example placeholder text + const editorConfig = { + // Additional editor configuration options if needed (provide an empty object or set to null if not needed) + }; + const style = { + backgroundColor: 'black', + }; + + const onChange = (e: any) => { + // console.log('onChange', e); + }; + + const onError = (e: any) => { + // console.log('onError', e); + }; + + const onFocus = (e: any) => { + console.log('onFocus', e); + }; + + const onBlur = (e: any) => { + // console.log('onChange', e); + }; + + const onLoadEnd = (e: any) => { + // console.log('onLoadEnd', e); + }; + + const renderError = () => { + returnTest
`; + const height = 200; // Example height in pixels + const maxHeight = 400; // Example max height in pixels, or set it to null if not needed + // const colors = {}; + const fontFamily = 'Arial, sans-serif'; // Example font family + const toolbarBorderSize = '1px solid #ccc'; // Example toolbar border size and color + const editorFocusBorderSize = '2px solid #007bff'; // Example editor focus border size and color + const disableTooltips = false; // Set to true to disable tooltips, false otherwise + const placeHolderText = 'Enter your text here'; // Example placeholder text + const editorConfig = { + // Additional editor configuration options if needed (provide an empty object or set to null if not needed) + }; + const style = { + backgroundColor: 'black', + }; - React.useEffect(() => { - multiply(3, 7).then(setResult); - }, []); + const onChange = (e: any) => { + // console.log('onChange', e); + }; + const onError = (e: any) => { + // console.log('onError', e); + }; + + const onFocus = (e: any) => { + console.log('onFocus', e); + }; + + const onBlur = (e: any) => { + // console.log('onChange', e); + }; + + const onLoadEnd = (e: any) => { + // console.log('onLoadEnd', e); + }; + + const renderError = () => { + return