Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-05-05 09:18:47

Jaycee
New member
Registered: 2009-05-05
Posts: 1

Adding custom attribute field to CreateLink popup editor

I have added an extra field called "external link" and actually named "lname" in the html source. Its purpose is to add a custom attribute to the <a href="..."> tag that would appear like <a lname="some_value" href="...">.

I've modified the code so that this works in IE, but on FF it will not add the extra attribute when it is not empty. It will only add/modify href, title, and target attributes on FF 3.0.x.

I see on CreateLink.js where you add all the different parameters of a link to the "a" js variable (ie: a.href = _8.f_target.trim(); a.title = _8.f_title.trim();  ... and now a.lname = _8.f_lname.trim(); ). It appears that this extra lname parameter is passing through to selectNodeContents, but I don't see where in the js code these attributes are actually being inserted into the text editor source code.

Any help with this would be greatly appreciated!

Offline

Board footer

Powered by FluxBB