That fix is perfect. It works on edit and new posts. The only slight downside is that it feels a little weird to have it pop up on mouseover. But that's a small quibble.
With that fix, this wysiwyg plugin is by far the leader of the pack for Vanilla 2.
@Lykaon: Thanks for the vote of confidence! But, it's not a perfect solution (I don't think it works well with the 'Preview' tab either.)
Having said that, after finding that jQuery live() function, I'm sure there's a way to extend it so that it adds toolbars without the need for a mouseover.
@rak: after applying this latest fix it seems to be working for me too. However we have found slight conflict with "Quote selection" plugin. It sometimes convert ">" character (which is usied for quotes) to html safe character, thus rendering Vanilla unable to format quote properly.
most of my users insert image and then would like to make this image a link (even the original) cleditor does not allow that
in order to temporarilly enable this I have patched jquery.cleditor.min.js, so that part: if(f=="url"){if(d=="link"&&I(b)=="") becomes: if(f=="url"){if(d=="link"&&I(b)=="" && 0)
while this is not best solution, it might help someone
@rak: not sure on that. I'd have to go back and revert out the fix to check. I can't do that from here, but I'll try to remember to do it this evening.
@rak: I did not have time to see if the non-fixed version of the plugin worked in IE8. Sorry. IE8 should be pretty easy to come by, though, if you want to test yourself.
I was trying to get my forums working before opening to the public, but failed to see this IE8 error until it was too late. Now I have to listen to them complain about not having functionality that they used to have in Vanilla 1.
This isn't your fault or anything. Just saying; I think I switched to Vanilla 2 prematurely. I mistook the public release for a fully-featured platform, and I don't think Vanilla 2 is quite there yet unfortunately.
@rak: IE8 doesn't work with or without the mouseover fix. The demo from cleditor's site does, so I'm not sure what the issue is.
edit: I was able to fix it in IE8. The arguments being passed into cleditor were causing the problem (don't know why). So instead what I did is I overrode the width BEFORE the call. Thus, line 43 now looks like this for me:
$Sender->Head->AddString('<script type="text/javascript">$("#Form_Body").live("mouseover", function() {$.cleditor.defaultOptions.width = 658;$("#Form_Body").cleditor();});</script>'); I only overrode the width. I couldn't figure out how to put '100%' there and get it to work so I just hard-coded a width that works for my site. I ignored the height. It seems to be okay as-is.
Other than the mouseover solution being a little clunky, it's serviceable now for my needs.
@Lykaon: The author of CLEditor took a look at a demo forum I put up for him, he thinks the various bugs are due to the additional processing that Vanilla2 does on textareas.
I'm sure there are solutions if someone knows how to stop certain jQuery calls being made by Vanilla and allowing CLEditor to handle them
@Lykaon: For your IE8 fix did you try adding the height like this?: $Sender->Head->AddString('<script type="text/javascript">$("#Form_Body").live("mouseover", function() {$.cleditor.defaultOptions.width = 658; $("#Form_Body").cleditor({height:"100%"});});</script>');
Comments
(Please post the last part of the URL/path of one of these pages)
That fix is perfect. It works on edit and new posts. The only slight downside is that it feels a little weird to have it pop up on mouseover. But that's a small quibble.
With that fix, this wysiwyg plugin is by far the leader of the pack for Vanilla 2.
Having said that, after finding that jQuery live() function, I'm sure there's a way to extend it so that it adds toolbars without the need for a mouseover.
Where are all jQuery ninjas when you need them?!
Mouseover fix would be good - best wysiwyg editor for Vanilla
@tmilovan: I'll take a look at that, there's probably a way to make CLEditor clear the field with jQuery when Vanilla creates the new posting.
(even the original) cleditor does not allow that
in order to temporarilly enable this I have patched jquery.cleditor.min.js, so that part:
if(f=="url"){if(d=="link"&&I(b)=="")
becomes:
if(f=="url"){if(d=="link"&&I(b)=="" && 0)
while this is not best solution, it might help someone
Add this fix for 2.0.x: http://vanillaforums.org/discussion/comment/126010/#Comment_126010
I remember trying it few versions earlier
thanks, I will check this plugin again and see if it is OK now
I was trying to get my forums working before opening to the public, but failed to see this IE8 error until it was too late. Now I have to listen to them complain about not having functionality that they used to have in Vanilla 1.
This isn't your fault or anything. Just saying; I think I switched to Vanilla 2 prematurely. I mistook the public release for a fully-featured platform, and I don't think Vanilla 2 is quite there yet unfortunately.
Got a problem with the html view and text view showing at the same time. Only happens after a comment is posted.
Ive used the fix mentioned of editing the on mouse hover event which solves this when the page is refreshed but now after a comment is made.
edit: I was able to fix it in IE8. The arguments being passed into cleditor were causing the problem (don't know why). So instead what I did is I overrode the width BEFORE the call. Thus, line 43 now looks like this for me:
$Sender->Head->AddString('<script type="text/javascript">$("#Form_Body").live("mouseover", function() {$.cleditor.defaultOptions.width = 658;$("#Form_Body").cleditor();});</script>');
I only overrode the width. I couldn't figure out how to put '100%' there and get it to work so I just hard-coded a width that works for my site. I ignored the height. It seems to be okay as-is.
Other than the mouseover solution being a little clunky, it's serviceable now for my needs.
I'm sure there are solutions if someone knows how to stop certain jQuery calls being made by Vanilla and allowing CLEditor to handle them
Check out the thread here: (his observations about Vanilla2 script handling are at Sep 3 8:17pm onwards)
http://groups.google.com/group/cleditor/browse_thread/thread/229c0f2187426fa0
$Sender->Head->AddString('<script type="text/javascript">$("#Form_Body").live("mouseover", function() {$.cleditor.defaultOptions.width = 658; $("#Form_Body").cleditor({height:"100%"});});</script>');