David Farrell | 1 Jun 2004 12:04

Rookie Teething Woes (Saving docs..)

Hi all,

I'm new to Bitflux Editor and I'm having a few teething problems,
hopefully someone can help!

Thanks to the informative post last week that got added to the wiki, I
have been able to get 'somewhere' with my Bitflux installation.

I'm building a system that will allow users to have inline formatted
content (hence Bitflux!).

I could do with a couple of pointers...

Currently, I have a page that has Bitflux editable content - based on the
inlineXHTML example's index.html file.

I have stripped away much of the formatting, leaving only the heading and
the main body of text.

I have 'basic' save ability - when I click save, it does replace the
content with the changes the user makes.

It saves this into the 'inline.xml' file that I specify via a get-var
parameter (?xmlurl=inline.xml)

So far, so good.

However.. every time I click 'save' I get the following error (inside the
'orange box'):
"
(Continue reading)

Christian Stocker | 1 Jun 2004 13:06
Picon

Re: Rookie Teething Woes (Saving docs..)


On 1.6.2004 12:04 Uhr, David Farrell wrote:

> Hi all,
> 
> I'm new to Bitflux Editor and I'm having a few teething problems,
> hopefully someone can help!
> 
> Thanks to the informative post last week that got added to the wiki, I
> have been able to get 'somewhere' with my Bitflux installation.
> 
> I'm building a system that will allow users to have inline formatted
> content (hence Bitflux!).
> 
> I could do with a couple of pointers...
> 
> 
> Currently, I have a page that has Bitflux editable content - based on the
> inlineXHTML example's index.html file.
> 
> I have stripped away much of the formatting, leaving only the heading and
> the main body of text.
> 
> I have 'basic' save ability - when I click save, it does replace the
> content with the changes the user makes.
> 
> It saves this into the 'inline.xml' file that I specify via a get-var
> parameter (?xmlurl=inline.xml)
> 
> So far, so good.
(Continue reading)

Christian Stocker | 1 Jun 2004 13:33
Picon

Re: Rookie Teething Woes (Saving docs..)

Hi

Sorry... Wrong answer ;)

You have to send the 204 or 201 HTTP Status Code.. That's the WebDAV 
convention. In PHP, this looks like that:

header("HTTP/1.1 204 No Content");

I'll make a wiki entry and put a sample php script in the repository. 
Examples in other languages are welcome, of course ;)

Hope that helps

chregu

On 1.6.2004 13:06 Uhr, Christian Stocker wrote:

> 
> 
> On 1.6.2004 12:04 Uhr, David Farrell wrote:
> 
>> Hi all,
>>
>> I'm new to Bitflux Editor and I'm having a few teething problems,
>> hopefully someone can help!
>>
>> Thanks to the informative post last week that got added to the wiki, I
>> have been able to get 'somewhere' with my Bitflux installation.
>>
(Continue reading)

Christian Stocker | 1 Jun 2004 14:08
Picon

Re: Rookie Teething Woes (Saving docs..)

Hi again...

The script is now in SVN and there's a wiki entry at

http://wiki.bitfluxeditor.org/index.php/SavingContent

php script:
http://svnweb.bitflux.ch/chora/co.php/trunk/scripts/loadsave.php?rt=svneditor&r=HEAD

chregu

On 1.6.2004 13:33 Uhr, Christian Stocker wrote:

> Hi
> 
> Sorry... Wrong answer ;)
> 
> You have to send the 204 or 201 HTTP Status Code.. That's the WebDAV 
> convention. In PHP, this looks like that:
> 
> header("HTTP/1.1 204 No Content");
> 
> I'll make a wiki entry and put a sample php script in the repository. 
> Examples in other languages are welcome, of course ;)
> 
> Hope that helps
> 
> chregu
> 
> 
(Continue reading)

Mathias Jud | 1 Jun 2004 15:29
Picon

validation-Error with csismap.rng-module

Hi Chregu

We tried out the RelaxNG-Module csismap.rng to allow the following 
XHTML-Code:

<p><img alt="" height="389" src="G_C/WW_ubersicht.gif" 
usemap="WW_ubersichtbcd69d0c" width="388"/><map 
id="WW_ubersichtbcd69d0c" name="WW_ubersichtbcd69d0c"><area alt="" 
coords="224,289,279,318" href="PF_ww_Park2.htm" 
shape="rect"/></map></p>

