You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was mentioned in #55, but without real instructions to reproduce.
Details
OS (Operating System) version: Windows 11
Browser and browser version: MS Edge 108.0.1462.76 (Official build) (64-bit)
Django version: 3.2.16 (my webhost won't upgrade to 4.x)
Martor version & theme: 1.6.16
Steps to reproduce (some of this is really nitty gritty, but wanted to be clear how barebones this was)
from django.db import models
from martor.models import MartorField
class MyModel(models.Model):
brief = MartorField(null=True, blank=True)
replace the testapp/views.py file:
from django.shortcuts import render
from django.forms import ModelForm, Textarea, DateInput
from .models import *
class MyModelForm(ModelForm):
class Meta:
model = MyModel
fields = '__all__'
def test_edit(request):
form = MyModelForm(request.POST or None,
instance=None)
return render(request, 'template.html', {
'form': form,
})
from django.contrib import admin
from django.urls import path, include, re_path
from .views import *
urlpatterns = [
path('', test_edit, name='test_edit'),
]
update the settings/urls.py file
from django.contrib import admin
from django.urls import path, include, re_path
from django.conf import settings
from django.views.static import serve
urlpatterns = [
path('admin/', admin.site.urls),
path('martor/', include('martor.urls')),
path('test/', include('testapp.urls')),
# line below needed so that static files will be served without an external web server when DEBUG is set to false
re_path(r'^static/(?P<path>.*)$', serve, {
'document_root': settings.STATIC_ROOT,
'show_indexes': True,
}),
]
Unable to infer path to ace from script src, use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes or with webpack use ace/webpack-resolver
Hello @sodrew, thank you for reporting this issue. We have tried to solve this issue by updating the ace & related packages version. And I have tried using your steps to reproduce the issue, and seems now working as expected.
Home
Admin
Please upgrade your martor version to resolve this issue, and let us know if you still facing this issue.
This was mentioned in #55, but without real instructions to reproduce.
Details
OS (Operating System) version: Windows 11
Browser and browser version: MS Edge 108.0.1462.76 (Official build) (64-bit)
Django version: 3.2.16 (my webhost won't upgrade to 4.x)
Martor version & theme: 1.6.16
Steps to reproduce (some of this is really nitty gritty, but wanted to be clear how barebones this was)
<script src="http://localhost:8000/static/plugins/js/snippets/markdown.js"></script></head><body>
you see:
<script src="snippets/markdown.js"></script></head><body>
The text was updated successfully, but these errors were encountered: