{"id":19001023,"url":"https://github.com/ant-design-blazor/ueditor-blazor","last_synced_at":"2025-04-22T17:09:21.571Z","repository":{"id":42056764,"uuid":"321241393","full_name":"ant-design-blazor/ueditor-blazor","owner":"ant-design-blazor","description":"A wysiwyg rich text web editor based on UEditor and Blazor.","archived":false,"fork":false,"pushed_at":"2023-10-31T16:21:56.000Z","size":27660,"stargazers_count":54,"open_issues_count":4,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T16:56:14.261Z","etag":null,"topics":["blazor","editor","wysiwyg"],"latest_commit_sha":null,"homepage":"https://ant-design-blazor.github.io/ueditor-blazor/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ant-design-blazor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":"ant-design-blazor","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["http://jamesyeung.cn/qrcode/alipay.jpg","http://jamesyeung.cn/qrcode/wepay.jpg"]}},"created_at":"2020-12-14T05:17:02.000Z","updated_at":"2025-01-20T19:16:00.000Z","dependencies_parsed_at":"2022-08-12T03:31:51.338Z","dependency_job_id":"6c4853de-7dd8-4bf9-a67f-52b557762339","html_url":"https://github.com/ant-design-blazor/ueditor-blazor","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-design-blazor%2Fueditor-blazor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-design-blazor%2Fueditor-blazor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-design-blazor%2Fueditor-blazor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ant-design-blazor%2Fueditor-blazor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ant-design-blazor","download_url":"https://codeload.github.com/ant-design-blazor/ueditor-blazor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249279439,"owners_count":21242928,"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":["blazor","editor","wysiwyg"],"created_at":"2024-11-08T18:09:33.750Z","updated_at":"2025-04-16T21:31:54.433Z","avatar_url":"https://github.com/ant-design-blazor.png","language":"JavaScript","funding_links":["https://opencollective.com/ant-design-blazor","http://jamesyeung.cn/qrcode/alipay.jpg","http://jamesyeung.cn/qrcode/wepay.jpg"],"categories":[],"sub_categories":[],"readme":"# ueditor-blazor\n\nA wysiwyg rich text web editor based on UEditor and Blazor.\n\n# 💿 Current Version\n\n- Release: [![UEditorBlazor](https://img.shields.io/nuget/v/UEditorBlazor.svg?color=red\u0026style=flat-square)](https://www.nuget.org/packages/UEditorBlazor/)\n- Development: [![UEditorBlazor](https://img.shields.io/nuget/vpre/UEditorBlazor.svg?color=red\u0026style=flat-square)](https://www.nuget.org/packages/UEditorBlazor/)\n\n# Usage\n\n1. Install the package\n    ```bash\n      $ dotnet add package UEditorBlazor -v 0.1.0-*\n    ```\n\n2. Import js resources\n    ```html\n        \u003cscript\u003e\n            window.NEDITOR_UPLOAD = \"/api/upload\";\n        \u003c/script\u003e\n        \u003cscript src=\"_content/UEditorBlazor/neditor.config.js\"\u003e\u003c/script\u003e\n        \u003cscript src=\"_content/UEditorBlazor/neditor.all.min.js\" defer\u003e\u003c/script\u003e\n        \u003cscript src=\"_content/UEditorBlazor/neditor.service.js\"\u003e\u003c/script\u003e\n        \u003cscript src=\"_content/UEditorBlazor/ueditor-blazor.js\"\u003e\u003c/script\u003e\n    ```\n\n3. That's all! Then you can use the `UEditor.Editor` component.\n    ```razor\n    \u003cUEditor.Editor @ref=\"editor\" @bind-Value=\"value\" @bind-Html=\"html\" Height=\"500px\" Width=\"700px\" /\u003e\n    \n    @code {\n        string value = \"Hello Blazor!\";\n        string html;\n    \n        Editor editor;\n    }\n    ```\n# Image Loading\n\nIf you want to implement custom image loading, follow the instructions listed below:\n\n### 1. Setting the upload api endpoint:\n```html\n\u003cscript\u003e\n    window.NEDITOR_UPLOAD = \"/api/upload\";\n\u003c/script\u003e\n```\n\nIn `neditor.service.js`, be sure in `getActionUrl` function, return `window.NEDITOR_UPLOAD`.\n\n### 2. Image upload server implementing:\n\n#### 2.1 Before adding an api controller, register some stuffs\n\n```c#\nservices.AddControllers();\n```\n\n#### 2.2 Add a directory to store images\n\n```c#\napp.UseStaticFiles(new StaticFileOptions {\n    FileProvider = new PhysicalFileProvider(image_path),\n    RequestPath = \"/I\"\n})\n```\n\nThe `/I` suffix is used to show preview images. You can modify `image_path` and `/I` meantime in the controller.\n\n#### 2.3 Write an api controller to process `/api/upload` request\n\nSee `ImageController.cs`. Remember the `root` and `result.url` variants should be the same as mentioned in `2.2`.\n\n### 3. Enjoy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fant-design-blazor%2Fueditor-blazor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fant-design-blazor%2Fueditor-blazor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fant-design-blazor%2Fueditor-blazor/lists"}