The preview does not render with fckeditor enabled, i have to switch to plain-text field for live preview to render a preview of my entry.

Comments

Gurpartap Singh’s picture

Sorry, no rich text editors are supported yet. They are just pain to maintain. :)

If you still want a fix to get it working with fck, let me know.

sevanden’s picture

I guess I'll just wait to use this mod till there's support for richt text editors ... It would be nice to have it but not really required, the site works fine without it ...

bensnyder’s picture

FYI, I use tinytinymce. It also doesn't work with that WYSIWYG, however you can click the "disable" test below the textarea, then click, "Preview", and then re-enable tinytinymce.

A useful workaround for any admin, yes, but it won't cut it for production usage.

+1 for WYSIWYG support, and thank you for this wonderful module!!!

likewhoa’s picture

maybe with fckeditor we could disable rich-text right before running the preview mode so it's automatic.

CarbonPig’s picture

It would be nice if it worked with FCK nodes.

However, it does work with FCK comment fields, so I don't quite see the problem.

Cheers,

CarbonPig.com

Gurpartap Singh’s picture

Version: 6.x-0.1 » 6.x-1.0
Component: User interface » Code
Category: bug » feature
mlncn’s picture

Title: No preview with fckeditor enabled » Make Live preview work when WYSIWYG editor in use
Issue tags: +Science Collaboration

Is the JavaScript WYSIWYG editors themselves blocking Live, is Live disabling itself to not deal with them because they don't have real HTML code to grab from until they save, or... ?

We (SCF would be interested in this capability (i argued against WYSIWYG as long as I could...). Pressing a button to get the "live" (without page refresh) preview would be easier, perhaps?, and fine for our use case.

Thanks!

benjamin, Agaric Design Collective

mikejonesok’s picture

This would be a great feature!

mikejonesok’s picture

Double post! X)

zoltán balogh’s picture

subscribing

thomas.rambaud’s picture

Is the JavaScript WYSIWYG editors themselves blocking Live
Yes, editors have a reference to the HTML node they are refering to (the textarea). If you delete it, the reference change and you need to recall the initialize event of the editor. For example, with tinyMCE you can do this by executing this code after you've partially updated your content :

var my_textarea_id = 'tinymce_textarea';
if(tinyMCE.getInstanceById(my_textarea_id) == null || tinyMCE.getInstanceById(my_textarea_id) == 'undefined'){
    tinyMCE.init({/* INIT options */});
    tinyMCE.execCommand('mceAddControl', false, my_textarea_id);
}

The problem is that if you want to enable this for all WYSIWYG editors, you'll probably need to write a custom code for each one.

nancydru’s picture

Hmm, isn't the point of a WYSIWYG editor to see the formatting as you type? Why do you need this preview on top of that?