wysiwyg

Wysiwyg with image copy/paste [closed]

会有一股神秘感。 提交于 2019-11-26 17:57:44
问题 First, I understand that an image cannot be "copied" from a local machine into a website. I understand that it must be uploaded. I am a web programmer, and am familiar with common web wysiwyg tools such as TinyMCE and FCKEditor. My question is if there exists a program or web module or something of the sort that works will perform an automatic upload of images for a wysiwyg. I have a client that is constantly complaining about not being able to copy/paste documents with images from MS Word

GUI-based or Web-based JSON editor that works like property explorer [closed]

我怕爱的太早我们不能终老 提交于 2019-11-26 16:46:07
Background: This is a request for something that may not exist yet, but I've been meaning to build one for a long time. First I will ask if anyone has seen anything like it yet. Suppose you have an arbitrary JSON structure like the following: { 'title_str':'My Employee List' ,'lastmod_str': '2009-June-15' ,'employee_table':[ {'firstname':'john','lastname':'doe','age':'33',} ,{'firstname':'jane','lastname':'doe','age':'34',} ,{'firstname':'samuel','lastname':'doe','age':'35',} ] } Question: Is there a web-based JSON editor that could take a structure like this, and automatically allow the user

TinyMCE Paste As Plain Text

浪子不回头ぞ 提交于 2019-11-26 15:21:44
This is one of the common issue with RTEs on web. Could you please guide me through how to: Paste as the PLAIN TEXT Retain the HTML but remove the WORD/HTML styling I want to do it directly on paste (paste_preprocess callback), without opening the dialogs provided by Paste plugins. Any thoughts/experiences ? Thanks, Imran This is what i do to get paste plain text. 1. paste_preprocess setting (in tinymce init) paste_preprocess : function(pl, o) { //example: keep bold,italic,underline and paragraphs //o.content = strip_tags( o.content,'<b><u><i><p>' ); // remove all tags => plain text o.content

WYSIWYG text editor in Java [closed]

让人想犯罪 __ 提交于 2019-11-26 11:55:55
问题 I\'d like to collect all WYSIWYG text editors for Java here. Some rules for entries: There must be a link to the project/product You must state whether it\'s open source or commercial Is it possible to extend the editor (add new features like a \"violet centered sudoku\")? Is that simple or complex? Does it come with lots of features (fancy character and paragraph styles with online spell checking for several languages in the same document) or just the basics (bold, italics, no underline)?

Get caret (cursor) position in contentEditable area containing HTML content

痞子三分冷 提交于 2019-11-26 10:25:26
I have contentEditable element (can be p, div, ...) and I would like to get caret (cursor) position in it. I can normally achieve it with this piece of code: var position = window.getSelection().getRangeAt(0).startOffset; This works fine while the element contains just text. But when the element contains some HTML formatting, the returned position is relative to caret position within included HTML element. Let's assume contents of contentEditable element is this: AB<b>CD</b>EF If caret is inside <b></b> , let's say between C and D, the returned position with above code is 1 instead of 3

GUI-based or Web-based JSON editor that works like property explorer [closed]

Deadly 提交于 2019-11-26 04:57:25
问题 Background: This is a request for something that may not exist yet, but I\'ve been meaning to build one for a long time. First I will ask if anyone has seen anything like it yet. Suppose you have an arbitrary JSON structure like the following: { \'title_str\':\'My Employee List\' ,\'lastmod_str\': \'2009-June-15\' ,\'employee_table\':[ {\'firstname\':\'john\',\'lastname\':\'doe\',\'age\':\'33\',} ,{\'firstname\':\'jane\',\'lastname\':\'doe\',\'age\':\'34\',} ,{\'firstname\':\'samuel\',\

Get caret (cursor) position in contentEditable area containing HTML content

这一生的挚爱 提交于 2019-11-26 01:58:28
问题 I have contentEditable element (can be p, div, ...) and I would like to get caret (cursor) position in it. I can normally achieve it with this piece of code: var position = window.getSelection().getRangeAt(0).startOffset; This works fine while the element contains just text. But when the element contains some HTML formatting, the returned position is relative to caret position within included HTML element. Let\'s assume contents of contentEditable element is this: AB<b>CD</b>EF If caret is