Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

Xinha WYSIWYG plugin not loading automatically

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


m.marti.menzel at eurotransmit

Apr 30, 2009, 5:44 AM

Post #1 of 10 (1614 views)
Permalink
Xinha WYSIWYG plugin not loading automatically

I'm still working on my Spanish translation of Bricolage (I'm working on
version 1.11.1 (trunk)), and have encountered a few strange things while
using the UI.

When I create a story, if I include WYSIWYG widget-type Bricolage
elements in it (in my case paragraphs), the Xinha editor I have enabled
in the configuration doesn't seem to load automatically for every
textarea included. It is only when I save the story that the Xinha
textareas "go alive". So my procedure is to include a new paragraph
element instance, save and stay, and then write and format the paragraph
in the now enabled Xinha textarea.

Has any of you experienced this problem? Do you know a workaround?

Thanks and best regards,

Michael


david at kineticode

Apr 30, 2009, 9:09 AM

Post #2 of 10 (1524 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

On Apr 30, 2009, at 5:44 AM, Euro Transmit, S.L. - Michael Martí
Menzel wrote:

>
> I'm still working on my Spanish translation of Bricolage (I'm
> working on version 1.11.1 (trunk)), and have encountered a few
> strange things while using the UI.
>
> When I create a story, if I include WYSIWYG widget-type Bricolage
> elements in it (in my case paragraphs), the Xinha editor I have
> enabled in the configuration doesn't seem to load automatically for
> every textarea included. It is only when I save the story that the
> Xinha textareas "go alive". So my procedure is to include a new
> paragraph element instance, save and stay, and then write and format
> the paragraph in the now enabled Xinha textarea.
>
> Has any of you experienced this problem? Do you know a workaround?

It was a bug, and has been fixed. You should grab the sources from
GitHub:

http://github.com/bricoleurs/bricolage/tree/master

Best,

David


michael at zambra

Apr 30, 2009, 11:44 AM

Post #3 of 10 (1513 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

David E. Wheeler escribió:
> On Apr 30, 2009, at 5:44 AM, Euro Transmit, S.L. - Michael Martí
> Menzel wrote:
>
>>
>> I'm still working on my Spanish translation of Bricolage (I'm working
>> on version 1.11.1 (trunk)), and have encountered a few strange things
>> while using the UI.
>>
>> When I create a story, if I include WYSIWYG widget-type Bricolage
>> elements in it (in my case paragraphs), the Xinha editor I have
>> enabled in the configuration doesn't seem to load automatically for
>> every textarea included. It is only when I save the story that the
>> Xinha textareas "go alive". So my procedure is to include a new
>> paragraph element instance, save and stay, and then write and format
>> the paragraph in the now enabled Xinha textarea.
>>
>> Has any of you experienced this problem? Do you know a workaround?
>
> It was a bug, and has been fixed. You should grab the sources from
> GitHub:
>
> http://github.com/bricoleurs/bricolage/tree/master
>
> Best,
>
> David
>
>
Thanks David. Someone else has probably addressed the problem in the
past already, and I missed the corresponding messages.

Best,

Michael


david at kineticode

Apr 30, 2009, 12:42 PM

Post #4 of 10 (1536 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

On Apr 30, 2009, at 11:44 AM, Zambra wrote:

> Thanks David. Someone else has probably addressed the problem in the
> past already, and I missed the corresponding messages.

I don't think there were messages on the list, but there was a
Bugzilla issue for it.

Best,

David


michael at zambra

May 4, 2009, 4:31 AM

Post #5 of 10 (1495 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

David E. Wheeler escribió:
> On Apr 30, 2009, at 11:44 AM, Zambra wrote:
>
>> Thanks David. Someone else has probably addressed the problem in the
>> past already, and I missed the corresponding messages.
>
> I don't think there were messages on the list, but there was a
> Bugzilla issue for it.
>
> Best,
>
> David
>
>


BTW I have noticed that Xinha loads a PHP page (the one that applies the
spell checking logic) when you enable the spell checking in
Bricolage.conf. I had to add the corresponding handler in my httpd.conf.
I don't know whether it is "overkill" to add this handler in the
automatic configuration of httpd.conf done by Bricolage. At least Xinha
users should know that they will need mod_php and add the corresponding
handler in the config file in order to be able to use spell checking.

Best,

Michael


david at kineticode

May 4, 2009, 8:39 AM

Post #6 of 10 (1503 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

On May 4, 2009, at 4:31 AM, Zambra wrote:

