No richtextbox control in WinRT (8.1)? - windows-runtime

Was hoping code lines like this will work on WinRT:
<!--A RichTextBox with hyperlink.-->
<RichTextBox IsReadOnly="True">
<Paragraph>
Displaying text with <Hyperlink NavigateUri="http://www.msdn.com" TargetName="_blank">hyperlink</Hyperlink>.
</Paragraph>
</RichTextBox>
The end result I'm looking for is to turn this:
Hey #Jake
to this:
Hey Jake Dawson, how are you.
Once the user hits space after the #word.

Since you want to set it to IsReadonly="True", why don't you use a RichTextBlock?
See http://msdn.microsoft.com/library/windows/apps/br227565
If you are only after the ability to include a hyperlink, you can do that in a regular TextBlock as well (in Windows 8.1), see http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.documents.hyperlink.aspx
UPDATE:
After your clarification of the question, it seems that you do need an editing capability. Look at
http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.richeditbox.aspx

Related

Cant get tinymce to display

Im trying to install tinymce to use with my text editor to allow the user to have a text box just like the stack overflow one. I cant get it to display though
ive put this in the head of my index file
<script src='https://cloud.tinymce.com/stable/tinymce.min.js'></script>
<script src='https:https://cloud.tinymce.com/stable/tinymce.min.js'>
</script>
<script src="//tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script>
tinymce.init({selector:'infotextarea'});
</script>
then in my info page ive put
<textarea id="infotextarea">Your content here.
</textarea>
can anyone explain why its not displaying
It may be that at the time you run the tinymce.init function, it is not yet rendered and there is no textarea in the DOM.
Try debugging your code on the following line:
<script>
debugger;
tinymce.init({selector:'infotextarea'});
</script>
When the web's execution has stopped on that line, in the development console of your browser type the following:
$('#infotextarea').length
If the size is greater than 0, textarea exists at that moment and it is another problem, but if it shows 0 is that you have not yet created that view, this will help us get more information about your problem.
If you want to target a <textarea> by ID you need to use a valid CSS selector.
selector: "#infotextarea"
(note the # at the beginning of the string)
I would also note you appear to be loading TinyMCE 3 separate times - I have no idea why you would need to do that - loading it once should be sufficient
Its not a perfect answer to my question, but i used ckeditor and it worked perfectly.
I must have a mistake somewhere that i or my team could not find with tinymce

TVML - how to modify formTemplate to show "pin entry"

TVML's formTemplate can easily be adapted to only allow numeric input:
<formTemplate>
<textField keyboardType="numberPad">0000</textField>
<footer>
<button>
<text>${TEXT("Submit")}</text>
</button>
</footer>
</formTemplate>
This gives a page like...
I would like to reduce it even further to only display a "pin entry" screen as shown here:
Is this possible with TVML, without hosting an own UIControl? I have nowhere found any mentioning of changing styles like this. Any idea how to achieve this? Thanks!
Use secure attribute in textField
https://developer.apple.com/library/tvos/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/TVJSAttributes.html#//apple_ref/doc/uid/TP40015064-CH42-SW37
<textField keyboardType="numberPad" secure="true">0000</textField>
What you are referring to is the TVDigitEntryViewController. You can read more about it here:
https://developer.apple.com/design/human-interface-guidelines/tvos/interface-elements/digit-entry-views/
TVDigitEntryViewController
A view controller that enables the user to enter digits, like a passcode, in your app.
https://developer.apple.com/documentation/tvuikit/tvdigitentryviewcontroller

Does Windows Phone 8 support an InputScope equivalent to Text or Chat only without Emoji?

For my WP8 app, the server does not support emoji, but I want all the other features of the text/chat inputscope (including autocomplete/autosuggest), just with emoji removed. I would use chat or text, but having the emoji button on the on-screen keyboard implicitly suggests that it is supported, when it isn't.
Is there such a thing as a text InputScope without emoji?
for InputScope of TextBox in windows phone 8, you need to use WindowsPhone-Toolkit library. Kindly check PhoneTextBox from this library.
Code:
first of all, in xaml code of page, add this:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
and then use below code to add PhoneTextBox:
<toolkit:PhoneTextBox x:Name="tbxEmail" Hint="Enter your email address"
Margin="0 20 0 10" Height="80"
InputScope="EmailNameOrAddress"
Background="{x:Null}" BorderBrush="#FF0099CC"
KeyDown="tbxEmail_KeyDown"/>
Here you can access InputScope.
Hope that helps..!
<TextBox Name="txtPhoneNumber" >
<TextBox.InputScope>
<InputScope>
<InputScopeName = "Search" />
</InputScope>
</TextBox.InputScope>
</TextBox>
See this:
http://edu-kinect.com/blog/2014/06/10/understanding-the-input-scope-property-in-window-phone-8/

Flash Builder 4.7 I want the spark TextInput to have an background text like Username. Is there anything ready?

I would like my spark TextInput to have a background text. It just sounds like something that should be easily in the component and so I wouldn't want to program it in an ugly way. Something like, when the component is not focused it shows Username with different letter style like Italic for example. So when you press on the textInput it disappears and will only show again if there is no text. It sounds like something that I could easily code. But there must be something done for it already.
Thanks,
David
Just use promt property:
<s:TextInput prompt="Not Focused Empy text" text="Other text" />
See more here: http://help.adobe.com/en_US/flex/using/WS19f279b149e7481c-177b1c712d80a315e7-8000.html

Internet Explorer form input problem

I'm having a ton of problems with every version of IE, one of which is that IE7 won't register input in this text input field.
http://www.flightm8.com/redesign
I'm a bit nervous about posting the link since the site looks a mess and doesn't function properly in any version of IE at the moment, and it is still quite a way off being ready for public consumption. But if anyone can shed any light on this particular problem I'd very much appreciate it.
So the question is: What is causing this problem in IE7?
Update: I've also added an additional textfield at the bottom of the page to try and rule out any CSS wierdness that might be causing the problem.
<form method="post" action="nowhere.php">
<input type='text' name='test' value='testing' />
</form>
And I still can't enter any text, or select the text that is in there. I'm wondering now if it's a problem caused by running a standalone version of IE7 and IE6.
thanks
-t
the function causing problem is this one :
function modalAlert
the call that need to be debugged is this one :
modalAlert("NO SELECTIONS");
in
function findRoutes
the line that bug is :
$("#dialog").css("top", dTop);
first, you should avoid iframes when you can, why don't you do :
var message = $('<div></div>').load('/modal/"+modalpage);
instead of crappy code like this :
var iframe = "<iframe id='modal_frame' width='533' height='292' src='/modal/"+modalpage+"' >You didn't give me any information</iframe>"
If you don't need iframes, don't use them !
$('body').append(message);
I have IE7 on win xp (native), I was able to enter text but after a freeze (when you add all those markers), then when entering text and clicking on "find routes", there's a bug that i just explained to you ...
I would imagine it is because the input box doesn't have a 'name' field, which is used when posting form data.