had a problem inserting this code:
<map name="kart_rus_fo_Map"><area title="" alt=""
href="/lee"
coords="71,120,82,117,102,124,129,146,145,161,137,16
5,125,163,113,164,99,175,84,188,76,193,67,193,54,196,
46,171,51,154,63,129" shape="POLY"/></map>
FCKEditor always cutted out the shape attribute and
cutted down coords to the size of 4 elements.
So I added a patch to the FCK:
/editor/js/fckeditorcode_ie_1.js
find the block with the word "area", uncompress it and
replace it with this
case "area":
if (FCKBrowserInfo.IsIE&&!
oNode.attributes.getNamedItem('coords')){
var sCoords=htmlNode.getAttribute('coords',2);
if (sCoords&&sCoords!='0,0,0') this._AppendAttribute
(oNode,'coords',sCoords);
};
if ( FCKBrowserInfo.IsIE && !
oNode.attributes.getNamedItem( 'shape' ) )
{
var sShape = htmlNode.getAttribute( 'shape', 2 ) ;
if ( sShape && sShape != '' )
this._AppendAttribute( oNode, 'shape', sShape ) ;
}
break;
Frederico, I hope you include this in the next version of
FCK. Otherwise, it's impossible to work with imagemaps.
Thank you!
<map name="kart_rus_fo_Map"><area title="" alt=""
href="/lee"
coords="71,120,82,117,102,124,129,146,145,161,137,16
5,125,163,113,164,99,175,84,188,76,193,67,193,54,196,
46,171,51,154,63,129" shape="POLY"/></map>
FCKEditor always cutted out the shape attribute and
cutted down coords to the size of 4 elements.
So I added a patch to the FCK:
/editor/js/fckeditorcode_ie_1.js
find the block with the word "area", uncompress it and
replace it with this
case "area":
if (FCKBrowserInfo.IsIE&&!
oNode.attributes.getNamedItem('coords')){
var sCoords=htmlNode.getAttribute('coords',2);
if (sCoords&&sCoords!='0,0,0') this._AppendAttribute
(oNode,'coords',sCoords);
};
if ( FCKBrowserInfo.IsIE && !
oNode.attributes.getNamedItem( 'shape' ) )
{
var sShape = htmlNode.getAttribute( 'shape', 2 ) ;
if ( sShape && sShape != '' )
this._AppendAttribute( oNode, 'shape', sShape ) ;
}
break;
Frederico, I hope you include this in the next version of
FCK. Otherwise, it's impossible to work with imagemaps.
Thank you!