Re: bitflux and lenya again

Thomas Hartwig <[email protected]> Sat, 15 May 2004 15:06:47 +0200
Newsgroups gmane.editors.bitflux.general,gmane.comp.cms.lenya.user
Message-ID <[email protected]>
Hello Christian,

thank you very much for you detailed description. I'm just getting into 
it now and it works already. One of the main problem was that lenya did 
not include the right schemas in the default dist.

Thanks, I think you mail will help others too
Thomas

Christian Stocker wrote:
> 
> 
> On 14.5.2004 23:20 Uhr, Hartwig, Thomas wrote:
> 
>> Sorry for crossposting to two mailinglists, but I hope to reach at least
>> one who might help me with my problems of integrating bitflux with lenya.
> 
> 
> FYI, Bitflux is the company, the product is called "Bitflux Editor", or 
> BXE for short (and this will als be the official name soon, as the 
> Editor will become an OSCOM project)
> 
>>
>> I have taken a look to the bitflux/examples/inlineXHTML and I'm really
>> impressed. But unfortunately I can not reach the same functionality to
>> work with lenya. I have found absolutely no current documentation about
>> A: configuring bitflux in its current version and B: how is bitflux
>> integrated in lenya.
> 
> 
> In BXE, there are mainly 2 places to configure the Editor.
> 
> First, the Relax NG itself, for defining which elements are allowed 
> where. RelaxNG is an alternative to XML Schema and relatively easy to 
> understand. More info about RelaxNG can be found at http://relaxng.org/.
> 
> Where this RelaxNG file can be found within Lenya was answered in 
> another mail.
> 
> The second place is the config.xml
> 
> Besides defining which files to load, from where and some button 
> definition, you can also define, which elements (defined in the RelaxNG) 
> should _not_ appear on the popups.
> 
> See 
> http://cvs.bitflux.ch/chora/co.php/trunk/examples/uni/config.xml?rt=svneditor&r=687#120 
> for an example (the <context type="dontShow"> part)
> 
> the config.xml is also somewhat described i 
> http://wiki.bitfluxeditor.org/index.php/config.xml
> 
> I don't know, where the config.xml is located in lenya, but someone else 
> can certainly answer you that.
> 
> 
>> My problems in detail:
>>
>> Thanks to Rolf Kulemann we have a cleen public installation for this:
>> http://olr.kbs.uni-hannover.de:8080/lenya/default/authoring/
>>
>> 1. It is not possible to make a word bold. Bitflux always claims: "b 
>> is not allowed as a child of p" (this is possible in the original 
>> examples of bitflux)
> 
> 
> change the button definition in the config.xhtml from
> <button name="b" col="1" row="1" action="ToggleTextClass" 
> ns="http://www.w3.org/1999/xhtml"/>
> to
> <button name="strong" col="1" row="1" action="ToggleTextClass" 
> ns="http://www.w3.org/1999/xhtml"/>
> 
> (if th Lenya xhtml schema needs strong instead of b, as mentioned in 
> another mail)
> 
>>
>> 2. In the upper left corner you have a bunch of xhtml style elements 
>> in the examples (like xhtml:p, xhtml:h1, xhtml:li,...) In the lenya 
>> default pub there are just two 4 of that (p, h1-4)
> 
> 
> remove the ones you want to show from the config.xml.
> 
> To make it hopefully clear, what those 2 different "files" intend to do:
> 
> The RelaxNG Schema is for defining, which elements and attributes are 
> allowed where. It's the general approach to the problem, using a widely 
> known standard.
> 
> In the config.xml, you can adjust, what BXE should show to the user 
> (besides other configuration issues). As the XHTML standard is quite 
> huge, we didn't want to show all possibilities to the enduser, but still 
> allow to validate these X(HT)ML documents.
> 
> By the way, Lenya uses RelaxNG for all its validation (Form Editor et 
> al.), so it's not a BXE specific issue for your Lenya installation. If 
> you change the RelaxNG, all other editors will validate against your new 
> schema, as well.
> 
> HTH
> 
> chregu
> 
>>
>>
>> So far so good, this sounds not to much, but I'm wondering that I'm 
>> absolutely not able to change the default behaviour in lenya. I have 
>> peeked around really a lot already with all the schema files and tried 
>> to adjust config.xml, xhtml.xml and so on, but nothing helps. I'm sure 
>> I'm missing one small point. Do you have a hint for me?
>>
>> Thanks a lot for every sugesstion
>> Thomas
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
> 
> 
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users