zhihu-app icon indicating copy to clipboard operation
zhihu-app copied to clipboard

无法编辑带有代码的问题描述

Open aunhappy opened this issue 7 years ago • 2 comments
trafficstars

问题描述

添加问题的时候,如果描述中包含代码,添加成功后,再对问题进行编辑,页面显示空白,控制台console有报错

复现步骤

  1. 添加一个问题,并在描述中粘贴从PHPstorm中复制的代码,发布问题 image 2.点击编辑,编辑页面空白 image 3.控制台console有报错
Uncaught TypeError: Cannot read property 'offsetWidth' of null
    at UE.Editor.renderUI (ueditor.all.js:29264)
    at UE.Editor.fireEvent (ueditor.all.js:1619)
    at langReadied (ueditor.all.js:6566)
    at ueditor.all.js:6748
    at HTMLScriptElement.element.onload.element.onreadystatechange (ueditor.all.js:921)
renderUI @ ueditor.all.js:29264
fireEvent @ ueditor.all.js:1619
langReadied @ ueditor.all.js:6566
(anonymous) @ ueditor.all.js:6748
element.onload.element.onreadystatechange @ ueditor.all.js:921

4.在后台编辑问题正常

预期行为

在前台可以正常编辑

实际情况

无法编辑,编辑页空白

版本分支

master

aunhappy avatar Apr 29 '18 08:04 aunhappy

感谢反馈 我这边试了下是没问题的 控制台的报错是编辑器初始化内容高度问题

GeekGhc avatar Apr 30 '18 09:04 GeekGhc

我应该是没动前端代码,现在应该怎么改呢? @GeekGhc

aunhappy avatar Apr 30 '18 14:04 aunhappy

No reply for too long, I choose to close this issue

aunhappy avatar Apr 10 '23 08:04 aunhappy