![]() ![]() The packages in this monorepo are published to npm and used by WordPress as well as other software projects. It’s made up of multiple self-contained software packages, each with a specific purpose. This is an individual package that’s part of the Gutenberg project. The native ReactAztecText view and the JavaScript code are handled by the ReactAztecManager Disables the shouldCollapseSpaces flag in the HTMLConverter in order to maintain all spaces inserted by the userįrom the Aztec Library for Android.Sets the characterToReplaceLastEmptyLine property in the HTMLConverter to be zero width space character to avoid the insertion of a newline at the end of the text blocks.enter/new lines to allow handling of custom split actions.delete/backspace to allow handling of custom merge actions.Overrides the insertText and deleteBackward methods in order to detect the following keypresses:.Overrides the onPaste method to intercept paste actions and send them to the JS implementation.Overlays a UILabel to display placeholder text.RCTAztecView adds the following custom behaviours to the TextView class: On iOS we use a native view called RCTAztecView that inherits an Aztec TextView class. This can be used to scroll the container of the component to keepĬalled when then selection of the native component changed. Top ↑ onCaretVerticalPositionChange( value: Event )Ĭalled when the vertical position of the caret changed. ![]() Top ↑ onContentSizeChange( value: Event )Ĭalled when then native component size changed. Possible values: Left, Right, Center, Justify.Ĭalled when a key that belongs the triggerKe圜odes props is pressed.Ĭalled when then native component is focused on, for example when tapped.Ĭalled when then native component lost the focus.Ĭalled when then native component has content pasted in. Placeholder text to show when the field is empty. The color to use for the caret and for the selection background. When active removes the new line resulting from an enter keypress when that enter keypress is splitting the block. ![]() The font style (bold, italic, ) that will be used as default to display the HTML content. The font weight that will be used as default to display the HTML content. The font size that will be used as default to display the HTML content. ![]() The font family that will be used as default to display the HTML content. The maximum width the component can have. The minimum width the component can have. The maximum width an image that is part of content provided can have. If active disables the contextual menu that allows setting text attributes like Bold/Italic/Strikethrough. This is reflected on current state of the cursor. If the editable field can contain multiple paragraphs, this property can be set to create new paragraphs on Enter. The block type, should contain a tagName prop that indicates what is the HTML tag that this editor displays.īy default, a line break will be inserted on Enter. eventCount: if it has a value it’s because this change was originated from the native event.Type: Object, with the following attributes:.Object with current HTML string to make editable and selection/caret position. Top ↑ Usage import RCTAztecView from RichText = () => ( Render a rich text area that displays the HTML content provided. This component provides rich text editing capabilities that emulate a subset of the HTML functionality. This package provides a component, AztecView, that wraps around the Aztec Android and Aztec iOS libraries in a React Native component. Browse: Home / Block Editor Handbook / Reference Guides / Package Reference / Edit ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |