<object>标签在可视编辑器中变为<img/>标签

时间:2018-11-27 06:43:39

标签: wordpress tinymce visual-editor

因此,设计者当前正在使用from django.conf.urls import url, include from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from .views import home from posts.views import PostListView urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', PostListView.as_view(), name='home'), url(r'^post/', include('posts.urls', namespace='post')), url(r'^api/post/', include('posts.api.urls', namespace='post-api')), ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) 而不是<object>来显示图像。而且我必须将其放入WordPress。它可以显示在正面,但在可视编辑器的管理端,它将变成<img>。在html编辑器中,它是<img>。就是这样。

  

html编辑器:

enter image description here


  

视觉编辑器:

enter image description here


  

元素输出:

enter image description here

所以,我的问题是它不断更改为<object>标签,而不仅仅是<img>。那么,当我单击视觉编辑器时,如何阻止它更改为<object>

我已经尝试过了,但是仍然行不通:

<img>

我希望有人能帮助我。在此先感谢!

0 个答案:

没有答案