Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
FCKEditor Ajax Quote
I've put together an extension for adding quotes using AJAX fetching and the FCK Editor interface. It'll be uploaded shortly.
Based the work on AjaxQuote, obviously
FCKAjaxQuote
Based the work on AjaxQuote, obviously
FCKAjaxQuote
0
Comments
$Context->Dictionary['Quote'] = 'quote';
I forget if it's a space or nbsp;, but I have an nbsp; (non breaking space) just in case:
$Context->Dictionary['Quote'] = 'quote ';
Edit #1: I've also been a bit experimentative with the html and css of the quote and ended up with this:
You have to edit line 41 (oEditor.InsertHtml...), with the html you want (I changed the contents of the <cite> tag, added an <hr> and the little inverted commas (gifs)). To get it to look like that, though, you have to add a line in the main css for blockquote (background-color and border). You have to add css to the html the script outputs so as to look right in the editor box, but it gets stripped, so another entry in the main css is required.
oEditor.InsertHtml('<blockquote style="background-color: #eeeeee; border: 1px solid #9c9c9c; padding: 10px;"><cite>Quote: <b>'+g_com_author+'</b></cite><hr><img src="http://www.domain.com/quote1.gif">'+ request.responseText+'<img src="http://www.domain.com/quote2.gif" class="closing-quote"></blockquote>');
and
blockquote { background-color: #eeeeee; border: 1px solid #9c9c9c; padding: 10px;}
EDIT #2: Yellow fade breaks this add-on.
An alternative would be to fall back to the standard quoting feature (e.g. like the Quotations 1.6 plugin) but I think simply not displaying would be better, since this link only knows whether *it* needs to display or not - it has no idea whether there is a different visual editor enabled, which has its own quoting method.
-- Jason
Edit:
I fixed this on line 11 of default.php like this:
if( in_array($Context->SelfUrl, array("comments.php")) && $Context->Session->User->Preference('VisualEditing') ) {
...
I suspect an additional check may be needed to check exactly which visual editor is in operation, but this is a start at least.