CKEditor将blockquote更改为p

时间:2016-03-09 15:44:01

标签: javascript ckeditor

CKEditor将[INFO ] Logger: Record log in C:\Users\kalibrierlabor\.kivy\logs\kivy_16-03-09_74.txt [INFO ] Kivy: v1.9.1 [INFO ] Python: v3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 20:20:57) [MSC v.1600 64 bit (AMD64)] [INFO ] Factory: 179 symbols loaded [INFO ] Image: Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored) [INFO ] OSC: using <thread> for socket [INFO ] Window: Provider: sdl2 [INFO ] GL: GLEW initialization succeeded [INFO ] GL: OpenGL version <b'3.3.0'> [INFO ] GL: OpenGL vendor <b'NVIDIA Corporation'> [INFO ] GL: OpenGL renderer <b'GeForce 210/PCIe/SSE2'> [INFO ] GL: OpenGL parsed version: 3, 3 [INFO ] GL: Shading version <b'3.30 NVIDIA via Cg compiler'> [INFO ] GL: Texture max size <8192> [INFO ] GL: Texture max units <32> [INFO ] Window: auto add sdl2 input provider [INFO ] Window: virtual keyboard not allowed, single mode, not docked [INFO ] Text: Provider: sdl2 [WARNING ] stderr: Traceback (most recent call last): [WARNING ] stderr: File "<string>", line 58, in <module> [WARNING ] stderr: File "C:\EZS-2G\CETAcalApp\dist\CETA-Cal\cls\plotting.py", line 5, in <module> [WARNING ] stderr: import matplotlib.pyplot as plt [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\matplotlib\pyplot.py", line 36, in <module> [WARNING ] stderr: from matplotlib.figure import Figure, figaspect [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\matplotlib\figure.py", line 40, in <module> [WARNING ] stderr: from matplotlib.axes import Axes, SubplotBase, subplot_class_factory [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\matplotlib\axes\__init__.py", line 4, in <module> [WARNING ] stderr: from ._subplots import * [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\matplotlib\axes\_subplots.py", line 10, in <module> [WARNING ] stderr: from matplotlib.axes._axes import Axes [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\matplotlib\axes\_axes.py", line 22, in <module> [WARNING ] stderr: import matplotlib.dates as _ # <-registers a date unit converter [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\matplotlib\dates.py", line 130, in <module> [WARNING ] stderr: import dateutil.parser [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\dateutil\parser.py", line 43, in <module> [WARNING ] stderr: from . import tz [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\dateutil\tz\__init__.py", line 1, in <module> [WARNING ] stderr: from .tz import * [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\dateutil\tz\tz.py", line 17, in <module> [WARNING ] stderr: from .__init__ import tzname_in_python2 [WARNING ] stderr: File "C:\Python34\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 389, in load_module [WARNING ] stderr: exec(bytecode, module.__dict__) [WARNING ] stderr: File "C:\Python34\lib\site-packages\dateutil\tz\__init__.py", line 1, in <module> [WARNING ] stderr: from .tz import * [WARNING ] stderr: ImportError: No module named 'dateutil.tz.__init__.tz' 更改为blockquote

我在“源视图模式”中输入此内容:

p

关闭“源”并再次打开后,<blockquote>asdf</blockquote> 已更改为blockquote

p

这在我的安装和此演示网站上也会发生:http://ckeditor.com/demo#widgets

在标准演示中不会发生这种情况:http://ckeditor.com/demo#standard

为什么<p>asdf</p> 会被更改?

1 个答案:

答案 0 :(得分:1)

由于Advanced Content Filter - 在这些编辑器配置中没有允许<blockquote>支持的功能,因此ACF会删除这些元素。

您需要添加Blockquote plugin以支持此功能,或extend your ACF configuration添加<blockquote>元素。

例如:

config.extraAllowedContent = 'blockquote';

请注意,如果您还想支持这些附加元素的类,属性或内联样式,您的配置也需要包含它们。

检查这些SDK演示: