rich-text-editor

How display and edit HTML in iOS

北城以北 提交于 2019-12-24 07:40:36
问题 With UIWebView, I can display HTML very well. With UITextView, I can edit HTML. With what can I both display and edit HTML? Is there any open source project or tutorial available? 回答1: You can show your html inside a UIWebView with a WYSIWYG editor inside. There are a lot of WYSIWYG editors out there. I like CKEditor (demo). See the Developer Documentation - Integration for how to set / get the text of the WYSIWYG editor. How to Create the WYSIWYG Editor: Download the script files and bundle

Sitecore Rich Text links not user friendly when rendered through Glass

為{幸葍}努か 提交于 2019-12-24 07:16:57
问题 I have a component that includes a single Rich Text field. In the sublayout, the field is rendered as an Html.Editable with Glass so that it can be edited on the page in PageEditor. It looks like this: public override void Initialize() { litBodyContent.Text = Html.Editable(GlassItem, item => item.Body); } <div style="min-height: 38px"> <asp:Literal runat="server" ID="litBodyContent" /> </div> However, when I insert links using the Rich Text editor, when the page is rendered (in normal view

UIWebView: Disable copy/cut options for a rich text editor

时光总嘲笑我的痴心妄想 提交于 2019-12-24 04:09:10
问题 I have a UIWebView with a contentEditable div in order to implement some kind of rich text editor. I need to trimm the copy & cut options in the UIMenuController that appears in the web view once the user selects any piece of text. There seems to be a lot of solutions around the web, but for some reason, non of them applies for my scenario. I've subclassed the UIWebView and implemented the canPerformAction:(SEL)action withSender: to remove the copy and cut, but once the user chooses "Select"

using rich textbox in Sharepoint 2013

邮差的信 提交于 2019-12-24 01:39:12
问题 I want to use a rich textbox in Sharepoint 2013 as seen in the figure below. How can I do that? I have already used the code below. <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <SharePoint:InputFormTextBox ID="RichTextField1" runat="server" TextMode="MultiLine" RichTextMode="FullHtml" Columns="20" Rows="10"/> but I could not get what I need. I got a simple

Paragraph formatting in a WPF RichTextBox?

夙愿已清 提交于 2019-12-23 17:21:03
问题 I need to apply paragraph formatting to a selection in a rich text box. My RTB will behave the same way as the rich text boxes on StackOverflow--the user can type text into the RTB, but they can also enter code blocks. The RTB will apply very simple formatting to the code block--it will change the font and apply a background color to the entire block, similar to what you see in the code block below. Changing the font is pretty straightforward: var textRange = new TextRange(rtb.Selection.Start

Share Quill toolbar across multiple editors

不打扰是莪最后的温柔 提交于 2019-12-23 08:03:28
问题 With the great Quill rich text editor for Javascript I'm trying to make two or more editors share the same toolbar. I suppose (from documentation) that this is not possible right away at the moment, so I'm trying to "simulate" this by adding the toolbar module through API on the editor that has been clicked as the latter: // this uses jQuery $editorTag.click(function(e){ var tag = e.target; var editor = getEditorByTag(tag); if( editor ) editor.addModule('toolbar',{container:'#toolbar'}); });

String length limitation for Rich Text Editor

百般思念 提交于 2019-12-23 03:13:32
问题 I'm using rich text editors (tiny_mce) pretty widely in a web application I'm developing. An issue I can't seem to get my head around is how to limit user input so that the length of generated content fits in my database field. Character counters, which I would normally use for non rich-text content, are pretty useless because the user does not see (or know or care about) the HTML being generated behind the scenes. i.e. If I limit the input to 100 characters and the user types 99 characters

How to preserve formatting of text while storing data in mysql database using php?

你。 提交于 2019-12-21 23:19:07
问题 I'm using HTML5 text editor, using which people can Make text bold/italics. Insert link/image. Change text color, add bullet/numbers etc. How do I store and retrieve this data in/from mysql database so that the formatting is preserved? Currently, the text is getting stored, but as plain text. What approach should I adopt to fix this issue? 回答1: Use htmlentities() function and in MySQL use TEXT as field type of the attribute let the element has id editor then in js use $('#editor').html();

Can a `range.insertNode` be undone using browser's undo, in a contenteditable div?

ε祈祈猫儿з 提交于 2019-12-21 12:23:44
问题 I am working on a contenteditable div to make a simple RichText-Editor. One of the requirement I have is to be able insert html chunk at cursor postion on a button event. I was able to get that part working fine by using range , selection , range.insertNode(nodeHTML) or range.pasteHTML(nodeHTML) based on browser. But I couldn't get two things, which ideally I would like to have To be Able to undo the inserted node, using browser's undo. Somehow, browser ignores above actions. To move the

Rich Text Editor on a web page

久未见 提交于 2019-12-21 05:31:17
问题 I am trying to add a rich text editor in my web page where users can write reviews and format what they have written...something similar to the editor in which we write our posts on this site... can anyone point me to the right direction regarding this...any tutorial that would help me build such a component... Also i want a free product....(Forgot to mention earlier...) 回答1: Something in the likes of TinyMCE or FCKeditor, perhaps. They're quite complete, and customisable. 回答2: The editor