Milan Jezdik wrote:
Jörn Nettingsmeier wrote:
Milan jezdik wrote:
Hi,
is there any way how to create NEW tag (let say xhtml:Z) which will
have same
transformation as xmtml:A but target="_blank" will be added to this a
href tag
transformation?
why don't you just add the target attribute?
i'm not sure i understand what you're up to, but say you wanted two
buttons "create link" and "create popup link", then one would create a
snippet <a href="url">text</a> and the other would create <a
href="url" target="_blank"></text>. no need to fiddle with
non-standard elements or custom namespaces.
i could show you how to do it in fckeditor or tiny. what editor are
you using?
Thanks for reply. You understand well. The point is editors are lazy so
they don't remember target.... structure.
You are talking about BUTTONS. It sounds like a way. Usually the editors
are using BXE Editor (BitFlux).
with bxe, you could easily [*] add another button that does the same as
the current link button, but has the extra target attribute.
[*] for very small values of "easy" :(
are you using lenya 2.0? if so, take a look at the bxe module, there's a
config file somewhere under resources/javascript/misc/inc/config.xml
iirc. also look at resources/javascript/bxe_lenya_glue.js, there you can
see how the current button works. just copy the code and modify it.
What do you call tiny and fckeditor?
ah, sorry. i should have been more clear. they are two editors which are
not yet officially featured in the default publication, but we are about
to change that real soon now. http://fckeditor.net,
http://tinymce.moxiecode.org.
both cannot be shipped with lenya due to license incompatibilities, but
you can easily download them yourself. check out the module
documentation on the lenya homepage for installation instructions.
hope that helps,
jörn
--
Jörn Nettingsmeier
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]