I had the same problem and your solution is better. I edited the image path in the js file to '../../static/ nicEditorIcons.gif'
On Feb 16, 8:11 pm, murray3 <ch...@murraypost.net> wrote: > OK I used this code : > <script src="/{{=request.application}}/static/nicEdit.js" type="text/ > javascript"></script> > <script><!-- > $(document).ready(function(){ > new nicEditor({fullPanel : true, iconsPath : '/ > {{=request.application}}/static/nicEditorIcons.gif'}).panelInstance > ('body');}); > > //--></script> > > and now works ok:) > thanks > chrism > > On Feb 16, 1:47 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > I do not know. That is used in applications/admin/views/default/ > > htmledit.html and it works. > > > On Feb 15, 6:52 pm, murray3 <ch...@murraypost.net> wrote: > > > > yes and it failed also! > > > > On Feb 16, 12:06 am, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > did you replace 'body' with the id of the textarea? > > > > > Massimo > > > > > On Feb 15, 4:16 pm, murray3 <ch...@murraypost.net> wrote: > > > > > > Massimo, > > > > > does not work at all using this code, the icons where only missing on > > > > > previous code. > > > > > Tried to modify and try, but can't get it to do what it say's on the > > > > > tin? > > > > > Chrism > > > > > > On Feb 15, 8:35 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > > > > <script><!-- > > > > > > $(document).ready(function() > > > > > > { > > > > > > new nicEditor({fullPanel : true, iconsPath '{{=URL > > > > > > (r=request,c='static',f='nicEditorIcons.gif')}}'}).panelInstance > > > > > > ('body');}); > > > > > > > //--></script> > > > > > > > On Feb 15, 7:18 am, murray3 <ch...@murraypost.net> wrote: > > > > > > > > I have been trying out variations of the mywiki app which forms > > > > > > > part of the tutorial in web2py book, using the latest web2py. > > > > > > > > I thought I would try incorporating nicedit into the editing view. > > > > > > > > Using standard nicedit config in the view does not allow for the > > > > > > > nicedit icons to show? I have looked at obvious (to me anyway:) > > > > > > > issues by viewing nicedit forums etc, and by trial and iteration > > > > > > > of removing my styles and web2py styles to see if this fixes > > > > > > > problem. > > > > > > > > It appears to be a problem with nicedit path to the > > > > > > > nicEditIcons.gif > > > > > > > but I have tried and failed to solve it. Here is code for my edit > > > > > > > page which is same as original mywiki code with addition of > > > > > > > nicedit. > > > > > > > > {{extend 'layout.html'}} > > > > > > > <script src="{{=URL(r=request,c='static',f='nicEdit.js')}}" > > > > > > > type="text/ > > > > > > > javascript"></script> > > > > > > > <script type="text/javascript"> > > > > > > > bkLib.onDomLoaded(function() { nicEditors.allTextAreas() }); > > > > > > > </script> > > > > > > > <h1>Edit wiki page</h1> > > > > > > > [ {{=A('show',_href=URL(r=request,f='show',args=request.args))}} > > > > > > > ]<br/ > > > > > > > > {{=form}} > > > > > > > > nicedit.js is in static folder and nicEditIcon.gif is in same > > > > > > > folder, > > > > > > > edit.html is in > > > > > > > views/default/edit.html > > > > > > > > as usual help most appreciated, maybe I'm sleeping and missed > > > > > > > obvious > > > > > > > error! > > > > > > > regards > > > > > > > chrism --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---