w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Rich Text Editor (YUI Simple Text Editor used) not sending data to next page
The saveHTML() method you used does not seem to save the value to the textarea element. And because the browser doesn't care about YUI Editor and just submits what is there already in the textarea (which is null), it submits the input as null.. You should set the value of the textarea to the editor value so the browser will submit that value instead of null.. Which can be achieved using this little line: document.getElementsById("msgpost").value = html; See this working JsFiddle I made for you. However you had HTML syntax errors too. The onSubmit attribute should be on the form element not the submit button. And listening to the event is not practical when you can simply call a function when the form submits.. (See the JsFiddle)

Categories : Javascript

Dnn text editor doesn't change form a basic text box to Rich text box
What version of DNN are you using? If you're using DNN7 you will want to make sure you are using the RadEditor controller, not FCK which it appears to be. DNN7 doesn't work with the FCK Editor.

Categories : Asp Net

How To Implement Rich Text Editor
Here is sample: Rich Text Editor with ASP.NET An Example to Use HTML Rich Text Editor - Cleditor

Categories : Asp Net

How can I save data in Rich Text Editor?
You can save data from one field to by referencing the same memory scoped variable in both cases, like this: #{requestScope.value} I have no idea what you mean by this: how can i insert save and cancel button in rich text item

Categories : Oracle

Textarea of TinyMCE(Rich text editor lib) doesn't show anything
Oh I found problem is because missing plugin. following code from TinyMCE website, last plugin moxiemanager is not in package free download that why above code can't show anything. plugins: [ "advlist autolink lists link image charmap print preview hr anchor pagebreak", "searchreplace wordcount visualblocks visualchars code fullscreen", "insertdatetime media nonbreaking save table contextmenu directionality", "emoticons template paste textcolor moxiemanager" ], for solve problem is just remove moxiemanager. Thanks everyone.

Categories : Javascript

UIWebView: Disable copy/cut options for a rich text editor
I will adapt another answer of mine for your case. The canPerformAction: is actually called on the internal UIWebDocumentView instead of the UIWebView, which you cannot normally subclass. With some runtime magic, it's possible. We create a class which has one method: @interface _SwizzleHelper : UIView @end @implementation _SwizzleHelper -(BOOL)canPerformAction:(SEL)action { //Your logic here return NO; } @end Once you have a web view which you want to control the actions of, you iterate its scroll view's subviews and take the UIWebDocumentView class. We then dynamically make the superclass of the class we created above to be the subview's class (UIWebDocumentView - but we cannot say that upfront because this is private API), and replace the subview's class to our class. #i

Categories : Iphone

How to apply client side validation on rich text editor?
You have to use tinyMCE.get('<%=txt_editor1.ClientID %>').getContent() instead of document.getElementById('<%=txt_editor1.ClientID %>').value so you could achieve like this. function valid(){ var content = tinyMCE.get('<%=txt_editor1.ClientID %>').getContent(); if(content.length>100){ return false; } return true; }

Categories : Dotnet

A simple, rich JavaScript text editor that produces consistent tags?
There are some posts about JavaScript rich text editor libraries. 20 Excellent Free Rich-Text Editors 10 jQuery and non-jQuery javascript Rich Text Editors

Categories : Javascript

