About Placeholder Plugin.
How to change marked text from [[xx]] to {xx}?
I can't set regular expression for check matching word when i change innerHTML from '[[ ' + name + ' ]]' to '{' + name + '}'
1. var aPlaholders = FCK.EditorDocument.body.innerText.match( /\[\[[^\[\]]+\]\]/g ) ;
2. var sName = aPlaholders[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ;
3. var aPieces = aNodes[n].nodeValue.split( /(\[\[[^\[\]]+\]\])/g ) ;
4. var sName = aPieces[i].match( /\[\[\s*([^\]]*?)\s*\]\]/ )[1] ;
5. if ( /\[\[[^\[\]]+\]\]/.test( node.nodeValue ) )
Help me please. Thank you.
Fri, 09/19/2008 - 13:17
#1
Re: Placeholder Plugin.How to change marked text [[xx]] to {xx}