Skip to content

Commit

Permalink
update to ueditor 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangfisher committed Jun 24, 2014
1 parent bb5bcf3 commit 417f8f0
Show file tree
Hide file tree
Showing 159 changed files with 4,740 additions and 12,042 deletions.
2 changes: 1 addition & 1 deletion .idea/DjangoUeditor.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions .idea/inspectionProfiles/profiles_settings.xml

This file was deleted.

1,027 changes: 891 additions & 136 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file modified DUSite/__init__.pyc
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DUSite/data/cool/scrawl_20140624153247_660.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added DUSite/data/d.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 2 additions & 10 deletions DUSite/settings.py
Expand Up @@ -153,15 +153,7 @@
}
}

#以下可以自行配置ueditor的配置项
UEDITOR_SETTINGS = {
'toolbars':{"testa":[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline']],
"testb":[[ 'source', '|','bold', 'italic', 'underline']]
},
'images_upload':{
'max_size':0,
'path':"asd"
},
'scrawl_upload':{
'path':'scrawlabc'
}
"test":1
}
Binary file modified DUSite/settings.pyc
Binary file not shown.
1 change: 0 additions & 1 deletion DUSite/templates/test.html
Expand Up @@ -12,6 +12,5 @@
</table>
<input type="submit" value="Submit">
</form>

</body>
</html>
Binary file modified DUSite/test.db
Binary file not shown.
17 changes: 7 additions & 10 deletions DUSite/urls.py
Expand Up @@ -3,7 +3,7 @@
from django.conf.urls.static import static
import settings
from django.contrib import admin
from TestApp.views import TestUEditorModel
from TestApp.views import TestUEditorModel,ajaxcmd

admin.autodiscover()

Expand All @@ -12,19 +12,16 @@
# url(r'^$', 'DUSite.views.home', name='home'),

# Uncomment the admin/doc line below to enable admin documentation:
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
url(r'^ueditor/',include('DjangoUeditor.urls')),
url(r'^test/$',TestUEditorModel)
url(r'^test/$',TestUEditorModel),
url(r'^ajaxcmd/$',ajaxcmd)

)

if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL , document_root = settings.MEDIA_ROOT )
urlpatterns += static(settings.STATIC_URL, document_root = settings.STATIC_ROOT )
urlpatterns += patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT }),
url(r'^static/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT}),
url(r'^(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_ROOT}),
)
urlpatterns +=patterns('',
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)
)
Binary file modified DUSite/urls.pyc
Binary file not shown.
Binary file modified DUSite/wsgi.pyc
Binary file not shown.
Binary file added DUSite/www/1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 417f8f0

Please sign in to comment.