Coder Social home page Coder Social logo

enormego / egotextview Goto Github PK

View Code? Open in Web Editor NEW
733.0 733.0 167.0 574 KB

EGOTextView is a complete drop in replacement for UITextView created by enormego, that adds support for Rich Text Editing. [tags:ios,objective-c,uitextview]

Home Page: http://egoco.de

Objective-C 100.00%

egotextview's People

Contributors

devindoty avatar mikeash avatar shnhrrsn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

egotextview's Issues

IOS5 not compiled

Try complied in XCode 4.2 IOS5 beta 3 using Apple LLVM complier and failed. Any chance to upgrade the project to newest IOS5 development environment?

How to use for Syntax Highlighting on iOS

HI,

I'm working in Fiddles (the first iOS jsFiddle Client and I was wondering if this project can do syntax highlighting of code? Can it do line numbering? If to do you know of any projects that could?

EGOTextView not support large text

HI
I am using EGOTextView into my App.I am facing a issue when I am going with large text file its crash the APP. What is this issue and how can I fix it.
Thanks

Autocomplete box display wrong direction and position.

Hi,

I've downloaded EgoTextView, it's great. It's a great textEditor I've ever seen. But I see a issue, if we can fix it, it's really fantastic.

  • The autoComplete box display wrong direction of word (from bottom to top), it display the suggestion word wrong direction.
  • When I change the font with new fontName and size, the autoComplete box display wrong direction and position.

Here is the code which I changed to EGOTextView_DemoViewController.m:

if (_egoTextView==nil) {

    EGOTextView *view = [[EGOTextView alloc] initWithFrame:self.view.bounds];
    view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    view.delegate = (id<EGOTextViewDelegate>)self;
    [self.view addSubview:view];
    self.egoTextView = view;
    self.egoTextView.font = [UIFont fontWithName:@"Helvetica" size:25.0f];
    [view release];  
    [view becomeFirstResponder];

}

I just set the font for egoTextView by this line:
self.egoTextView.font = [UIFont fontWithName:@"Helvetica" size:25.0f];

Then I run on iPad 5.0, when I write my text, the autoComplete box display wrong on both of direction and position.

The textEditor would be better if we can fix it.

Thanks in advance and waiting the fix.

RTL languages

it does not support Right-To-Left languages like Hebrew and Arabic
the auto complete suggestions appears in the opposite direction

Two bugs about input Chinese

Thanks for your great jobs, when I use EGOTextView, I found two bugs:

  1. crash when I input chinese
  2. after I set FontSize, EGOTextView show default fontSize in first character

I try fixed it, hope useful:

  • (void)setMarkedText:(NSString *)markedText selectedRange:(NSRange)selectedRange {

    NSRange selectedNSRange = self.selectedRange;
    NSRange markedTextRange = self.markedRange;

    NSAttributedString *newString = [[NSAttributedString alloc] initWithString:markedText attributes:self.defaultAttributes];

    if (markedTextRange.location != NSNotFound) {
    if (!markedText)
    markedText = @"";

    [_mutableAttributedString replaceCharactersInRange:markedTextRange withAttributedString:newString]; / fixed for bug 2
    markedTextRange.length = markedText.length;
    

    } else if (selectedNSRange.length > 0) {

    [_mutableAttributedString replaceCharactersInRange:selectedNSRange withAttributedString:newString]; // fixed for bug 2
    markedTextRange.location = selectedNSRange.location;
    markedTextRange.length = markedText.length;
    

    } else {

    [_mutableAttributedString insertAttributedString:newString atIndex:selectedNSRange.location];
    markedTextRange.location = selectedNSRange.location;
    markedTextRange.length = markedText.length;
    

    }

    [newString release];
    selectedNSRange = NSMakeRange(selectedRange.location + markedTextRange.location, selectedRange.length);

    self.attributedString = _mutableAttributedString; // fixed for bug1
    self.markedRange = markedTextRange;
    self.selectedRange = selectedNSRange;

}

The app reference no-public selector and not supported large size of the text

hi
I have successfully integrated EGOTextView in to My app.But I am getting Two issue.

If I paste large size of the text it to EGOTextView its crash after entering new latter.
The other is about iTunes.I got a message after uploading successfully my app on iTunes. That is
"The app reference non public selector in "APPName" attachmentSize ,attachmentView"

Not Working As Expected, Not Detecting Links, No No No

The latest commit won't even detect links in the text view. Besides, it crashed every time if I switched from English input to Chinese input.

My testing environment: iPhone 4 with iOS 5.0.1, iPhone 3Gs with iOS 4.1

how to zoom with EGOTextView?

Like UITextView , how to zoom out or zoom in with EGOTextView ? When I want to zoom with it ,the textcontentView is always at the wrong place.Then I set its origin to (0,0) .But when I zoom it and input some text ,it crashed.How can I do this?
Anyone?

Keyboard Issue on iPad

I imported all the classes to an ipad application and for some reasons the keyboard doesn't show up.
I did not have this problem with iphone

The text view draws \n (new-line) as: "

Fo some very strange reason the text view is drawing the extra characters in there.

If I use a normal text view I get the expected result but with the EGOTextView the new line character is printed as: "

You can see it happen on the following screenshots:

With normal EGOTextView:

With normal UITextView:

What do you think the problem is?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.