我正在验证控制器上的编辑器内容,如果用户的内容长度小于30个字符,我希望将其返回到编辑器视图。不管怎样,这段代码:
<textarea name="text-editor" id="text-editor" value="{{ old('text-editor') }}"></textarea>不能工作,因为CKEditor javascript脚本所做的所有事情。那么,当用户写入少于30个字符时,是否有一种方法可以将编辑器内容放回?
发布于 2018-09-21 23:06:56
应该在标记之间放置旧值,因为textarea 没有 value property - <textarea name="text-editor" id="text-editor">{{ old('text-editor') }}</textarea>
https://stackoverflow.com/questions/52451556
复制相似问题