Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2009-12-01 14:18:20

YesIam
New member
Registered: 2009-11-30
Posts: 5

3 questions about Xinha plug-in and Custom plug-in

Hi folks big_smile

I'm working on my plug-in... but I've three problem:
(sorry for my english!)

1) many things in Xinha are done very well.. So I want handler only few cases and left others cases to Xinha...
    Example: 
    if "nothing is selected" do my code;
    else if "an image is selected" call original  Xinha dialog.....
 
    I've tried to do something like :   myEditor._insertImage
    but it doesn't work... no error, but the dialog doesn't come...
    Can you help me??   


2) Now I've two button for handler image.... my plug-in and Xinha _insertImage plug-in....
    If i do a doubleClick on image... insertImage is called....
    Can I link dClick on my plugIn???

3) the last question...
    I like put only my plugin in the toolbar  (and use the Xinha plug-in power... 1st question docet)
    but I've noticed that if I don't put 'insertImage' in the toolbar, and do a dClick on an image, I get an error:      this._insertImage is not a function
    So.. I can't use _insertImage if its button is not in toolbar??

ok... it's all...
thanks again!!!

byezzzzz

Offline

#2 2009-12-01 14:49:28

YesIam
New member
Registered: 2009-11-30
Posts: 5

Re: 3 questions about Xinha plug-in and Custom plug-in

I answer myself....

question 1.

Yes.. is possible.... ----> myEditor.execCommand("insertimage");

thanks google!!

byezzzz

Offline

#3 2009-12-05 19:07:33

Nova
New member
From: Internet
Registered: 2009-12-05
Posts: 2
Website

Re: 3 questions about Xinha plug-in and Custom plug-in

Seems you have solved your own problem, thats great.


[url=http://novablog.co.cc]Nova[/url] // [url=http://venomancer.co.cc]Venomancer[/url]
The future has already arrived. It's just not evenly distributed yet.

Offline

#4 2009-12-07 06:09:04

YesIam
New member
Registered: 2009-11-30
Posts: 5

Re: 3 questions about Xinha plug-in and Custom plug-in

ohh.. yeah...
I'm happy for you :D

Offline

Board footer

Powered by FluxBB