Hi All,
There seems to be a bug in FCK when it comes on to plugins. I've duplicated the Placeholder plugin and have called them Placeholder1 and Placeholder2.
Placeholder 1 uses the format [.name.] whiles placeholder2 uses [[name]]
When I try to double click on placeholder2 nothing happens
There seems to be a bug in FCK when it comes on to plugins. I've duplicated the Placeholder plugin and have called them Placeholder1 and Placeholder2.
Placeholder 1 uses the format [.name.] whiles placeholder2 uses [[name]]
When I try to double click on placeholder2 nothing happens
RE: Multiple Placeholder plugins
Maybe something like:
FCKXHtml.addTagProcessor("span",myFunction)
RE: Multiple Placeholder plugins
FCKPlaceholders.previousProcessor=FCKXHtml.TagProcessors['span'];
FCKXHtml.TagProcessors['span'] = function( node, htmlNode )
{
if ( htmlNode._redireccion )
node = FCKXHtml.XML.createTextNode( '[[' + htmlNode._fckplaceholder + ']]' ) ;
else
{
if (typeof FCKPlaceholders.previousProcessor == 'function')
node = FCKPlaceholders.previousProcessor ( node, htmlNode ) ;
else
FCKXHtml._AppendChildNodes( node, htmlNode, false ) ;
}
return node ;
}
If you code your tag processors this way they collaborate with each other and there won't be any problems.
RE: Multiple Placeholder plugins
Many thanks for the info. I'll give ti a try
One other question... Does anyone knows how to add a menu option to the context menu? I need to add "Placeholder properties" to the context menu