Hi all!
I'm a new user of FCKeditor and I am looking for
(1) how to run javascript into the editing area of the editor
OR (2) how to capture the event of click in any point of the editing area.
I mean: I saw several examples of the first solution in this forum of these kinds of interactions but I haven't succeed doing it
I give you an example of what I want to do:
You are using <a href="http://www.fckeditor.net/">FCKeditor</a> This is <span id="spanTHERAError1" class="rojo" onClick="alert(hola);">newText</span>
Re: [javascript running] in the text area, capture click
I'm still Julia.
I have succeedeed to capture the event of click by capturing the one of the whole document of the editor.
I give you he the successful code:
The code has to be inserted in the page that creates the editor in a javascript heading.
I insist that it's a "clean" solution because both behaviours are going to be running: the specific behaviour in the function onClickCapture, and the default one (for example detect if we are in bold tag).
Thanks to all.
Julia
Re: [javascript running] in the text area,event.srcElement ?
well it works but I can't succeed to get the source of the event...
Please would you know how to do?
Julia
Re: [javascript running] in the text area, capture click
Re: [javascript running] in the text area, capture click
Hello and thanks lake
!
Well I've tried everything I'm putting down (commented):
Re: [javascript running] in the text area, capture click
Re: [javascript running] in the text area,event.srcElement ?
You almost got it right the first time, but you didn't check for the event:
W3C compliant browsers will send it as the parameter to your function, and IE..., well, IE is IE.
Re: [javascript running] in the text area,event.srcElement ?
Hello! and thanks Alfonsomi!
Unfortunately it neither works...
For now the project is "in pause", so I stop looking for a solution.
I work with Linux and an emulator of Internet Explorer 6. With our former editor ,that way to capture the event was working... (the one where I don't have the event e passed in parameter)
I "put" that post in "pause", and will go on when the project starts again... (but it's not solved).
Thanks to all.
And if anybody want to contribuate...
Julia
Re: [javascript running] in the text area, capture click
Re: [javascript running] in the text area, capture click
THANKS A LOT alfonsomi, it works!!!!
Post solved.
Re: [javascript running] in the text area, capture click