wysiwyg

Open source Javascript RTE

ぃ、小莉子 提交于 2019-12-06 11:24:51
What open source RTE do you use in your day to day web dev tasks and why? I've been using both TinyMCE and FCK but both seem very clunky and buggy. I've had nightmares with FCK while trying to extend it and it has loads of bugs in IE. Ideally I'd be looking for something that fun to maintain and easy to extend while providing most of the web 2. features that clients demand, i.e.: file uploading, asynchronous saving / updating. 来源: https://stackoverflow.com/questions/700755/open-source-javascript-rte

How do I stop visual editor in Wordpress from changing the code?

帅比萌擦擦* 提交于 2019-12-06 06:08:55
Every time I switch to the visual editor in Wordpress, it changes my code (e.g Removes <br/> ). How do I stop this? You can't in the base framework without adding some plugin. However, if you'd like a simple break on the Visual editor side use shift-enter. 来源: https://stackoverflow.com/questions/38777117/how-do-i-stop-visual-editor-in-wordpress-from-changing-the-code

Alternative to Tiny MCE

安稳与你 提交于 2019-12-06 04:42:01
Was wondering if anyone knows a good alternative to tinymce? I find that it sometimes has problems with AJAX infused content. And I've noticed that it seems a little slow when loading - I first see the textarea with the HTML-Markup and then it flashes and then I see the tiny interface. wmd and markitup are not exactly what I am looking for - they are too rudimentary. Is there any other good lightweight Javascript WYSIWYG Editor out there? Thanks Casper What about FCKeditor ? CKEditor the new FCKEditor Attacklab is used by StackOverflow, and myself soon enough. It's WYSIWYM, but still quite

Is there anyway to stop CKEditor 4 from filtering my anchor tag attributes?

非 Y 不嫁゛ 提交于 2019-12-06 03:12:52
CKEditor 4 attribute filtering is stripping any occurrence "href" from anchor tags put into the editor. I have a plugin which creates links that contain some "custom" attributes. A link looks something like this: <a href="#" document-href="abc123">Some Link</a> The CKEditor returns the link in this form when I call getData(): <a href="#" document->Some Link</a> Is there a way to instruct CKEditor to stop filtering link attributes? Does anyone happen to know where in the source this regex is so I can fix it? Thanks! I've just checked this link on CKEditor 4.1 - the output is: <p><a href="#"

Creating WYSIWYG form builder (á la Wufoo) in Rails

荒凉一梦 提交于 2019-12-06 01:38:44
问题 I have to add Wufoo-like WYSIWYG form-builder functionality to a Rails webapp. Does anyone know of good resources (gems/engines/plugins/example code) that would help? 回答1: this is not really an answer to your question, but I still can't add comments unfortunately, due to my reputation level, sorry :) There is exact equivalent of such functionality in Drupal(php) http://drupal.org/project/webform especially useful for contact forms, i.e. clients happy and don't bug me every time they want to

Hiding TinyMCE with jQuery

末鹿安然 提交于 2019-12-06 00:21:18
问题 I have a TinyMCE textarea inside of #container When I use $('#container').hide() and then $('#container').show() , tinyMCE throws: Cannot read property 'selection' of undefined I'm using the jquery plugin, so this is how I set it up: $('#container textarea').tinymce({ /* options */ }); What should I be doing differently? 回答1: The correct command to use here is // editor_id is the id of your textarea and // tinymce will use this id to uniquely identify this editor instance editor_id = $("

Any javascript (web-based) wysiwyg editor that produces xsl:fo

我与影子孤独终老i 提交于 2019-12-05 23:03:44
问题 I am having a hard time finding on OSS or commercial web-based (javascript) WYSIWYG* editor that produces XSL:FO. Would I would love to have the editor capable of doing... The user is presented with common text-editor interface, not unlike the editor I am currently typing into to submit this question to SO. The user is able to define all the structural components afforded by XSL:FO (new pages, new regions). Any "simplification" the editor can do (such as handling some of the implicit XSL:FO

Bootstrap Responsive WYSWIG editor doesnt send input data to php

為{幸葍}努か 提交于 2019-12-05 16:09:12
I'm using this WYSWIG editor. This editor is displayed on a modal of bootstrap. <form action="<?php echo base_url('dashboard/submit_post'); ?>" method="POST" role="form" enctype="multipart/form-data"> <div class="form-group"> <label for="post_title">Post Title</label> <input type="text" class="form-control" id="post_title" name="post_title" placeholder="Enter a title"> </div> <div class="form-group"> <label for="post_content">Post Content</label> <textarea name="post_content" id="post_content" cols="30" rows="3" class="form-control wyswig-editor"></textarea> </div> This function submit_post

Redactor editor change image tag when upload

假如想象 提交于 2019-12-05 13:18:36
When Uploading a image through Redactor Redactor will generate <img src="blablabla.png"/> tag What if I want the tag is like: <img class="myClass" src="blablabla.png"/> How to do this? I have viewed all the API and Callback but I didn't find any method to implement this. It looks like you can use the imageUploadCallback . This callback is triggered on successful image upload and the image DOM element is there for you to manipulate. $('#redactor').redactor({ imageUploadCallback: function(image, json) { // image = this is DOM element of image // json = for example: { "filelink": "/images/img.jpg

Trying to get the text written inside a TinyMCE textarea

给你一囗甜甜゛ 提交于 2019-12-05 12:11:54
问题 I'm trying to get the text written inside a TinyMCE textarea . I have the code below. The TinyMCE text area is showed but the alert is not even showed. Why? <html> <head></head> <body> <script type="text/javascript" src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js'></script> <script type="text/javascript" src="/home/javiergarcia/Scaricati/jari/tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ mode : "textareas", }); $(document).ready