Save content rich text editor to blob field in mysql database
Should be Repository method format like Public void AddArticle(string title, string Description, string ArticleBody) { //logic } I think your repository method have byte type for any one argument . Check that like my method format . Edit: Check your article_body column data type in your database? its should me Nvarchar(Max) .

Categories : Asp Net

Could not locate Razor Host Factory type: umbraco.MacroEngines.RazorUmbracoFactory, umbraco.MacroEngines
If you are trying to host the blogengine site within a virtual directory of the Umbraco site, then you will have to amend the blogengine web.config to "remove" all the Umbraco-specific handlers and modules, as these will be inherited by the blogengine application, causing this exception because the application can't find the relevant DLLs in its bin folder. I recently had a similar problem and I have posted the web.config I used in the virtual directory below. Mine was a very simple web application, so obviously this will not work by itself in your blogengine app. You will need to add the relevant parts into your web.config file. Also, this was for a v6 Umbraco install in IIS7.5, so you may have to experiment a little. <?xml version="1.0"?> <configuration> <configSecti

Categories : Iis

Load Rich Word document into RichText Editor of telerik editor
You can see this live demo: http://demos.telerik.com/aspnet-ajax/editor/examples/rtfexport/defaultcs.aspx and this blog post: http://blogs.telerik.com/aspnet-ajax/posts/13-07-19/how-to-enhance-the-rtf-export-of-radeditor-for-asp.net-ajax

Categories : C#

Select "umbraco item" using razor
You cannot use server tags inside your razor template. tags like: <umbraco:Item field="field_1" runat="server" /> But you can call @Model.field_1 Final version should look like that: @if (condition) { @Model.field_1 } else { @Model.field_2 } Check this post about razor macros in umbraco: http://www.diplo.co.uk/blog/2011/6/17/using-razor-in-umbraco-47.aspx

Categories : Asp Net Mvc

Getting parameter from macro in umbraco 6 via razor
You have to set the parameter in the macro within the backoffice too, with an alias of "myOwnParameter". See here for the documentation: http://our.umbraco.org/documentation/reference/Templating/Macros/Razor/using-macro-parameters Also, I recommend using camel case wherever you reference the alias, as I seem to remember that when accessing the parameter through the dynamic @Parameter collection, this is how the alias is defined.

Categories : HTML

OrderBy multiple properties in Razor and Umbraco 4.11.8
If memory serves you should be able to chain the OrderBys foreach(var item in Model.AncestorOrSelf("Master").Items.First().PublicationFolder.First().Children.Where("Visible").OrderBy("publicationType").OrderByDescending("date"))

Categories : Linq

Umbraco - Using .net macro in editor with binding controls
I've encountered this same issue. This happens because of the way the controls are nested in a different container in the editor and thus a standard FindControl() won't find it. I've implemented Rick Strahl's recursive FindControl() helper method in all of my projects and that usually solves the problem: http://www.west-wind.com/weblog/posts/2006/Apr/09/ASPNET-20-MasterPages-and-FindControl Usually I put it in a static ControlHelper class and call it like so: ((TextBox)ControlHelper.FindControlRecursive(this, "txt_name")).Text = "name"; Optionally you can turn off the "Render Control in Editor" option in the Macro settings. 99% of the time I turn this off anyway since most of my macros don't require the presentation to display in the editor.

Categories : Asp Net

IBM Worklight 6.0 - Rich Page Editor doesn't load jQuery Mobile CSS
Did you make sure to follow the training module explaining how to add jQuery Mobile to a Worklight project? It looks like the reference to the CSS may be incorrect. After following the provided steps to add jQuery Mobile (see link above...), I then: Added a header, a footer and some content. In the Design perspective it looks like this: Click for full view Eclipse Juno SR2 and Worklight 6.0

Categories : Jquery

Adding "new line"s to text in text supporting objects (i.e Buttons, Rich Text boxs) both in and out of code
" " is the escaped character for a line break. So code like: label.Text = "This is a button"; Should put the word button on a new line. Edit: If you want to do it using the properties window in designer, click on the arrow on the far right of the text property field and it will open a small box. If you type multiple lines on that as you would normally (ie actually pressing enter, not using ) then the component will treat them as new lines and put the new lines in for you.

Categories : C#

Mirroring with Ace Editor. How to Remove Text of Mirrored Editor
You can use mirror class from https://github.com/ajaxorg/ace/blob/master/lib/ace/worker/mirror.js

Categories : Javascript

How can I change the selected text background color in Rich text box wpf c#
private static TextPointer GetTextPointAt(TextPointer from, int pos) { TextPointer ret = from; int i = 0; while ((i < pos) && (ret != null)) { if ((ret.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.Text) || (ret.GetPointerContext(LogicalDirection.Backward) == TextPointerContext.None)) i++; if (ret.GetPositionAtOffset(1, LogicalDirection.Forward) == null) return ret; ret = ret.GetPositionAtOffset(1, LogicalDirection.Forward); } return ret; } internal string Select(RichTextBox rtb, int offset, int length, Color color) { // Get text selection: TextSelection textRange = rtb.Selection; // Get text starting point: TextPointer start = rtb.Document.ContentStart; /

Categories : C#

Apply rich text format on selected text of UITextView in iOS
You should not use didChangeSelection for this purpose. Use shouldChangeTextInRange instead. This is because when you set the attributed string to new one you don't replace the text of certain location. You replace full text with your new text. You need range to locate the position where you want the text changed. - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ NSMutableAttributedString *textViewText = [[NSMutableAttributedString alloc]initWithAttributedString:textView.attributedText]; NSRange selectedTextRange = [textView selectedRange]; NSString *selectedString = [textView textInRange:textView.selectedTextRange]; //lets say you always want to make selected text bold UIFont *boldFont = [UIFont boldS

Categories : IOS

In Umbraco 6.1.1 MVC 4, how can I do a form post back to a surface controller using a model that inherits from Umbraco's RenderModel?
Ok, I've had no responses to this question but am now in a position to answer it myself. Maybe it was a fundamental oversight, but not that obvious imho, and information on the Umbraco forum etc about inheriting from RenderModel is fairly limited. Essentially the answer, as was my first instinct, is to solve the original exception "No parameterless constructor defined for this object" by providing a paramaterless constructor. The difficulty is working out what to put inside the parameterless constructor for my model, since it inherits from the Umbraco RenderModel which requires an IPublishedContent instance passed to it's constructor. Luckily while browsing around I happened across this post on the Umbraco forum: http://our.umbraco.org/forum/developers/api-questions/40754-Getting-Curre

Categories : Asp Net Mvc

Umbraco MVC Implementation - View does not depend on Umbraco implementations
No you can't. Simply because all requests pass through a single action. In order to retrieve a path to a CMS-managed page, you need to use the node/content traversal the @Model provides. See here for more details on this. Edit To clarify, the author of the article is suggesting that the Umbraco implementation should be more in line with a traditional MVC implementation with little or no logic in the views. Therefore, any querying of node data should happen prior to the view (e.g. in the Mappers). So this is where you would have to retrieve the links. Umbraco's default MVC implementation forces all requests to go via a single action on a single controller. The author's implementation allows the requests to be shared across one controller per document type - which is better IMO. But it st

Categories : Asp Net Mvc

Umbraco MediaService / Umbraco MediaItem not saving
To Save media, I found this method with MediaService. However, I think it's possible another method more refined [HttpPost] public JsonResult Upload(HttpPostedFileBase file) { IMedia mimage; // Create the media item mimage = _mediaService.CreateMedia(file.FileName, <parentId>, Constants.Conventions.MediaTypes.Image); mimage.SetValue(Constants.Conventions.Media.File, file); _mediaService.Save(mimage); return Json(new { success = true}); }

Categories : C#

Umbraco - error when using umbraco.library:NiceUrl(...)
Ok I found a solution: I added an extra check to this part: <!-- Return the url --> <xsl:if test="$i = $max"> <xsl:if test="$id != '' "> <xsl:value-of select="umbraco.library:NiceUrl($id)" /> </xsl:if> </xsl:if> this fixed my problem.

Categories : Xslt

Rich Text Box - Bold
I feel it may be easier to use the RichTextBox.Rtf property when performing this kind of action, as mentioned here: MSDN: Code: Formatting Characters in Bold in a RichTextBox Control (Visual C#) Since as the contents of your text box grows, handling selection entities may end up becoming cumbersome.

Categories : C#

Templates for Rich Text Box
Enable AllowDrop on your RichTextBox and capture the Drop event (or it might be PreviewDrop on RTB). You can then do whatever you want with it. Such as creating a Label that allows you to drag it into the RTB. Drag/Drop in WPF is covered here on MSDN.

Categories : C#

How can I get acces from rich:columns to rich:datatable's "var" on JSP page (JSF 1.2)?
Datatable's var is one list of array of lists. Columns var creates by implicit foreach, used on this list and each element of list goes to each cell from current rom. This is the mechanism. The task is to find way to use datatable's var in the columns block, using jsf 1.2 Earlier I use jsf 2.1 and I didn't have such problems. The way was to pass parameter in method call. But. There's no way to do it as I understand.

Categories : Jsp

Rich faces rich:Panel menu with scrollbar
div style="overflow: auto; height: 200px; width: 500px;" This one worked for me. Since in html code, panelgrid is giving table tag and panelgroup is span tag it is not working with these tags

Categories : HTML

(Umbraco) Can get text but not image from a subnode to homepage
here's an example: <xsl:variable name="mediaId" select="number($currentPage/mediaId)" /> <xsl:if test="$mediaId > 0"> <xsl:variable name="mediaNode" select="umbraco.library:GetMedia($mediaId, 0)" /> <xsl:if test="$mediaNode/umbracoFile"> <img src="{$mediaNode/umbracoFile}" alt="[image]" height="{umbracoHeight}" width="{umbracoWidth}" /> </xsl:if> </xsl:if> How to use umbraco.library GetMedia in XSLT

Categories : Xslt

Input box that allows rich text features
You can't style a substring of an input's value. If this is imperative, you'd need to make a custom element that matches the styling of the input box, which would be very challenging (to put it mildly) to match across browsers, and in processing the string, set a span element to wrap the relevant substring. To simplify this, you could use the HTML5 contenteditable attribute. You'd still have to handle the styling of the text in the editable element, but the browser would handle the input swapping stuff. The simpler solution is to use the :valid and :invalid pseudo-selectors. You can combine these with the :focus pseudo-selector to provide non-validated styling during editing. Off the top of my head, something like this: input.targetClass:invalid { background-color: #FDD; color: #

Categories : Javascript

How to draw lines in Rich Text box
I don't know if rtf supports lines. You can use use a string of underscores ("_") maybe. Medicine Amount : 300 Doctor Fees : 0 __________________________ Total Amount : 300 See this SO question, looks like lines can be drawn http://stackoverflow.com/a/8657918/146167 Also, why are you using rtf to print? You can easily print crystal reports or word files for that matter on dot matrix.

Categories : C#

Extract dynamic url from rich text box VB.net
If it is just the number that changes then you can do it with this: http://www.myurl.com/?action=joingiveaway&amp;id=([0-9]+) Regex101 Demo

Categories : Regex

Getting same rich text format twice is not equal
Your code is fine. When getting clipboard contents from Word the data is retrieved from the running instance of Word. (Close Word you'll see the clipboard is empty.) When the data is retrieved Word bumps a RSID (Revision Save IDs) for some reason. http://answers.google.com/answers/threadview/id/46805.html Oldde But Goodie in this case. FYI WinMerge is a fine GUI comparison tool for files. NotePad++ has a nice compare add-in. Here are the differences in two calls: {* sidtbl sid4800747 sid12415067} {* sidtbl sid4800747 sid13042328}

Categories : Vb.Net

Saving rich text in NSUserDefaults
SaveFBCover1 is getting an NSString from Cover1.stringValue, not an NSAttributedString, because the . It looks like your code saves that string properly, and you're probably getting the string back when you load it again, but you won't get attributes because you didn't start with an attributed string, nor did you get the attributes of the text in the text view and save them separately. You can get an attributed string by using SaveFBCover1 = Cover1.attributedStringValue; However, you're going to have to do a little more work to save and load the string (not much, though). NSAttributedString isn't one of the types that you can save directly in NSUserDefaults, so you'll need to serialize it into an instance of NSData first. You can do that quite easily using an keyed archiver. Read abou

Categories : Objective C

iOS // show html -> rich text
Have tryed https://github.com/mwaterfall/MWFeedParser/blob/master/Classes/NSString%2BHTML.h This will simply give string out of html. It might not be exactly what you are looking for but hope this will solve part of your problem. But this will not solve your offline image viewing. For image https://github.com/rs/SDWebImage Will do a async download and cache image.

Categories : IOS

Rich Text to Plain Text via C#?
Why dont you give this a try: using System; using System.Text.RegularExpressions; public class Example { static string CleanInput(string strIn) { // Replace invalid characters with empty strings. try { return Regex.Replace(strIn, @"[^w.@-]", "", RegexOptions.None, TimeSpan.FromSeconds(1.5)); } // If we timeout when replacing invalid characters, // we should return Empty. catch (RegexMatchTimeoutException) { return String.Empty; } } } Here's a link for it as well. http://msdn.microsoft.com/en-us/library/844skk0h.aspx

Categories : C#

Scrolling two rich text boxes together, I can't figure it out
After testing your code, it seems to work OK. Your problem may be that you don't know how to use the code, you have to declare new richtextboxes as RichTextBoxSynchronizedScroll not as the standard RichTextBox: //Here is the test public partial class Form1 : Form { public Form1(){ InitializeComponent(); rb1.Size = new Size(200,100); rb2.Size = rb1.Size; rb2.Left = rb1.Right + 5; rb1.Parent = rb2.Parent = this; rtb1.BindScroll(rtb2); //try populating some data for both the richtextboxes for(int i = 0; i < 200; i++) rtb1.Text += Guid.NewGuid() + " "; rtb2.Text = rtb1; //now try scrolling the rtb1 //I suggest you should add WM_MOUSEWHEEL = 0x20a into the if statement //something like this: if (m.Msg == WM_VSCRO

Categories : C#

Convert html tag in textarea to rich text
There is no way to to do HTML formatting inside textarea you will have to use ant editor, but if you want to show it in div then setting the attribute contentEditable="true" will do the trick more references here (already asked on stackoverflow)

Categories : PHP

Word-Wrap in Rich Text Area
Did you try the CSS approach? In the end the text area is a generated HTML and it should work. Use word-wrap to break it into lines. .break-word {word-wrap: break-word;}

Categories : Java

How to do rich typesetting for text in canvas element?
Canvas has minimal text support as you have discovered. To get rich-text capabilities, look at the source code for TinyMCE. TinyMCE is an open-source, widely used javascript based text editor that is under active development. It has excellent features and it's wide use and active development make for largely debugged and feature rich code. You can start with this framework and pull the pieces that you need for use in canvas. The project is available here: https://github.com/tinymce/tinymce

Categories : Javascript



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.