Giter Club home page Giter Club logo

dtrichtexteditor's People

Contributors

amro avatar blundgren avatar danielphillips avatar jcs avatar leehericks avatar odrobnik avatar renep 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

dtrichtexteditor's Issues

unable to compile on Xcode 7

As usual, new Xcode, new issues! Anyway, the following line in DTRichTextEditorView.m is preventing compilation:

#pragma mark Text Input Delegate and Text Input Tokenizer
@synthesize inputDelegate;

The error it is producing is:

The current deployment target does not support automated __weak references

I have attempted this on both an existing project which use to compile fine, and on a completely new project. I have all targets set to iOS 8.0. I have also tried 6.0 and 7.1.

Do you have any thoughts?

Layout list error.

I have inputted as following:
1

  1. 1
  2. 2

2
1.1
2.2

But after get html and set again, it appear as followings:
invalid list

Image size is not correctly handled in DTRichTextEditor

Repro steps:

  1. Copy rich text content from a web page with text and image (image should be wider than DTRichTextEditor width).
  2. Paste it to DTRichTextEditor (Parse the copied "Apple Web Archive pasteboard type" with DTWebArchieve, then create NSAttributeString with DTWebArchieve).

Expected:
The image should fit in DTRichTextEditor

Actual:
The image is not property resized, part of the image is cut by DTRichTextEditor bounds.

Found a problem

hi ,
Use a magnifying glass to let it go after a magnifying glass to move up.I hope you can solve it.
thank you

Mentions and hashtags support

Are you planning to support mentions and hashtags? I mean fire event when user start typing word starting @ or # symbol or change caret position to such word and ability to replace(or insert) autocompleted mention or tag

Loupe does not orient correctly with editor on iOS 9

Rotating the iPad to any direction other than Portrait results in the loupe displaying incorrectly for that orientation. It appears that the Loupe is always in Portrait mode, thus when the device is in Landscape orientation the Loupe displays sideways. (Try selecting some text, that is fun!) Again, the Loupe itself, and the text displayed within it, is always oriented towards the device's Home button.

Use of the Loupe within the DTRichTextEditor causes a crash

Hi,

I am using the rich text editor (DTRichTextEditor) in our project and are experiencing an issue with the use of the magnifying glass loupe (i.e. cursor positioning function) that is causing our app to crash.

Here are the repro steps:

  • Embed the rich text editor into a skeleton app that contains a view that holds the DTRichTextEditor component. You can find our example project that does this here.
  • Start the app. Do not type any letters, just press and hold for a few seconds to bring out the loupe for cursor positioning.
  • Lift your finger press to make the loupe disappear
  • Press and hold again for a few seconds to bring out the loupe again.
  • Bug: This makes the project crash at: [DTLoupeView refreshLoupeContent] / [DTLoupeLayerDelegate displayLayer:]

The problem can appear on other occasions, but the steps above are the most reliable to reproduce the issue. We are testing on iOS 8. xcode 6.3 with iOS sdk 8.3

I'd would like to offer $200 USD to the person who can produce a fix for this issue. If the fix requires a reimplementation the magnification using the modern snapshotting methods, I'd understand that this would need more work and would pay $800 USD instead of $200 USD. Transfer of payment on a successful code review from Oliver and subject to final testing within my project.

Many thanks,
Simon.

App crashed

When I double tap on the editor view (without any content), app crashed.

iOS voice dictation does not work as expected in DTRichTextEditor - either crashing the app or inserting the spoken text multiple times

Hi,

I am using the rich text editor (DTRichTextEditor) in our project and are experiencing an issue with the use of the voice dictation feature available on the iOS keyboard. The problem results in either a crash or the spoken text being inserted multiple times.

Here are the repro steps:

  • Embed the rich text editor into a skeleton app that contains a view that holds the DTRichTextEditor component. You can find our example project that does this here.
  • Start the app. Start the voice dictation, but do not saying anything for 3 or 4 seconds. Press done.
    ** The app crashes with these details:
    DTRichTextEditorView.m line 2263 -[replaceRange:withText:]
    DTRichTextEditorView+Manipulation.m line 886 -[replaceRange:withAttachment:inParagraph:]
    DTRichTextEditorView+Dictation.m line 63 -[dictationRecordingDidEnd]
  • Start the app again. Start the voice dictation and say a few sentences. Hit done. The text inserted is what was said, but repeated multiple times or just partially inserted. It seems quite random.

We are testing on iOS 8. xcode 6.3 with iOS sdk 8.3

I'd would like to offer $200 USD to the person who can produce a fix to get voice dictation working properly. Transfer of payment on a successful code review from Oliver and subject to final testing within my project.

Many thanks,
Simon.

Text seems not to be rendered in iPhone 14 Pro, iOS 16.

Text seems not to be rendered in iPhone 14 Pro, iOS 16.

Here are some details:

  • Works well in iPhone 14 and older devices, only appears in iPhone 14 Pro and later devices.
  • Input some text, turns out that it seems not to be rendered.
  • Switch the app to the background, and open it again, it renders well, but breaks again if you continue inputing.

What‘s in my mind?

Seems like DTCoreText did not render properly. If you long press the editorView and DTLoupeView pops out, the text will be rendered well again.

What I have tried?

  • setNeedsLayout and setNeedsDisplay when editorView did change
  • relayoutText when editorView did change

Any suggestions will be highly appreciated, thanks for your effort!

App crashed when input text.

  1. create editor view with CGRectZero parameter.
  2. change editr's frame on run-time.
  3. input one character.
  4. app crashed.

Couldn't display after inserting an image

Here is a bug.

NSAttachmentAttributeName is the variable of system.

Rewriting DTAttachmentAttributeName leads to the issue that couldn't display after inserting an image with iPhone devices.

Crash on <= iOS 5.1.1

The following line crashes the editor on iOS 5.1.1 and older:

[attributes removeObjectForKey:NSUnderlineStyleAttributeName];

It is found in the following method:

- (void)replaceRange:(DTTextRange *)range withText:(id)text

In the following file:

DTRichTextEditorView.m

Crash on iOS 9

Long-press for selection is crashing the control with the following message:

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'sublayer with non-finite position [inf inf]'

The crash appears to be coming from:

file: DTLoupeView.m
method: refreshViewContent
line: [_targetRootView.layer renderInContext:ctx];

Double tap for selection is not a problem, so the above loupe scenario seems logical.

This same build works fine on iOS 8.x devices.

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.