Ok, it's official:

I hate xinha :)


When I almost got it working, e.g. no more errors in the logs nor in the 
firebug console,
I'm really stuck in not seeing the button appears where it should.

Basically: 

- Media plugin 
- ExtendedFileSystem plugin

are loaded properly with no errors.

When I look at their registering phase (e.g. for the media plugin) I understood 
all I need to have the plugin loaded is:

htmlarea.js (loaded properly for extensions folder)

- HTMLArea.loadExternalPlugin("/extensions/xinha/plugins", "Media"); - to load 
the js from the extensions dir
- editor.registerPlugin("Media"); - to register it
- config.toolbar = [... , ... ,  
["separator","inserthorizontalrule","insertimage"]]; - media button registers 
itself in the insertimage button

media.js

- cfg.registerButton({
                id       : "InsertMedia",
                tooltip  : this._lc("Insert/edit Media"),
                image    : 
editor.imgURL("extensions/xinha/plugins/Media/img/media.gif", "Media"),
                textMode : false,
                action   : function(editor) {
                self.buttonPress(editor);
          }
     });   - registers the button (url of the image is properly resolved)
 
- cfg.addToolbarElement(["InsertMedia"],"insertimage", 1); - add it just after 
the insertimage button 


If I look at the generated HTML I see no reference to this button and all js 
are loaded properly with no exceptions.

I'm not a xinha expert, so I hope you gurus can give me a help.


Thanks a lot!

Gab







        config.toolbar = [ ["formatblock"], 
["separator","bold","italic","underline"], ["separator","copy", "cut", 
"space","undo", "redo"], ["separator","insertorderedlist", 
"insertunorderedlist"],["separator","createlink","inserttable"], 
["separator","killword","clearfonts","removeformat"], 
["separator","inserthorizontalrule","insertimage"]];

----- Gabriele Columbro <[EMAIL PROTECTED]> wrote:
> Or maybe it's just some javascript dynamic magic that is giving no
> more errors, while still not working ;)
> 
> I'll follow up on this one,
> g
>  
> ----- Gabriele Columbro <[EMAIL PROTECTED]> wrote:
> > The correct object is obviously
> > 
> > "HTMLArea"
> > 
> > :)
> > 
> > Now no js errors are thrown...
> > 
> > I'll let you know,
> > g
> > 
> > 
> > ----- Gabriele Columbro <[EMAIL PROTECTED]> wrote:
> > > I'm trying this solution, but ATM seems also "Editor" is not
> > > defined...
> > >
> > > Any other clue? I'll keep on investigating...
> > >
> > > Gab
> > >
> > >
> > > ----- Jeroen Reijn <[EMAIL PROTECTED]> wrote:
> > > > I wasn't finished yet with this email, but backporting should
> not
> > > be
> > > > that hard. I think in  the older version the Xinha object is
> the
> > > > Editor object.
> > > >
> > > > Regards,
> > > >
> > > > Jeroen
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED] on behalf of
> Jeroen
> > > > Reijn
> > > > Sent: Tue 4/8/2008 3:28 PM
> > > > To: Hippo CMS development public mailinglist; hippocms-dev
> > > > Subject: RE: [HippoCMS-dev] Embed a video picker in the Xinha
> > > editor
> > > >
> > > > Maurizio,
> > > >
> > > > I'm not 100% sure, but I know they guys at Xinha have started
> to
> > > > refactor Xinha a couple of months (maybe already a year ago).
> > > > The Xinha object will only be available with the latest version
> of
> > > > Xinha (which we are not using).
> > > >
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Jeroen
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED] on behalf of
> > maurizio
> > > > pillitu
> > > > Sent: Tue 4/8/2008 3:15 PM
> > > > To: hippocms-dev
> > > > Subject: [HippoCMS-dev] Embed a video picker in the Xinha
> editor
> > > >
> > > > Hi everybody,
> > > >
> > > > I need to enhance the Hippo CMS xinha editor with a video
> picker;
> > I
> > > > found this[1] which fits pretty well my needs and I started
> > working
> > > on
> > > > the integration within Hippo CMS, but I have some problems
> getting
> > > it
> > > > working:
> > > >
> > > > - my htmlarea.js configuration is attached
> > > >
> > > > - my common business-logic.xml (imported on every backend
> > template)
> > > I
> > > > defined
> > > >
> > > >     <libs>
> > > >         <lib
> src="/extensions/project-specific/js/htmlarea.js"/>
> > > >         <lib src="/extensions/types/htmlarea.js"/>
> > > >     </libs>
> > > >
> > > > - the /extensions/xinha folder contains
> > > >
> > > >   - an easy sitemap.xmap
> > > >
> > > > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
> > > >   <map:pipelines>
> > > >     <map:pipeline internal-only="false" type="noncaching">
> > > >
> > > >       <map:match pattern="**">
> > > >         <map:read src="{1}"/>
> > > >       </map:match>
> > > >
> > > >     </map:pipeline>
> > > >   </map:pipelines>
> > > > </map:sitemap>
> > > >
> > > >   - plugins folder, containing all the plugins implemented
> here[1]
> > > >
> > > > I currently get a JS error 'Xinha is not defined' which means I
> do
> > > > something *really* wrong trying to embed the extension in Xinha;
> I
> > > > followed this[2] documentation on the wiki.
> > > >
> > > > Any ideas?
> > > > TIA
> > > >
> > > > Met vriendelijke groet,
> > > > --
> > > > Maurizio Pillitu - 0031 (0)615655668
> > > > Sourcesense - making sense of Open Source:
> > > http://www.sourcesense.com
> > > >
> > > >
> > > > [1] - http://www.jljsolutions.co.uk/xinha.html
> > > > [2] - http://www.hippocms.org/display/CMS/Rich+text+editor
> > > >
> > > > ********************************************
> > > > Hippocms-dev: Hippo CMS development public mailinglist
> > > >
> > > > ********************************************
> > > > Hippocms-dev: Hippo CMS development public mailinglist
> > >
> > >
> > > --
> > > Gabriele Columbro
> > > Sourcesense - Making Sense of Opensource
> > > (+39) 3201612846
> > > (+31) 627565103
> > > Open Source Software Engineer (http://www.mindthegab.com)
> > >
> > > ********************************************
> > > Hippocms-dev: Hippo CMS development public mailinglist
> > 
> > 
> > --
> > Gabriele Columbro
> > Sourcesense - Making Sense of Opensource
> > (+39) 3201612846
> > (+31) 627565103
> > Open Source Software Engineer (http://www.mindthegab.com)
> 
> 
> -- 
> Gabriele Columbro
> Sourcesense - Making Sense of Opensource
> (+39) 3201612846
> (+31) 627565103
> Open Source Software Engineer (http://www.mindthegab.com)
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist


-- 
Gabriele Columbro
Sourcesense - Making Sense of Opensource
(+39) 3201612846
(+31) 627565103
Open Source Software Engineer (http://www.mindthegab.com)

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to