Broken Edit Mode, Can not Edit Page

Permalink 48 43 Browser Info Environment
I have a custom template, which I use for fancy_zoom image block(has occurred in more then this block) that appears site wide.

It has a link which is displayed, I wanted to remove this link but doing so disables my ability to edit the page in which this block template appears.

This has happened before, but I have only just tracked it down,

In order to get around this for now I am having to use if(isEditMode) to be able to get my page to be re-editable, I can then keep the link on the page but only display it within Edit mode not ideal but a solution

I am also able to make the changes, rename the template, and then use the new template without issues.

Its only after editing an existing template and then re-editing it.

The offending code is this example is

<a href="<?php   echo $fileName;?>"  rel="text-link" class="fancy-button enlarge-button" title="<?php   echo $controller->altText; ?>">enlarge image</a>


I Kept thinking I had done something wrong but I should be able to remove a link from a template and still retain the ability to edit the site?

**By unable to edit the site I mean, when I highlight the divs in edit more, which are still dotted red, the div does not highlight with the grey overlay.

Links become clickable, images become zoomable.

Am I doing something wrong? or can anyone else confirm this is a bug?





****
I have done some more digging and as is always the case after posting, I think I have found the cause not being able to edit the page, but believe the bug still stands,

I have used the

$v->addHeaderItem('<script type="text/javascript">$(function() 
          {
            $("a.fancy").fancybox({
               \'transitionIn\'   :   \'elastic\',
               \'transitionOut\'   :   \'elastic\',
               \'speedIn\'         :   600, 
               \'speedOut\'      :   400, 
               \'titlePosition\'   : \'inside\',   
               \'overlayShow\'   :   false
            });
            $("a.fancy-button").fancybox({
               \'transitionIn\'   :   \'fade\',
               \'transitionOut\'   :   \'fade\',
               \'speedIn\'         :   600, 
               \'speedOut\'      :   200,


Its the call to a selector which no longer exists, which seems to trip up concrete, I either need the <a href class='fancy-button'>a</a> or I have to remove the jquery call


Status: New

Still Valid:

This bug is valid a newer version of concrete5. View Current Bug
TheRealSean

concrete5 Environment Information

# concrete5 Version
5.4.0.5

# concrete5 Packages
Autonav Template (1.0), Communication (1.1), Content Around Image (1.23), Example FAQ (1.0), Pagelist with Thumbnail and Description Template (1.0), Sortable Fancybox Gallery (1.0), Thumbview Template (1.1.1), tnSpacer (1.2), Zoom Image (1.0.1).

# concrete5 Overrides
blocks/contact_details, blocks/fancy_image, blocks/image_col, blocks/form, blocks/main_title, blocks/zoom_image, blocks/image, blocks/google_map_v3, blocks/content, blocks/croppable_image, themes/realnet-custom-sga

# Server Software
Apache/2.2.9 (Fedora)

# Server API
apache2handler

# PHP Version
5.2.6

# PHP Extensions
apache2handler, bz2, calendar, ctype, curl, date, dbase, dom, exif, filter, ftp, gd, gettext, gmp, hash, iconv, imap, json, libxml, mbstring, mysql, mysqli, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, posix, pspell, Reflection, session, shmop, SimpleXML, sockets, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib.

# PHP Settings
log_errors_max_len - 1024
max_execution_time - 30
max_input_nesting_level - 64
max_input_time - 60
memory_limit - 128M
post_max_size - 15M
safe_mode - Off
safe_mode_exec_dir - <i>no value</i>
safe_mode_gid - Off
safe_mode_include_dir - <i>no value</i>
sql.safe_mode - Off
upload_max_filesize - 15M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
pcre.backtrack_limit - 100000
pcre.recursion_limit - 100000
session.cache_limiter - nocache
session.gc_maxlifetime - 7200
safe_mode_allowed_env_vars - PHP_
safe_mode_protected_env_vars - LD_LIBRARY_PATH

Browser User-Agent String

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/534.6 (KHTML, like Gecko) Chrome/6.0.490.1 Safari/534.6