background preloader

Rich text editing

Facebook Twitter

Font Size Intervals. This document is under construction, so you'll encounter a few "staircases into air," non-sequiturs, etc.

Font Size Intervals

Bear with me. If you're really keen on this stuff, and can't wait for me to get it together here, you might do an advanced search at Deja for "fahrner pixel" and review the threads turned up from the "mozilla" newsgroups. Note: This document contains exhibits that are styled extensively with Cascading Style Sheets (CSS1). These exhibits are known not to display with a useful degree of accuracy in any released version of Netscape Navigator/Communicator.

I have certified adequate accuracy only in recent versions of MS Internet Explorer. Abstract This document discusses the strengths and weaknesses of various deployed and recommended methods of specifying font sizes in Web documents and application interfaces, and proposes a harmonization. The problem Generalities Font size modulation is a fundamental typographic design technique. Specifics This is a given size of "medium" text.

Insert html at caret in a contenteditable div. JavaScript get clipboard data on paste event (Cross browser) UIWebView secrets - part3 - How to properly call ObjectiveC from Javascript - Techno Barje. Let’s change the subject: this time no more talks about memory but always on UIWebView component.

UIWebView secrets - part3 - How to properly call ObjectiveC from Javascript - Techno Barje

When we use this component for something else than just displaying webpages, like building UI with HTML, Javascript, … We often want to call Javascript functions from objective C and the opposite. Call Javascript function from Objective-C: The first move is easily done with the following piece of code: // In your Javascript files: function myJavascriptFunction () { // Do whatever your want! } // ----------------------------------- // And in your Objective-C code: // Call Javascript function from Objective-C: [webview stringByEvaluatingJavaScriptFromString:@"myJavascriptFunction()"]; Call Objective-C function from Javascript: But calling objective-c from a Javascript function is not easy as Iphone SDK doesn’t offer any native way to do this!

(a very extremely plenty much advised practice!) What’s wrong with UIWebViewDelegate, shouldStartLoadWithRequest and location change ? Rich Text Editing : A Simple Start (Part 1) Welcome to part one of the iOS 5 Rich Text Editing Series.

Rich Text Editing : A Simple Start (Part 1)

In this series of iOS/html text edit tutorials we’ll be looking at creating a simple Rich Text Editor which you can easily implement in your own apps. This tutorial is part of a series: Rich Text Editing : A Simple Start (Part 1) Rich Text Editing : Validation (Part 2) Rich Text Editing : Highlighting and UIMenuController (Part 3) Rich Text Editing : Fonts (Part 4) Rich Text Editing : Undo and Redo (Part 5) Rich Text Editing : Inserting Images (Part 6) Rich Text Editing : Draggable Images (Part 7) Bonus: Rich Text Editing: Sample Project Normally people look at creating a Rich Text Editor to be an extremely difficult task as it means having to build it from scratch using the Core Text framework in combination with the UITextInput protocol.

This other mysterious option is UIWebView, as of iOS 5 contentEditable can be set to true in a web view, this enables the user to edit all content inside a web page. Let’s do this! Iphone - How to create a rich Text Editor using the new iOS 5 for the iPad. Iphone - Using iOS 5 rich text editor.