you might try a mootools wysiwyg editor, like http://cheeaun.github.com/mooeditable/
On Fri, Jan 22, 2010 at 1:59 AM, Davor Ilic <[email protected]> wrote: > Does anyone try it and know what is to change to work it? > > 2010/1/22 Davor Ilic <[email protected]> > > Ok i see i should have said that i´m using tinymc editor and it seem that >> mootools and tinymce aren´t compatible enough. >> Did anyone use tinymce and mootools together? >> >> 2010/1/22 Davor Ilic <[email protected]> >> >>> ok have an other problem. The form is stoped and the content updates but >>> i´m missing the value from the textarea. >>> If i have the submit event i get it other i have an empty post array how >>> i get the data? >>> >>> 2010/1/22 Davor Ilic <[email protected]> >>> >>> ok thank you veryyyyyyyyy much this was helpful. now i understand couple >>>> of things i do many wrong in the options field >>>> >>>> >>>> 2010/1/22 Aaron Newton <[email protected]> >>>> >>>>> So, a couple things. First, you don't need to add a submit event to >>>>> your form; Form.Request does that for you. Just, on domready, new >>>>> Form.Request(form, update); and you're done. As for spinner, you just have >>>>> to have it in your environment (and then you need to set up the css for >>>>> spinner; see its docs). >>>>> >>>>> >>>>> On Thu, Jan 21, 2010 at 5:15 PM, Davor Ilic <[email protected]>wrote: >>>>> >>>>>> this is how i use it where i have to push the submit twice >>>>>> >>>>>> <script type="text/javascript"> >>>>>> window.addEvent('domready', function() { >>>>>> $('myForm').addEvent('submit', function(e) { >>>>>> e.stop(); >>>>>> var content = $('content'); >>>>>> new Form.Request( $('myForm'), content); >>>>>> }); >>>>>> }); >>>>>> </script> >>>>>> >>>>>> <form id="myForm" method="post" action="ajax.php"> >>>>>> <textarea name="content" style="width:100%"> >>>>>> </textarea> >>>>>> <input id="save_content" type="submit" name="save_content" >>>>>> value="Save" /> >>>>>> </form> >>>>>> >>>>>> <p id="content"></p> >>>>>> >>>>>> another question, i see that i have the option but do not know how to >>>>>> integrate in the class. >>>>>> is that right? >>>>>> >>>>>> >>>>>> new Form.Request( $('myForm'), >>>>>> content, { >>>>>> requestOptions: [{useSpinner:true}] >>>>>> } >>>>>> ); >>>>>> >>>>>> 2010/1/22 Aaron Newton <[email protected]> >>>>>> >>>>>> You can pass either; an id or a reference. >>>>>>> >>>>>>> You should not have to push the submit button twice. >>>>>>> >>>>>>> note that it can integrate with Spinner and Form.Validator. >>>>>>> >>>>>>> >>>>>>> On Thu, Jan 21, 2010 at 4:41 PM, hairbo <[email protected]> wrote: >>>>>>> >>>>>>>> I think it just should be: >>>>>>>> >>>>>>>> Form.Request('myForm','content') >>>>>>>> >>>>>>>> I don't think you need to pass in the element object itself--just >>>>>>>> the >>>>>>>> ID to the desired elements. >>>>>>>> >>>>>>>> On Jan 21, 5:58 pm, Davor Ilic <[email protected]> wrote: >>>>>>>> > ok i have it new Form.Request($('myForm'), $('content')); >>>>>>>> > >>>>>>>> > thats very cool but why didn´t work my first it´s the same as >>>>>>>> mootools i >>>>>>>> > just copy and paste it .... ??? >>>>>>>> > >>>>>>>> > 2010/1/22 Davor Ilic <[email protected]> >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > > Could you write me an example i looked up this and it don´t work >>>>>>>> and i do >>>>>>>> > > not know why... >>>>>>>> > >>>>>>>> > > 2010/1/21 hairbo <[email protected]> >>>>>>>> > >>>>>>>> > > It kind of looks like your PHP page isn't returning HTML. I'd >>>>>>>> also >>>>>>>> > >> suggest you try this code (I just learned about it, and it's >>>>>>>> pretty >>>>>>>> > >> nice) >>>>>>>> > >>>>>>>> > >> var MyFormSubmit = new Form.Request( >>>>>>>> > >> [idOfFormToSubmit], >>>>>>>> > >> >>>>>>>> [idOfHtmlElementWhereFormResponseGoes] >>>>>>>> > >> ) >>>>>>>> > >>>>>>>> > >> On Jan 21, 3:58 pm, Davor Ilic <[email protected]> wrote: >>>>>>>> > >> > What i´m doing wrong? >>>>>>>> > >>>>>>>> > >> >http://mootools.net/shell/UUdVL/2/ >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> >
