BXE version 1.1.0

"PPK-Webprogramm CH Gordevio www.ciz.ch" <[email protected]> Mon, 19 Dec 2005 11:38:49 +0100
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
Hi all BXE user,

I search a way to make <br/>  tag visible ... by View tag (not only source)
css2  #idsection  br:after or so not work on firefox or all other browser...
have You any other better  idea.....


I found only this way.....

   function send_bxe($xhtml) {
    ////// extended domDocument + append fragment-or-xmlfile ///////
    ////// http://ciz.ch/svnciz/pulitzer_cms/etc/class/xml/XML.php  /////
    $dom = new XML();
    $dom->loadHTML($xhtml);
    $xp = new DomXPath($dom);
    $resultbr = $xp->query("//br");
   
        foreach ($resultbr as $node) {
                    ///// kupusmania - tag ///////
                    if ($node->hasAttribute('type')) {
                       $node->removeAttribute('type');
                     }
            $marker = $dom->createElement('var','&#00182;');
            $marker->setAttribute('class','breakline');
            $node->parentNode->insertBefore($marker,$node);
        }
///// send to bxe editor and by save remove all var class=breakline
    return $dom->saveHTML()

peter www.ciz.ch
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users