wysiwyg

Hiding TinyMCE with jQuery

淺唱寂寞╮ 提交于 2019-12-04 05:02:01
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? 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 = $("#container textarea").attr('id'); tinymce.get(editor_id).hide(); to make it visible again use tinymce.get(editor

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

与世无争的帅哥 提交于 2019-12-04 04:36:03
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 formatting necessary to place graphics and the like) would be helpful Ability to create inline areas,

HTML WYSIWYG edtor: why is the editable content moved in an iFrame

人走茶凉 提交于 2019-12-04 00:12:56
问题 Why is the editable html moved into an iFrame? I analysed different editors (TinyMce, CKEditor, etc) and all move the editable content into a separate iFrame which they lay over the original text. What is the technical reason for this. I experimented with the contenteditable="true" , which is the base of all this editors too, and didn't find a reason yet to do this. 回答1: I'm CKEditor core developer. Not for a long time - just for last half of the year, but I've learnt a lot about why we use

Trying to get the text written inside a TinyMCE textarea

蓝咒 提交于 2019-12-03 22:18:13
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(function() { $('form').submit(function() { //alert("fasdfs"); alert(tinyMCE.get('#jander').getContent(

WYSIWYG in Android webview

浪尽此生 提交于 2019-12-03 20:27:40
问题 I've been trying to offer a WYSIWYG HTML editor to my users, from inside my app. It doesn't have to be a fancy WYSIWYG. I just need basic functionality like Bold, Italic, Underline, images, link and some basic formatting (font size, colour, alignment). That should be enough. The perfect solution would be an open source library, but I haven't been able to find one. So I googled around for a web-based editor that works on Android. I found Sceditor. This editor works great when I fire up my

Compare TinyMCE and CKeditor for a Wiki

空扰寡人 提交于 2019-12-03 19:49:57
问题 For a custom wiki django-wakawaka, i want to be able to add a WYSIWYG support. TinyMCE is obviously the most popular plugin, used even by Wordpress. But CK-editor seems more feature full. Those who have used either of these or both, which is better and why. Are there some better packages, that I am missing? Is there something that I am missing when I conclude CKeditor is better, by going through them (because it is not as widely used). I want to use it with django and jquery, with multiple

WYSIWYG editor vs Hand Code

牧云@^-^@ 提交于 2019-12-03 15:41:24
问题 What are the pros and cons of using a WYSIWYG editor for web page development vs hand coding? With the exception of just not knowing how to create something by hand coding is there any reasons to use WYSIWYG? 回答1: I handcode, but I prefer to work with a wysiwyg editor in tow, and for that reason I'm still using Dreamweaver as an editor. What I'm doing 95% of the time is handcoding inside the Source editor and viewing the results in the preview. Occasionally I'll drop into the wysiwyg editor

Insert HTML programmatically in wysiHTML5 editor

て烟熏妆下的殇ゞ 提交于 2019-12-03 12:40:53
I found javascript wysiwyg editor wysiHTML5 . I'm trying to add element <a href=...> to the editor or just turn on bold programmatically. My code is: var editor = new wysihtml5.Editor("textarea", { toolbar: "toolbar", stylesheets: "css/wysihtml5.css", parserRules: wysihtml5ParserRules }); editor.observe("load", function() { editor.composer.commands.exec("bold"); }); Am I doing something wrong? Actually no, but you have to be sure that your textarea (iframe) is focused. Try to use on instead of observe . Here is a sample code that worked for me with insertHTML. editor.on("load", function() {

Is there a cross-browser jQuery contentEditable library? [closed]

淺唱寂寞╮ 提交于 2019-12-03 11:54:27
I'm looking for a jQuery plugin / library that makes the contentEditable attribute work properly in all major browsers (I could even go without IE6). I don't need a full WYSIWYG editor solution because I want to build my own – however I'm focusing on user experience so I'd prefer a "plug and play" solution. I only need to access the editor features through code (API-like), I'm building the user interface myself. Eric Drechsel Aloha is a feature-complete and polished editor component using contentEditable. It uses jQuery UI . I ended up using WYSIHAT ( http://37signals.com/svn/posts/1330

Google chrome onbeforeunload wrong behavior with iframe

落花浮王杯 提交于 2019-12-03 11:06:16
Let say I have two pages. One of them contains another one inside as iframe. If you subscribe to onbeforeunload event on the parent page, then this event doesn't triggers if you close tab when iframe is in focus. I suppose it is a bug as written here: Google Chrome issues But I mentioned that, for example, google docs handle this situation. Can anyone give me a solution? Important note that I have no actual access to the iframe content as it is a third party html editor (WYSIWYG). Lucky Murari I know it is an old question but just to help people who are coming here through Search : The bug is