{"id":13773554,"url":"https://github.com/AvinashSKaranth/android-summernote","last_synced_at":"2025-05-11T05:34:52.257Z","repository":{"id":6266478,"uuid":"55232330","full_name":"AvinashSKaranth/android-summernote","owner":"AvinashSKaranth","description":"Offline WYSIWYG HTML Editor for Android App","archived":false,"fork":false,"pushed_at":"2021-12-03T09:44:30.000Z","size":305,"stargazers_count":108,"open_issues_count":12,"forks_count":21,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-02-15T02:32:53.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://nashapp.in","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AvinashSKaranth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-01T12:56:10.000Z","updated_at":"2023-11-02T03:37:22.000Z","dependencies_parsed_at":"2022-08-06T19:15:25.847Z","dependency_job_id":null,"html_url":"https://github.com/AvinashSKaranth/android-summernote","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/AvinashSKaranth%2Fandroid-summernote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvinashSKaranth%2Fandroid-summernote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvinashSKaranth%2Fandroid-summernote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AvinashSKaranth%2Fandroid-summernote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AvinashSKaranth","download_url":"https://codeload.github.com/AvinashSKaranth/android-summernote/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253523689,"owners_count":21921815,"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":[],"created_at":"2024-08-03T17:01:17.060Z","updated_at":"2025-05-11T05:34:47.218Z","avatar_url":"https://github.com/AvinashSKaranth.png","language":"Java","funding_links":[],"categories":["Connectors"],"sub_categories":[],"readme":"# android-summernote\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-android--summernote-green.svg?style=true)](https://android-arsenal.com/details/1/3392)\n\nTo Add Offline WYSIWYG HTML Editor to your Android App\n\n\u003cimg src=\"http://ultraimg.com/images/android-summernote.png\" alt=\"android-summernote\" width=\"240\" height=\"\"\u003e\n\nAdd this to your dependencies\n\n```groovy\ncompile 'in.nashapp.androidsummernote:androidsummernote:1.0.5'\n```\n\nAdd to Manifest (For adding images from Device)\n```xml\n\u003cuses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\n```\n\nAdd to your XML \n```xml\n\u003cin.nashapp.androidsummernote.Summernote\n    android:id=\"@+id/summernote\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"/\u003e\n```\n\nLink the view in your Java Code\n```java\nSummernote summernote = (Summernote) findViewById(R.id.summernote);\nsummernote.setRequestCodeforFilepicker(5);//Any Number which is not being used by other OnResultActivity\n```\n\nPass the on onActivityResult to Summernote. (Enables attaching images to the Document)\n```java\n@Override\nprotected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n    super.onActivityResult(requestCode, resultCode, intent);\n    summernote.onActivityResult(requestCode, resultCode, intent);\n}\n```\n\nRetrive HTML Data\n```java\nString html_data = summernote.getText()\n```\n\nSet HTML Data\n```java\nsummernote.setText(\"\u003ch2\u003eHello World.\u003ch2\u003e\u003cbr\u003e\u003ch3\u003e I'am Summernote\u003c/h3\u003e\");\n```\n\nKnown Issues\n\n* Calling from Fragment\n\nCurrent Resolution\n\nUsing summernote as a static variable in the Fragment and calling onActivityResult from the Main Activity\n```java\n// In Fragment\nstatic Summernote summernote;\n\n// In Activity\nFragment.summernote.onActivityResult(requestCode, resultCode, intent);\n```\n**License** \nApache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAvinashSKaranth%2Fandroid-summernote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAvinashSKaranth%2Fandroid-summernote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAvinashSKaranth%2Fandroid-summernote/lists"}