{"id":18809968,"url":"https://github.com/aryaxt/ios-rich-text-editor","last_synced_at":"2025-04-13T07:50:19.831Z","repository":{"id":8327508,"uuid":"9880061","full_name":"aryaxt/iOS-Rich-Text-Editor","owner":"aryaxt","description":"A Rich Text Editor for iOS","archived":false,"fork":false,"pushed_at":"2016-07-13T09:19:49.000Z","size":1820,"stargazers_count":896,"open_issues_count":34,"forks_count":158,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-04-04T05:08:29.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aryaxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-06T05:34:01.000Z","updated_at":"2024-12-22T00:02:36.000Z","dependencies_parsed_at":"2022-08-19T01:00:42.945Z","dependency_job_id":null,"html_url":"https://github.com/aryaxt/iOS-Rich-Text-Editor","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FiOS-Rich-Text-Editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FiOS-Rich-Text-Editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FiOS-Rich-Text-Editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aryaxt%2FiOS-Rich-Text-Editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aryaxt","download_url":"https://codeload.github.com/aryaxt/iOS-Rich-Text-Editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681494,"owners_count":21144700,"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-11-07T23:18:23.240Z","updated_at":"2025-04-13T07:50:19.809Z","avatar_url":"https://github.com/aryaxt.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"RichTextEditor-iOS [![Version](http://cocoapod-badges.herokuapp.com/v/iOS-Rich-Text-Editor/badge.png)](http://cocoadocs.org/docsets/iOS-Rich-Text-Editor)\n==================\nRichTextEditor for iPhone \u0026amp; iPad\n\nFeatures:\n- Bold\n- Italic\n- Underline\n- StrikeThrough\n- Font\n- Font size\n- Text background color\n- Text foregroud color\n- Text alignment\n- Paragraph Indent/Outdent\n\n![alt tag](https://raw.github.com/aryaxt/iOS-Rich-Text-Editor/master/ipadScreenShot.png)\n\n![alt tag](https://raw.github.com/aryaxt/iOS-Rich-Text-Editor/master/iphoneScreenshot.png)\n\n\nCustom Font Size Selection\n-------------------------\nFont size selection can be customized by implementing the following data source method\n\n```objective-c\n- (NSArray *)fontSizeSelectionForRichTextEditor:(RichTextEditor *)richTextEditor\n{\n\t// pas an array of NSNumbers\n\treturn @[@5, @10, @20, @30];\n}\n```\n\nCustom Font Family Selection\n-------------------------\nFont family selection can be customized by implementing the following data source method\n\n```objective-c\n- (NSArray *)fontFamilySelectionForRichTextEditor:(RichTextEditor *)richTextEditor\n{\n\t// pas an array of Strings\n  // Can be taken from [UIFont familyNames]\n\treturn @[@\"Helvetica\", @\"Arial\", @\"Marion\", @\"Papyrus\"];\n}\n```\n\nPresentation Style\n-------------------------\nYou can switch between popover, or modal (presenting font-picker, font-size-picker, color-picker dialogs) by implementing the following data source method\n```objective-c\n- (RichTextEditorToolbarPresentationStyle)presentarionStyleForRichTextEditor:(RichTextEditor *)richTextEditor\n{\n  // RichTextEditorToolbarPresentationStyleModal Or RichTextEditorToolbarPresentationStylePopover\n\treturn RichTextEditorToolbarPresentationStyleModal;\n}\n```\n\nModal Presentation Style\n-------------------------\nWhen presentarionStyleForRichTextEditor is a modal, modal-transition-style \u0026 modal-presentation-style can be configured\n```objective-c\n- (UIModalPresentationStyle)modalPresentationStyleForRichTextEditor:(RichTextEditor *)richTextEditor\n{\n\treturn UIModalPresentationFormSheet;\n}\n\n- (UIModalTransitionStyle)modalTransitionStyleForRichTextEditor:(RichTextEditor *)richTextEditor\n{\n\treturn UIModalTransitionStyleFlipHorizontal;\n}\n```\n\nCustomizing Features\n-------------------------\nFeatures can be turned on/off by iplementing the following data source method\n```objective-c\n- (RichTextEditorFeature)featuresEnabledForRichTextEditor:(RichTextEditor *)richTextEditor\n{\n   return RichTextEditorFeatureFont | \n          RichTextEditorFeatureFontSize |\n          RichTextEditorFeatureBold |\n          RichTextEditorFeatureParagraphIndentation;\n}\n```\n\nEnable/Disable RichText Toolbar\n-------------------------\nYou can hide the rich text toolbar by implementing the following method. This method gets called everytime textView becomes first responder.\nThis can be usefull when you don't want the toolbar, instead you want to use the basic features (bold, italic, underline, strikeThrough), thoguht the UIMeMenuController\n```objective-c\n- (BOOL)shouldDisplayToolbarForRichTextEditor:(RichTextEditor *)richTextEditor\n{\n   return YES;\n} \n```\n\nEnable/Disable UIMenuController Options\n-------------------------\nOn default the UIMenuController options (bold, italic, underline, strikeThrough) are turned off. You can implement the follwing method if you want these features to be available through the UIMenuController along with copy/paste/selectAll etc.\n```objective-c\n- (BOOL)shouldDisplayRichTextOptionsInMenuControllerForRichTextrEditor:(RichTextEditor *)richTextEdiotor\n{\n   return YES;\n} \n```\n\nCredits\n-------------------------\niPhone popover by werner77\nhttps://github.com/werner77/WEPopover\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryaxt%2Fios-rich-text-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faryaxt%2Fios-rich-text-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faryaxt%2Fios-rich-text-editor/lists"}