![]() ![]() ![]() This is a Component that provides a toolbar for easily controlling an editor. This method registers a function that will get called whenver the cursor position changes or a change is made to the styling of the editor at the cursor's position., The callback will be called with an array of actions that are active at the cusor position, allowing a toolbar to respond to changes. setContentFocusHandler(callbackHandler).To know when the title or content are in focus, use the following methods. To focus or blur sections, use these methods To get the content or title HTML, use these asynchronous methods. It is called implicitly by insertImage and insertLink so they should probably never be called directly. prepareInsert saves the current selection, and restoreSelection will replace it after the insertion is done. These methods are used when adding content such as images or links that will intefere with the cursor position. To adjust content, placeholders or css, use these methods showLinkDialog(optionalTitle = '', optionalUrl = '').This method shows a dialog for setting a link title and url, that will be inserted at the current cursor location. RichTextEditor also has methods that can be used on its ref to set styling at the current selection or cursor position: Text that will be used as a placeholder when no text is present in the content section.Īny custom CSS styles that you want to inject to the editor.Ī function that will be called when the editor has been initialized. Text that will be used as a placeholder when no text is present in the title section. HTML that will be rendered in the content section on load. HTML that will be rendered in the title section as soon as the component loads. RichTextEditor takes the following optional props: Simply place this component in your view hierarchy to receive a fully functional Rich text Editor. React-native-zss-rich-text-editor exports two Components and one const dictionary: RichTextEditor Apply from: '././node_modules/react-native-zss-rich-text-editor/adle ' ĬopyEditorHtmlToAppAssets(file( '././node_modules/react-native-zss-rich-text-editor '))Īlso, follow instructions here to add the native react-native-webview-bridge-updated dependency. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |