Forums | Mahara Community

Support /
HTML anchors


anonymous profile picture
Account deleted
Posts: 4

26 February 2011, 6:28

Does Mahara support HTML anchors?

For example, if I what to create a link from one view that will locate a specific piece of info. half way down the page of another view.

Can Mahara do this?

Thanx

Everill

 

anonymous profile picture
Account deleted
Posts: 64

26 February 2011, 7:56

It seems mahara strip out the #link part so it does not work.

I tested here. http://mahara.org/view/view.php?id=33185

<a name="link1">Link 1</a>

becomes

<p><a>Link 1</a></p>

anonymous profile picture
Account deleted
Posts: 4

26 February 2011, 8:24

That's a shame, I wonder why?

Thanks for your reply.

 

Everill

anonymous profile picture
Account deleted
Posts: 64

26 February 2011, 9:53

It is something to do with TinyMCE init.

I think it is possilble to change it by hacking script code.

I asked it here. http://tinymce.moxiecode.com/forum/viewtopic.php?id=24988

Let's see. It should be easy to fix it.

anonymous profile picture
Account deleted
Posts: 64

26 February 2011, 10:55

It seems that text box takes out href attribute from a tag and I think it could be intetional. But it is strange. I will add to a bug report. Links in the forum works fine.

François Marier's profile picture
Posts: 411

27 February 2011, 19:58

The bug report is here (thanks for filing it Shinichi!):

  https://bugs.launchpad.net/mahara/+bug/725634


If anybody has more details as to where things work and where they don't, feel free to add them to the bug report.

Cheers,

Francois

anonymous profile picture
Account deleted
Posts: 64

28 February 2011, 15:47

Ok, I found a solution for this.

Please have a look at this, http://eportfolios.skagerak.org/view/view.php?id=167 and click link 1,2,3 or link 4. This works to other text box block as well, like link3 and 4.

The way I did are followings.

Open lib/web.php and around line 2484, find this

// Permit embedding contents from other sites
    $config->set('HTML.SafeEmbed', true);
    $config->set('HTML.SafeObject', true);
    $config->set('Output.FlashCompat', true);

Add the followings after these lines.

    // adding ID
    $config->set('Attr.EnableID', true);

Then it should work by now.

I am assuming you have access to codes, may be through FTP, or using terminal.

Cheers.

François Marier's profile picture
Posts: 411

28 February 2011, 17:00

Thanks for sharing your solution with us.

I have implemented the "Namespace IDs" solution described here:

  http://htmlpurifier.org/docs/enduser-id.html

Cheers,

Francois

8 results