hoangduit / editease

Automatically exported from code.google.com/p/editease
0 stars 0 forks source link

Having trouble making only the text of a link editable. #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I'm trying to make only the text of a logo link editable.
This is the code:

<h1 id="logo"><a class="e-ease" id="data_logo" href="index.php"><?php 
include("content/data_logo.txt");?></a></h1>

I would like to be able to edit just the text of the link like any other text 
area. After clicking the 'click to edit' icon, the text does become editable, 
but it still functions as a link, so when I click the text to edit it, it 
follows the link back to index.php. Also, there is no outline to distinguish it 
as an editable region.

I'm using the latest version of EE, 1.5.1

If anyone might know a solution to this problem, I would be very grateful.

Thanks a lot guys!!!

Original issue reported on code.google.com by matt.hof...@gmail.com on 1 Dec 2010 at 3:53

GoogleCodeExporter commented 8 years ago
Update: I figured out how to make it work. Here is the proper way to make just 
the text of a link editable. This seems to work:

<h1 id="logo"><div class="e-ease" id="data_logo"><a href="index.php"><?php 
include("content/data_logo.txt");?></a></div></h1>

Original comment by matt.hof...@gmail.com on 1 Dec 2010 at 4:17