murray3
unread,Feb 15, 2009, 8:18:30 AM2/15/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py Web Framework
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