{"id":19760100,"url":"https://github.com/singleware/ui-editor","last_synced_at":"2025-02-28T02:45:11.014Z","repository":{"id":33121454,"uuid":"144020255","full_name":"Singleware/ui-editor","owner":"Singleware","description":"UI editor package.","archived":false,"fork":false,"pushed_at":"2023-03-03T06:00:51.000Z","size":175,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T23:18:03.854Z","etag":null,"topics":["browser","editor","javascript","rich-text-editor","singleware","text-editor","typescript","user-interface"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Singleware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-08T13:48:58.000Z","updated_at":"2022-02-22T12:39:57.000Z","dependencies_parsed_at":"2024-11-12T03:35:22.736Z","dependency_job_id":"1ad1c229-7a1e-48b7-9821-6f971e5b485a","html_url":"https://github.com/Singleware/ui-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Singleware%2Fui-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Singleware","download_url":"https://codeload.github.com/Singleware/ui-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241090523,"owners_count":19907971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","editor","javascript","rich-text-editor","singleware","text-editor","typescript","user-interface"],"created_at":"2024-11-12T03:35:19.077Z","updated_at":"2025-02-28T02:45:10.987Z","avatar_url":"https://github.com/Singleware.png","language":"JavaScript","readme":"# UI-Editor\n\nCustom HTML element to be used as a WYSIWYG editor, this custom element provides a simple way to edit rich texts using the latest browser technologies.\n\n### State Attributes\n\n| Name    | Description                                                                        |\n| ------- | ---------------------------------------------------------------------------------- |\n| empty   | Automatically assigned when there is content into the editor                       |\n| invalid | Automatically assigned when the editor content is required but there is no content |\n\n### Properties\n\n| Name              | Description                                                           |\n| ----------------- | --------------------------------------------------------------------- |\n| empty             | Get the empty state from the editor                                   |\n| name              | Get and set the editor name                                           |\n| value             | Get and set the editor content                                        |\n| defaultValue      | Get and set tje editor default value                                  |\n| required          | Get and set the required state                                        |\n| readOnly          | Get and set the readOnly state                                        |\n| disabled          | Get and set the disabled state                                        |\n| preserveSelection | Get and set the preserve selection state.                             |\n| paragraphType     | Get and set the paragraph tag name                                    |\n| deniedTags        | Get and set the denied tag list                                       |\n| orientation       | Get and set the editor orientation mode. Use: `row` or `column` value |\n| selectedRange     | Get the current selection range                                       |\n| selectedText      | Get the current selection text                                        |\n| selectedHTML      | Get the current selection HTML                                        |\n| selectedStyles    | Get the current selection styles                                      |\n\n### Methods\n\n| Name                | Description                                                                   |\n| ------------------- | ----------------------------------------------------------------------------- |\n| setRemovalState     | Change the removal state of an element.                                       |\n| setRenderingState   | Change the rendering state of an element.                                     |\n| clearSelection      | Removes any active selection in the editor content                            |\n| focus               | Move the focus to the content child into the editor                           |\n| reset               | Reset the content child into the editor to its initial value                  |\n| checkValidity       | Check whether the editor content is valid                                     |\n| formatAction        | Formats the specified tag for the selection or insertion point                |\n| fontNameAction      | Change the font name for the selection or at the insertion point              |\n| fontSizeAction      | Change the font size for the selection or at the insertion point              |\n| fontColorAction     | Change the font color for the selection or at the insertion point             |\n| lineHeightAction    | Change line height for the selection or at the insertion point                |\n| undoAction          | Undoes the last executed command                                              |\n| redoAction          | Redoes the previous undo command                                              |\n| boldAction          | Toggles bold on/off for the selection or at the insertion point               |\n| italicAction        | Toggles italics on/off for the selection or at the insertion point            |\n| underlineAction     | Toggles underline on/off for the selection or at the insertion point          |\n| strikeThroughAction | Toggles strikeThrough on/off for the selection or at the insertion point      |\n| unorderedListAction | Creates a bulleted unordered list for the selection or at the insertion point |\n| orderedListAction   | Creates a numbered ordered list for the selection or at the insertion point   |\n| alignLeftAction     | Justifies the selection or insertion point to the left                        |\n| alignCenterAction   | Justifies the selection or insertion point to the center                      |\n| alignRightAction    | Justifies the selection or insertion point to the right                       |\n| alignJustifyAction  | Justifies the selection or insertion point                                    |\n| outdentAction       | Outdents the line containing the selection or insertion point                 |\n| indentAction        | Indents the line containing the selection or insertion point                  |\n| cutAction           | Removes the current selection and copies it to the clipboard                  |\n| copyAction          | Copies the current selection to the clipboard                                 |\n| pasteAction         | Pastes the clipboard contents at the insertion point                          |\n\n### Slots\n\n| Name    | Description                                               |\n| ------- | --------------------------------------------------------- |\n| toolbar | Element to contain all toolbar controls                   |\n| content | Element to contain all editor data (rich text, html, etc) |\n\n### Events\n\n| Name   | Description                                            |\n| ------ | ------------------------------------------------------ |\n| change | Dispatched when the content into the editor is changed |\n\n## Install\n\nUsing npm:\n\n```sh\nnpm i @singleware/ui-editor\n```\n\n## License\n\n[MIT \u0026copy; Silas B. Domingos](https://balmante.eti.br)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingleware%2Fui-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingleware%2Fui-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingleware%2Fui-editor/lists"}