> BTW I have noticed that Xinha loads a PHP page (the one that applies
> the spell checking logic) when you enable the spell checking in
> Bricolage.conf. I had to add the corresponding handler in my
> httpd.conf. I don't know whether it is "overkill" to add this
> handler in the automatic configuration of httpd.conf done by
> Bricolage. At least Xinha users should know that they will need
> mod_php and add the corresponding handler in the config file in
> order to be able to use spell checking.

Oh, is *that* why it doesn't work? Can you send me the code you added
to httpd.conf to get it to work properly?

Thanks,

David


michael at zambra

May 4, 2009, 9:15 AM

Post #7 of 10 (1499 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

David E. Wheeler escribió:
> On May 4, 2009, at 4:31 AM, Zambra wrote:
>
>> BTW I have noticed that Xinha loads a PHP page (the one that applies
>> the spell checking logic) when you enable the spell checking in
>> Bricolage.conf. I had to add the corresponding handler in my
>> httpd.conf. I don't know whether it is "overkill" to add this handler
>> in the automatic configuration of httpd.conf done by Bricolage. At
>> least Xinha users should know that they will need mod_php and add the
>> corresponding handler in the config file in order to be able to use
>> spell checking.
>
> Oh, is *that* why it doesn't work? Can you send me the code you added
> to httpd.conf to get it to work properly?
>
> Thanks,
>
> David
>
>
Well, I just added the php handler to the Xinha Location directive
<Location /media/wysiwyg/xinha/plugins/SpellChecker> :

AddHandler application/x-httpd-php .php

I've added handlers for .php4 and .php5 too, but I guess this is hardly
necessary.


Michael


david at kineticode

May 4, 2009, 9:25 AM

Post #8 of 10 (1506 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

On May 4, 2009, at 9:15 AM, Zambra wrote:

> Well, I just added the php handler to the Xinha Location directive
> <Location /media/wysiwyg/xinha/plugins/SpellChecker> :
>
> AddHandler application/x-httpd-php .php
>
> I've added handlers for .php4 and .php5 too, but I guess this is
> hardly necessary.

Oh. There must be a way to do it with Perl, instead…

David


michael at zambra

May 4, 2009, 9:36 AM

Post #9 of 10 (1493 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

David E. Wheeler escribió:
> On May 4, 2009, at 9:15 AM, Zambra wrote:
>
>> Well, I just added the php handler to the Xinha Location directive
>> <Location /media/wysiwyg/xinha/plugins/SpellChecker> :
>>
>> AddHandler application/x-httpd-php .php
>>
>> I've added handlers for .php4 and .php5 too, but I guess this is
>> hardly necessary.
>
> Oh. There must be a way to do it with Perl, instead…
>
> David
>
>
This goes beyond my Perl knowledge :-) I just noticed that when I
clicked on the Spell Checker button in the Xinha text area the plugin
loaded a page the server was not able to interpret correctly. So it was
just a matter of reconfiguring Apache. On the other hand it would be
nice if Config. pm could handle this. Or did you mean something around
PHP::Interpreter? I had to disable it in my install, because it fired up
an error (apparently due to an obsolete PHP::Interpreter against newer
PHP versions - this was already commented in the list).

Michael


ktm at rice

May 4, 2009, 10:49 AM

Post #10 of 10 (1491 views)
Permalink
Re: Xinha WYSIWYG plugin not loading automatically [In reply to]

On Mon, May 04, 2009 at 09:25:09AM -0700, David E. Wheeler wrote:
> On May 4, 2009, at 9:15 AM, Zambra wrote:
>
>> Well, I just added the php handler to the Xinha Location directive
>> <Location /media/wysiwyg/xinha/plugins/SpellChecker> :
>>
>> AddHandler application/x-httpd-php .php
>>
>> I've added handlers for .php4 and .php5 too, but I guess this is hardly
>> necessary.
>
> Oh. There must be a way to do it with Perl, instead?
>
> David

Here is what the README file says in media/wysiwyg/xinha/plugins/SpellChecker:

-----------------------------
ExecCGI Note:
If you intend to use the perl (.cgi) backend then you will need to have the ExecCGI option enabled f
or this directory (if you are using Apache), you may be able to do this by adding a file called .hta
ccess in this directory, with the below contents.

## EXAMPLE .htaccess
Options +ExecCGI
####################

It is however recommended that you use the PHP backend where possible.
-----------------------------

It looks like perl should work as well.

Ken

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.