wysiwyg

is using TinyMCE a top choice for WYSIWYG editor on a webpage? What are good alternatives?

社会主义新天地 提交于 2019-11-30 06:54:12
is using TinyMCE a top choice for WYSIWYG editor on a webpage? What are good alternatives? some comparison seems to show that TinyMCE is one of the most compatible across browsers: http://geniisoft.com/showcase.nsf/WebEditors TinyMCE is a great choice. I've used it in commercial offerings with good results. I'm also looking at FCKEditor for a new project specifically because of the integrated file upload and rumors that it has better XSS protection. Frankly, I'm not sure either one is sufficient to protect against XSS (you may have to supplement with something like http://htmlpurifier.org/ if

Contenteditable paragraph tag on enter

左心房为你撑大大i 提交于 2019-11-30 06:51:15
I was wondering if there is an acceptable way to force all major browsers to insert paragraph tag instead of the default tag that they insert on pressing enter key when contentEditable is true. As far as I know IE inserts p automatically. But Google Chrome inserts div tag and Firefox inserts br (WTF?!). Thanks in advance! you can use document.execCommand('formatBlock', false, 'p'); in event like keypress or keydown , etc. to use paragraphs after enter press. For example: element.addEventListener('keypress', function(ev){ if(ev.keyCode == '13') document.execCommand('formatBlock', false, 'p'); }

Extend height to include absolutely positioned children

大憨熊 提交于 2019-11-30 05:13:51
I'm building an html/javascript theme designer for a CMS. Elements are positioned absolutely and can be moved/resized via the mouse, and/or contain editable text whose height may be determined by the number of lines. However I'm running into the problem where a parent element's height does not expand to include its absolutely positioned children. Minimal code (also on JSFiddle here ): <style> div.layer { position: absolute } div.layer1 { width: 400px; border: 1px solid #ccc } div.layer2 { top: 15px; left: 100px; width: 100px; border: 1px solid blue } </style> <div class="layer layer1"

Paste from MS Word into Textarea

强颜欢笑 提交于 2019-11-30 04:49:43
问题 I'm using https://github.com/akzhan/jwysiwyg/ and i want to implement pasting from Word, but I'm not sure what to look for and how to handle it. Im more looking for a regex pattern or a list of characters to catch and what to replace them with. Ideas? 回答1: I ended up using this: // Replaces commonly-used Windows 1252 encoded chars that do not exist in ASCII or ISO-8859-1 with ISO-8859-1 cognates. var replaceWordChars = function(text) { var s = text; // smart single quotes and apostrophe s = s

Joomla 3 can't add <script> to article

こ雲淡風輕ζ 提交于 2019-11-30 04:47:57
问题 Joomla version: Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT I want add js script to one my article. I'm using TinyMCE editor to edit article. In TinyMCE plugin field Prohibited Elements I filled with dummy text, now it contains "cms123", I removed "script,applet,iframe". I checked Global Configurations -> Text Filters for Super Users I have set it "No Filtering". But when I'm trying to save my article with js code, joomla removes my tags <script> from my article, also I checked

Best ASP.net WYSIWYG [closed]

落花浮王杯 提交于 2019-11-30 04:33:27
Ok, i've read most relevant questions asked here previously on this but I still don't see a clear "best in class" suggestion for WYSIWYG editors for ASP.net I've used fckeditor up to now (found it ok but many problems with config/permissions on folder etc.). I'm looking for something that has a lot of flexibility/config options and can integrate nicely with the sites css. Also i'd like something that minimises config requirements when moving from server to server etc. Any good suggestions are much appreciated. Ed Nathan Prather we use the Telerik Radeditor, and it performs great. Microsoft

iPad compatible HTML Wysiwyg editor [closed]

久未见 提交于 2019-11-30 02:55:56
问题 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 4 years ago . Are there any iPad compatible wysiwyg HTML editors? Edit: What I'm looking for is something that would work on a web app, not a native iPad app. 回答1: I think that the GDocs editor might work, but keep in mind that there's almost no editor like that, they are managing everything by themselves. The rest of editors

building a wysiwyg editor

痴心易碎 提交于 2019-11-30 02:05:53
I need to build a wysiwyg editor for a project I am working on and need some guidance. Some of my key points of confusion are the following: iframe docs vs. contenteditable divs : which one should I use and why? I hate iframes, is there a clear advantage to using iframes? cross browser styling : execCommand seems to apply different styles in different browsers. Are there any tricks to making this cross-browser compatible? Should I not use execCommand at all and instead apply my own styles?. adding items to the undo chain : how can run my own script, such as inserting an image, and allow cntrl

What's the best WYSIWYG editor currently available? (jQuery suppport/integration is a plus.) [closed]

为君一笑 提交于 2019-11-29 21:47:22
I'm working on a project that needs a WYSIWYG editor, but I haven't had to integrate one in a while, so I'm not familiar with the latest and greatest ones. I've used both tinyMCE and nicEdit in the past and I'd prefer not to use tinyMCE for this project because of its large overhead. I don't need it to be overly complex, but I need the ability to change the available buttons on a per-implementation basis, and good compatibility with jQuery and AJAX is a huge plus. Obviously, good clean HTML support is a necessity. So what WYSIWYG editors have you found lately? What ones would you recommend? P

What's the best open source wiki platform? [closed]

风流意气都作罢 提交于 2019-11-29 21:27:59
I've been tasked with setting up a wiki for our developers to share project information (Server IPs, Interface Documentation, Architecture Diagrams, etc). My manager has suggested Deki and I've also heard of MediaWiki and Twiki. One project here uses Trac but we don't need it's SVN capabilities and we'd like to have a WYSIWYG editor if possible. We also want to host this wiki locally. I couldn't find many web resources comparing the various wiki platforms and previous stack overflow questions haven't really addressed the question directly. What's the best wiki platform? What have used in the