fckeditor(grails插件)如何存储图像?
我开始学习grails,现在正在尝试开发一个简单的博客。 我创建了域模型(用户、标签、评论、类别、帖子)、控制器。 我安装了 fckeditor 插件(用于添加新帖子)。我想添加 ui 界面,它将支持所见即所得编辑器。 但我不明白fckeditor如何存储图像,这些图像将链接到帖子。 请提供一些链接或代码示例的建议。
I started to learn grails and now I am trying to develop a simple blog.
I created the domain model(User, Tag, Comment, Category, Post), controllers.
I installed fckeditor plugin(for adding new posts). I want to add ui interface, which will be support wysiwyg editor.
But I do not understand how does fckeditor store images, which will be linked to post.
Advice please some links or code samples.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
...编辑器将图像存储在您需要指定的文件夹中。如果我没记错的话,它将在编辑器面板中的光标处插入照片。还有另一种方法可以处理它。上传图像/创建缩略图,然后将缩略图显示在页面上(例如完整像素的链接),将其拖动到 fckeditor 窗格上,它将在光标处放置缩略图/链接。
我确信您已经
... the editor stores the images in a folder that you need to specify. If I remember correctly it will insert the photo at point of cursor in the editor panel. There's another way to deal with it also. Upload your images/create thumbnails and where you have the thumbnails displayed on the page (say as links to full blown pixes) drag one onto the fckeditor pane and it will drop the thumbnail/link at cursor.
I'm sure you've been here as well ;-)