rich-text-editor

ASP.NET MVC Rich Text Editor [closed]

两盒软妹~` 提交于 2019-12-05 15:36:05
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Goal The goal of this wiki entry is to create a comprehensive list of available rich text editors for err... traditional websites. By traditional we mean anything that isn't asp.net with server controls and viewstate. Open source and commercial options are both viable for discussion. Why This Wiki I have found

Using best_in_place with rich-text editor like TinyMCE

我们两清 提交于 2019-12-05 10:43:10
I'm using the best_in_place gem to do in-place editing in a Rails application. However, I need (X)HTML editing on some of the text areas, so I need a rich-text editor. TinyMCE is being used elsewhere on the site. However, it's not trivial to add an editor to best_in_place . To grossly oversimplify, the gem uses jQuery to insert the textarea tag on the fly, and TinyMCE initializes at page load, replacing available textarea s with an editor, so when best_in_place puts in its textarea , TinyMCE has already come and gone. I've tried re-initializing TinyMCE after best_in_place inserts its textarea,

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

老子叫甜甜 提交于 2019-12-05 07:57:03
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 cursor at the end of inserted node. So that user can start writing after I know I can use something out of

TinyMCE 4 imagetools not working for remotely stored images

丶灬走出姿态 提交于 2019-12-05 07:26:30
问题 TinyMCE has a plugin called imagetools . This was working before, but for some reason now the contextual inline menu will not appear anymore and I would like to have it back. Here are my init parameters schema: 'html5', inline: false, toolbar: 'bold italic underscore image', menubar: true, plugins: [ "advlist autolink lists link hr anchor pagebreak", "searchreplace wordcount visualblocks visualchars code fullscreen", "insertdatetime nonbreaking table contextmenu directionality", "template

What's a good WYSIWYG editor to use with ContentEditable? [closed]

落爺英雄遲暮 提交于 2019-12-05 06:20:14
I'm trying to build something similar to Google Docs, where you can edit a page directly and not through a textarea or iframe. This is possible with the contentEditable HTML5 attribute. So are there any good editors that I could use on top of contentEditable, to provide features like text formatting, inserting links, pasting from word, etc.? http://www.aloha-editor.org/ is one that I've found, but I was wondering if there are more. (edit: I should clarify that I'm not trying to build the whole Google Docs, I just used that as an example of editing the actual content) Version 2.0 of WYMeditor

How can I configure HTML Purifier to allow data URIs for image src?

情到浓时终转凉″ 提交于 2019-12-05 04:09:01
How can I allow base64 data for the the src attribute of image tags? I see code like this: $config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'data' => true)); In this case, is it data => true which allows the base64? And if so, how can I allow base64 data only for the src attribute of the img tag? (I do not want to allow data URIs in other situations.) I thought of doing something like: $ def-> addAttribute ('a', 'target', 'Enum # _blank, _self, _target, _top'); But in my case like this: $ def->

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

丶灬走出姿态 提交于 2019-12-04 20:59:44
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? 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(); Example: <div id="editor"> <!--Here goes your content from HTML5 Editor--> </div> so use AJAX to save it:

workaround for contenteditable on iPad

别说谁变了你拦得住时间么 提交于 2019-12-04 14:13:13
问题 I have a web application that uses TinyMce to allow rich text editing. Some of my customers are desperate to get it to work on iPad (which doesn't support contenteditable and therefore TinyMce doesn't work) At the moment the only choices I have are: Disallow rich text editing when i detect the browser is iPad. This is not much of a solution because my app relies heavily on rich text editing Wait for iPad to support contentEditable Write my own iPad app. This isn't really workable because it's

Rails 3 and Rich text editor

半腔热情 提交于 2019-12-04 07:42:20
问题 I am building a Rails 3 app with blogging, commenting, and other functionality that require the users to input text. My question is whether it is a better idea to use a Javascript rich text editor or not. What would be the pros and cons. If it is a recommended approach: Which editors are best? How do I use them in my Rails forms? thanks in advance, Steve 回答1: Most rich text editors for the web use JavaScript. These are some popular ones you could consider jwysiwig markitup Redactor (This is

Any WYSIWYG rich text editor that doesn't use HTML (contenteditable or designMode), a la (the new) Google Docs? [closed]

会有一股神秘感。 提交于 2019-12-04 07:25:42
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Besides the new Google Docs, all the other WYSIWYG web-based rich text editors (ckeditor, tinymce, old Google Docs) I've seen are