WP7 Mango RichTextBox support for copy&paste - richtextbox

It seems that the RichTextBox control does not support copy&paste. Is it really so? I created a very simple application that had the control with some text in it and i could not select it. Are there properties that control this or it just does not work?
thanks
--oleg

It does not support copy or paste unfortunately. If you want to be able to copy formatted text - allow users to switch the view to a TextBox with plain text.

Related

Copy/Paste Plain text without the formatting

i have to copy/paste text from Safari and Notes to the Mail App multiple times per day. Previous IOS update only pasted plain text without any formatting, but they changed it now.
Every time i paste text in the Mail App it comes with the formatting which is not what i need. I am familiar with COPY from the "Share" button. But, it would be much easier if there was a way to change something in settings to paste text without formatting using the regular copy/paste buttons?
Quickly tap anywhere on the text field of the text you want to
copy.
Choose Select All from the contextual menu.
Choose Share from the contextual menu.
4-ChoseCopy from the Share Sheet.
Source
In desktop Mail App there is an option to delete formatting if you can use desktop for that. Method i use on phone is that i'm just pasting it into search and copying it again.

Make bullet/num/check lists in UITextView

I am working on text editor app and using UITextView for this. Does anybody know how to make ability to do bullet/num/check lists in it? Any examples/tutorials?
Note: I need to do this as a part of text editor, so user can select some area, tap on according button and enable/disable lists formatting.
Based on my research for similar behavior (e.g. Bullet list and Numbered list in UITextView ), I would expect that there is no easy way to do it. I expect that you will have to use textView(_:shouldChangeTextIn:replacementText:) to hack currently added text to manually add bullets/numbers - e.g., if the user set that she currently wants to use unordered list, you will have to detect a new line added in shouldChangeTextIn and manually add there the bullet and indentation.
Another approach which you might consider (its applicability depends on your requirements) is to customize existing open source rich text editor. In my case I was able to get close enough to what I needed using RichEditorView, which uses HTML+CSS as an underlying technology (so to be able to do customizations, you need to know a bit about JavaScript, CSS and HTML).

Rich Text Editor for iOS

My users have asked if I can add a Rich Text type editor to my app. The field that they want this added to is a UITextView.
Obviously, they also will want to see the text displayed as they've entered it.
Any suggestions for how to implement this is greatly appreciated.
There are 2 approaches - a UiTexView can handle most Rich Text Editor stuff not including lists.
The 2nd way is a WebView and some html / JavaScript.
A WebView might be the best approach but be careful - some of the WebView based solutions out there were rejected from the AppStore since they use private methods of the WebView - that is not allowed by Apple.

implement select/cut/paste in TextArea

How can I implement the tradition menu items to copy / cut / paste / selectAll
in Codenameone TextArea
I can do these things if I happen to remember the keystrokes, but I don't
see any hooks to do them programmatically.
Since on-device editing is native the cut/copy/paste work thru touch and the menu will implicitly appear. So normally you wouldn't want to do this programmatically in Codename One, e.g. right now we don't have any API to get the currently selected text either since that concept is pretty different between platforms.
There are Display.copyToClipboard & Display.getPasteDataFromClipboard but those aren't for the text field selection purpose. They are rather for the use case of moving data within/between apps.

Modify the rightclick menu options of cxgrid

In cxGrid,where do you modify the menu options when you right click in the Grid?
I would like to get rid of that "Right to left reading order","Show Unicode control characters","Insert Unicode control character","Open IME" and "Conversion". I dont need them at all.
How can I do that ?
This is the standard context menu of the Windows EDIT control, and not part of the Delphi code behind the control that you are using. In other words, the Delphi control that you are using is wrapping some system provided functionality.
I suppose that it would be possible to remove some items from that, but it's not easy. The EDIT control does not offer you any way to remove these built-in items. This issue has been discussed at the devExpress forum:
https://www.devexpress.com/Support/Center/Question/Details/Q292288
https://www.devexpress.com/Support/Center/Question/Details/Q102030

Resources