Hi
I've encountered a couple of problems with the fuellink CKEditor plugin.
1. In the development branch, if I double-click an existing link in the RTE, nothing happens. The console log reports
"Error: TypeError: myMarkItUpSettings.parserLeftDelimiter is not a function"
2. Using Fuel 1.2, if I enter and save a URL which contains "&" and then double-click to open the dialog again, the URL is truncated at the first "&". Such URLs are converted to "&" in the RTE.
eg:
http://randd.defra.gov.uk/Default.aspx?Menu=Menu&Module=More&Location=None&Completed=0&ProjectID=16368I wanted to see if
#2 was fixed in the developer branch but
#1 prevents me.
Cheers
Comments
That should be the entity notation "& amp ;" - the forum s/w seems to have converted it?
2. I believe this is something that CKEditor is doing automatically with the content and not sure if there is a quick fix for the encoding of the ampersands.
2. Yes, I agree. Their docs show an option to make CKEditor preserve ampersands but I couldn't get it to work - I think it needs an extra plugin. I don't mind whether ampersands are preserved or converted to entities, I'd just rather fuellink didn't truncate the URL when you call the dialog to edit the link.
Hopefully your recent CKEditor changes will sort this for me when I get it to work...
Unfortunately, the latest fuellink changes have not fixed the original problem - where URLs containing ampersands as part of a query string are truncated in the dialog when opened to edit. New URLs are saved correctly in the CKEditor, it's when the fuellink dialog tries to edit that is a problem...
The same thing happens when the markitup editor is used too.
It seems that in ./fuellink/plugin.js, the full url is parsed correctly at line 35 (input = the full url string) but on line 52, calling myMarkItUpSettings.displayLinkEditWindow() displays it truncated.
On further inspection of jquery.markitup.set.js, it seems the call to ./fuel/pages/select in the on line 464 is the culprit in ./fuel/controllers/page.php (select() function).
However... There seems to be a similar issue with editing images using fuelimage.
If you double-click a previously inserted image, nothing happens and the js console reports:
ReferenceError: RexExp is not defined.
It looks like a typo on line 40. "RexExp" should be "RegExp"