0

I need to load html data in my view which I will receive from backend for eg:

<h2>Title</h2><br>
<p>description here</p>

Which will look something like the below image

enter image description here

I need to edit the contents in the view, lets say add few more paragraph and change the fonts and send the edited content back in html format with the added paragraph and font tags.

How should I go about doing this? I need it to support from iOS 5 and above.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Francis F
  • 3,157
  • 3
  • 41
  • 79

2 Answers2

1

Might be a bit late, some answers here for other readers: Using iOS 5 rich text editor

The Native iOS class to render HTML: UIWebView, to edit HTML UIWebView using its delegate: UiWebViewDelegate. I have not tested these, nor I have examples.

The best Open Source project I've found so far to render and edit HTML, for iOS7 only:

This is the other one that is a basic implementation of CKEditor for iOS:

Other Open Source projects: (Use https:// on the pseudo links below) To edit HTML:

... not part of the question, but if you want to Render HTML within your iOS app:

Raptor
  • 53,206
  • 45
  • 230
  • 366
JMerinoH
  • 88
  • 8
-1

adding two more which is updated and can be used above ios 11 and written in swift

-AztecEditor link

-updated version of
RichEditorView link

Abdul Karim
  • 4,359
  • 1
  • 40
  • 55
  • why did this goes negative, it's a helpful link to work on , can any moderator explain this – Abdul Karim Nov 16 '22 at 06:00
  • it is duplicate answer, you have pasted same answer for multiple questions. Instead you can share your answer link. – Arshad Shaik Mar 08 '23 at 10:39
  • @ArshadShaik i just added two more resource, if you have time , you can check, none of them you will find it in this post, the RichEditorview is updated version of webkit, where the answer is still using the old webview – Abdul Karim Mar 08 '23 at 11:17