Jing is validating it correctly.
But BXE gives us the following message at startup-Time:
area(http://www.w3.org/1999/xhtml) is not allowed as child of 
map(http://www.w3.org/1999/xhtml)

Could we rewrite the Relax-NG-Module in a different way to make it work 
in BXE?
This is the current definition for the precence of the area-tag in the  
map-tag:

<define name="map">
   <element name="map">
     <ref name="map.attlist"/>
     <oneOrMore>
       <choice>
         <!-- This does not use Block.mix
              because loose.dtd doesn't use %Flow; -->
         <ref name="Block.class"/>
         <ref name="area"/>
(Continue reading)

Christian Stocker | 1 Jun 2004 15:30
Picon

Re: validation-Error with csismap.rng-module

Hi

On 1.6.2004 15:29 Uhr, Mathias Jud wrote:

> Hi Chregu
> 
> We tried out the RelaxNG-Module csismap.rng to allow the following 
> XHTML-Code:
> 
> <p><img alt="" height="389" src="G_C/WW_ubersicht.gif" 
> usemap="WW_ubersichtbcd69d0c" width="388"/><map 
> id="WW_ubersichtbcd69d0c" name="WW_ubersichtbcd69d0c"><area alt="" 
> coords="224,289,279,318" href="PF_ww_Park2.htm" shape="rect"/></map></p>
> 

> 
> Jing is validating it correctly.
> But BXE gives us the following message at startup-Time:
> area(http://www.w3.org/1999/xhtml) is not allowed as child of 
> map(http://www.w3.org/1999/xhtml)
> 
> 
> Could we rewrite the Relax-NG-Module in a different way to make it work 
> in BXE?
> This is the current definition for the precence of the area-tag in the  
> map-tag:
> 
> <define name="map">
>   <element name="map">
>     <ref name="map.attlist"/>
(Continue reading)

David Farrell | 1 Jun 2004 18:53

Re: Rookie Teething Woes (Saving docs..)

The PHP script really helped.

Using the script I can now do a save to file - which is a good step in the
right direction.

One tip for anyone who is using the loadsave.php file - if you haven't set
up an error log, you may get an error when saving.  I was recieving a "XML
not parsed" error when I first used the script.

After a bit of fiddling I realised that the problem was coming from the
"error_log()" lines.  Because I hadn't set up an error log, the php script
was spitting the output to the default output - which meant that the XML
that BXE was receiving also contained two random strings (base dir and xml
file paths) - and thus, was not receiving fully formed XML.

If you are in this situation, just comment out those two lines:

//error_log($basedir);
//error_log($xmlfile);

and your sorted.

Cheers for the pointers.

David

> Hi again...
>
> The script is now in SVN and there's a wiki entry at
>
(Continue reading)

Christian Stocker | 1 Jun 2004 18:55
Picon

Re: Rookie Teething Woes (Saving docs..)


On 1.6.2004 18:53 Uhr, David Farrell wrote:

> The PHP script really helped.
> 
> Using the script I can now do a save to file - which is a good step in the
> right direction.
> 
> One tip for anyone who is using the loadsave.php file - if you haven't set
> up an error log, you may get an error when saving.  I was recieving a "XML
> not parsed" error when I first used the script.
> 
> After a bit of fiddling I realised that the problem was coming from the
> "error_log()" lines.  Because I hadn't set up an error log, the php script
> was spitting the output to the default output - which meant that the XML
> that BXE was receiving also contained two random strings (base dir and xml
> file paths) - and thus, was not receiving fully formed XML.
> 
> If you are in this situation, just comment out those two lines:
> 
> //error_log($basedir);
> //error_log($xmlfile);
> 
> and your sorted.
> 
> 
> Cheers for the pointers.

thanks for the hint ;) They shouldn't be there, that was just for my 
testing. I removed them now
(Continue reading)

Ulrich Fischer | 4 Jun 2004 10:59
Picon

Edit XHTML Files?


Hi Chregu,

bitfluxeditor is a real great editor, I think.
The basic concept to create valid code in a Wysiwyg
Mode is realy fascinating.

Do you think, it is possible, to edit
xhtml-files as well as xml-files.

It seems to be not so easy, as I thought first.
Any suggestion, which steps would be necessary?

Many thanks for an inspiration and greetings

Ulrich

--

-- 
bx-editor-users mailing list
bx-editor-users <at> lists.bitflux.ch
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users

Christian Stocker | 4 Jun 2004 11:06
Picon

Re: Edit XHTML Files?

Hi Ulrich

On 4.6.2004 10:59 Uhr, Ulrich Fischer wrote:

> 
> Hi Chregu,
> 
> bitfluxeditor is a real great editor, I think.
> The basic concept to create valid code in a Wysiwyg
> Mode is realy fascinating.

thanks ;)
> 
> Do you think, it is possible, to edit
> xhtml-files as well as xml-files.
> 
> 
> It seems to be not so easy, as I thought first.
> Any suggestion, which steps would be necessary?

Did you see the inlineXHTML and the uni example?
They use XHTML for the actual content:

http://cvsdemo.bitfluxeditor.org/examples/inlineXHTML/
http://cvsdemo.bitfluxeditor.org/examples/uni/

It's certainly possible to use XHTML for the whole page, but you will 
have some difficulties maybe with the elements in <head> right now

If you can provide more information, what you exactly need, I can give 
(Continue reading)


Gmane