Posted by sevanden on July 2, 2008 at 8:25am
Jump to:
| Project: | Live |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | Science Collaboration |
Issue Summary
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
#1
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.
#2
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 ...
#3
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!!!
#4
maybe with fckeditor we could disable rich-text right before running the preview mode so it's automatic.
#5
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
#6
#7
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
#8
This would be a great feature!
#9
Double post! X)
#10
subscribing
#11
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.
#12
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?