BUG:帖子编辑完发布,只有标题,内容不可见,编辑模式又可见 New
编辑完,内容显示不了点击编辑模式,又可以见文字:
好像是我在编辑模式,直接复制粘贴了一张图片,当时编辑框里看的到(好像默认编辑器不支持支持复制粘贴),发布后就变成内容空白了
我知道答案 回答被采纳将会获得1 贡献 已有5人回答 编辑器默认不支持粘贴的图片,只能上传,粘贴图片能显示是浏览器自身的特性,和产品无关
你切到纯文本模式就能看到了。要支持粘贴图片上传请购买应用中心插件
(剩下等其他开发者推荐自家产品) 不粘贴图片 发布 文字显示 正常吗?
正常的话, 可能就是你 粘贴图片的影响;默认的编辑器 是不支持 直接粘贴图片的, 要手动上传图片才行;
https://addon.dismall.com/plugins/twpx_imgpasteupload.html 这个是我开发的 粘贴图片自动上传 插件
.ce-block { margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content { /* max-width:calc(100% - 50px) */ margin-left: auto; margin-right: auto;}.ce-paragraph { line-height: 1.6em; outline: none; text-indent: 2em; font-size: 16px;}.ce-paragraph--right { text-align: right;}.ce-paragraph--center { text-align: center;}.ce-paragraph--left { text-align: left;}.ce-paragraph--justify { text-align: justify;}.ce-paragraph-text-indent { text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{ margin-top: 0;}.ce-paragraph p:last-of-type{ margin-bottom: 0;}.svg-icon { width: 1em; height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect { fill: #4691f6;}.svg-icon circle { stroke: #4691f6; stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;} 这就是DIZ的垃圾的地方,都什么年代了.编辑器默认不支持图片复制粘贴,现在编辑器谁不支持
这种最基本的功能,用户都习惯了复制粘贴.
你如果不支持你可以直接弹窗告警/底部弹窗告警然后发布之后显示页面是空白 买你的,之前买过你的东西,为什么DIZ没人用了,这种最基本最基本的功能.... 你说的对,我同意,但是~~~老实说,你拿一个几年前不再更新功能的 Discuz! 老版本说现在应该如何如何是有点奇怪的
X5.1 开始是产品级内置粘贴上传的。其他版本都要依靠插件,为了给开发者们预留市场空间
页:
[1]