I find that my links are unclickable in Canvas mode.
There's just a 'DOCUMENT CLICKED' message on the firebug console. Is
this by design, or should we be able to follow links? There are a few similar forum posts, but not resolution that I can see. Using Umb 4.5.2.
Following up on this, in line 271 of umbraco\LiveEditing\Modules\ItemEditing\ItemEditing.js there's a function 'disableHyperlinks' that does just that, intercepts all the clicks on anchor tags. I disabled this and ItemEditing now works better for me, but I'm sure there's some good reason this was put here, so YMMV.
I have made the change to the live editing script, and although I can now click around the site and it displays the editable region borders, no editing works; possibly due to the fact it is using the friendly URLs not the IDs?
Whatever the reason, the change doesn't appear to be useful, at least on my setup.
Disabling that function means that you can indeed navigate around the site, and the editable panels seem to be editable for me, but as soon as I try and save and publish a page, that's when "an unspecified error" occurs.
How are you supposed to get back to the umbraco panel if you don't have any buttons to do it? Are you expected to right-click, enable canvas editing, and then manually change your address bar when you want to leave the page?!
Links in Canvas
Hello,
I find that my links are unclickable in Canvas mode. There's just a 'DOCUMENT CLICKED' message on the firebug console. Is this by design, or should we be able to follow links? There are a few similar forum posts, but not resolution that I can see. Using Umb 4.5.2.
Thanks!
- Andrew
Following up on this, in line 271 of umbraco\LiveEditing\Modules\ItemEditing\ItemEditing.js there's a function 'disableHyperlinks' that does just that, intercepts all the clicks on anchor tags. I disabled this and ItemEditing now works better for me, but I'm sure there's some good reason this was put here, so YMMV.
Any news on this?
Any good reason for doing this?
@Andrew: did you face any difficulties after making that change?
Experts around, can you please get back on this???
Awaiting Reply..!!
According to Umbraco HQ it is by design
Ticket created... please vote
http://umbraco.codeplex.com/workitem/30169
Voted
I have made the change to the live editing script, and although I can now click around the site and it displays the editable region borders, no editing works; possibly due to the fact it is using the friendly URLs not the IDs?
Whatever the reason, the change doesn't appear to be useful, at least on my setup.
Disabling that function means that you can indeed navigate around the site, and the editable panels seem to be editable for me, but as soon as I try and save and publish a page, that's when "an unspecified error" occurs.
How are you supposed to get back to the umbraco panel if you don't have any buttons to do it? Are you expected to right-click, enable canvas editing, and then manually change your address bar when you want to leave the page?!
What we did for our development, is modified a bit script /webRoot/umbraco/LiveEditing/Modules/ItemEditing/ItemEditing.js
There is function "disableHyperlinks", which in my case has this body:
So change the selector body from "a" to:
After that, it will ignore all links that has 'rel' attributes. So link like that:
Will work in canvas editor.
is working on a reply...