Re: wanted: insert templates

Patrick Kollitsch <[email protected]> Mon, 01 Nov 2004 16:11:56 +0100
Newsgroups gmane.editors.bitflux.general
Organization akademie.de GmbH
Message-ID <[email protected]>
hi,

great, thanks! that worked.

patrick


Christian Stocker wrote:
> 
> 
> On 1.11.2004 16:03 Uhr, Patrick Kollitsch wrote:
> 
>> hi
>>
>> Christian Stocker wrote:
>>
>>>
>>>
>>> On 1.11.2004 14:23 Uhr, Patrick Kollitsch wrote:
>>>
>>>> hi,
>>>>
>>>> one of the most wanted features our users request is the possibility 
>>>> to define buttons, which insert a kind of template (like <div 
>>>> id="bla"><h1>header</h1><p>content</p></div>) for easy 
>>>> implementation of recurring contents/styles. do you see a 
>>>> possibility to implement such templates via a eDomEvent?
>>>
>>>
>>>
>>>
>>> This feature is on the Todo list, should hopefully be in 1.1 or 
>>> certainly 1.2
>>>
>>> There's a function called bxe_insertContent() which exactly would do 
>>> this. It's just a matter of a nice GUI and a way to configure it, to 
>>> make it really work...
>>
>>
>>
>> i tried the following (bxeLoader.js/function xml_loaded(xmldoc)):
>> document.eDOMaddEventListener("InsertBox",bxe_insertContent('<box><titel>titel</titel><xhtml:p>inhalt</xhtml:p></box>'),false); 
> 
> 
> 
> the second argument is the name of the callback function.
> 
> so
> 
> function bxeInsertBox () {
> bxe_insertContent('<box><titel>titel</titel><xhtml:p>inhalt</xhtml:p></box>') 
> 
> }
> 
> document.eDOMaddEventListener("InsertBox","bxeInsertBox",false);
> 
> could eventually work
> 
> Try adding an alert("foobar"); to the bxeInsertBox function to see, if 
> it actually works ;)
> 
> chregu
> 
> 
> 
> 
> 
>> with a button defined to take action="InsertBox" - but it did not work 
>> (no error, no reaction). how does the function has to be called?
>>
>> thanks
>> patrick
>>
>>>
>>> chregu
>>>
>>>>
>>>> greetings
>>>> patrick
>>>
>>>
>>>
>>>
> 

-- 
Patrick Kollitsch - Entwicklung
[email protected] - tel: (030) 616 55-164 fax: -120
akademie.de asp GmbH http://www.akademie.de




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