how does function javascript in WYSIWYG-editors?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
ayko
Regular
Posts: 8
Joined: Wed Feb 21, 2007 7:10 pm

how does function javascript in WYSIWYG-editors?

Post by ayko »

Hi all,

i`m an newbie in javascript. And i want to customize my xinha-editor for my personal use.

But i didn't understand how the Editor works.

I think, that my WYSIWYG-actions will be "translated" to html-code.

Which file translate my actions to the textarea??

Especially where can i look for the the string-output of the image-manager, which compile the code like this

Code: Select all

<img src="/somewhere/myimages/test.jpg" width=100 height=200>
.

(pre)thank you, for your help
Ayko
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: how does function javascript in WYSIWYG-editors?

Post by garvinhicking »

Hi!

What do you want to customized? A WYSIWYG editor does not easily support for you to add custom HTML - they are made to transform all your inputs into HTML, and thus would escape javascript.

For Xinha customization, you might want to visit xinha specific forums.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ayko
Regular
Posts: 8
Joined: Wed Feb 21, 2007 7:10 pm

Post by ayko »

I want customize the html-output of the imagemanager.

But i only need the js-file or function which do this?!?

Bye
Ayko
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Sadly I don't know anything about xinha, but maybe you can search all of Xinhas file for the occurence of '<img>'?

Otherwise, the developers of Xinha might help you on their forums.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply