KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
P2MSTextView
★ 73
Open GitHub ↗
Rich Text Editor for IOS
Download README (.md)
Explore Similar Repositories
MSTO
:
Market Sentiment Trading Orchestrator
msty-docs
:
No description available.
mstar
:
A high-performance, universal serving framework for any-to-any models.
2019MST-OpenSourceLists
:
米斯特2019年开源项目清单
mstu-nlp-course
:
ML Course created for Bauman Moscow State Technical University
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
P2MSTextView
?
Download (.md)
P2MSTextView (OnGoing) ============ An easy way to enable rich text editing in IOS. This project is inspired by the Evernote's rich text editor. <sup>***Checkout [Development](https://github.com/ptwoms/P2MSTextView/tree/development) branch for the latest progress.***</sup> This is supposed to work on IOS 4.3+. ###Usage Implements "P2MSTextViewDelegate" protocol to receive messages from "P2MSTextView" (optional) P2MSTextView *textView = [[P2MSTextView alloc]initWithFrame:textViewRect]; textView.textViewDelegate = self; [self.view addSubview:textView]; #####Import/Export HTML string //Import HTML [textView importHTMLString:@"Hello <b>W<strike>o</strike><u>r</u><mark>l</mark><i>d</i></b>"]; //export HTML [textView exportHTMLString]; *exported HTML is now fragmented and will improve it later* #####Import/Export Plain string //import text textView.plainText = @"Hello World"; //export text NSString *exported = textView.plainText; ######HTML Mapping NSDictionary *txtFmtReferenceTable = [NSMutableDictionary dictionaryWithObjects: [NSArray arrayWithObjects: [NSNumber numberWithInt:TEXT_BOLD], [NSNumber numberWithInt:TEXT_ITALIC], [NSNumber numberWithInt:TEXT_UNDERLINE], [NSNumber numberWithInt:TEXT_STRIKE_THROUGH], [NSNumber numberWithInt:TEXT_HIGHLIGHT], [NSNumber numberWithInt:PARAGRAPH_BULLET], [NSNumber numberWithInt:PARAGRAPH_NUMBERING], [NSNumber numberWithInt:PARAGRAPH_SECTION], [NSNumber numberWithInt:PARAGRAPH_SUBSECTION], [NSNumber numberWithInt:PARAGRAPH_BLOCK_QUOTE], [NSNumber numberWithInt:PARAGRAPH_NORMAL], [NSNumber numberWithInt:TEXT_FORMAT_NONE], [NSNumber numberWithInt:PARAGRAPH_NORMAL], nil] forKeys: [NSArray arrayWithObjects:@"b", @"i", @"u", @"strike", @"mark", @"ul", @"ol", @"h3", @"h5", @"blockquote", @"li", @"NO_HTML", @"a", nil]]; #####Switching between default Keyboards [textView toggleKeyboard]; #####Show Specific Keyboard [textView showKeyboard:KEYBOARD_TYPE_DEFAULT]; (or) [textView showKeyboard:KEYBOARD_TYPE_FORMAT]; <img src="images/DefaultKB.png" alt="Default Keyboard" width="200"/> <img src="images/FormatKB.png" alt="Format Keyboard" width="200"/> <br /> Refer to **"P2MSTextViewExampleViewController"** for more information. ###Importance Notes >*The code and concepts require improvements and invite the contributors* The current codes are not efficient since I decided not to manipulate directly on **NSAttributedString** when I started working on this project, hoping to reuse the same approach on other platforms. I later will work directly on **NSAttributedString**. Please open an issue or contact <ptwoms@gmail.com> for the bugs or improvement ideas. ###Contributions - Contributions and suggestions are welcome