本文介绍了阿罗哈编辑:插入图片/图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用来编辑由PHP和MySQL支持的网站上的内容。它工作正常,但我需要能够插入图像/图片。我找到了一个Aloha编辑器插件。以下是一些链接:

I'm using Aloha editor for editing content on a website powered by PHP and MySQL. It's working fine, but I need to be able to insert images/pictures. I found an Aloha editor plugin for that. Here are some links:





  • http://labs.tapo-it.com/aloha-editor/image-plugin/
  • http://aloha-editor.org/wiki/ImagePlugin
  • https://github.com/alohaeditor/Aloha-Plugin-Image

。但是,我无法在最新版本的Aloha编辑器和jQuery上运行该插件。它无法加载,Chrome说:

There is an example in the first link. However, I can't get the plugin running on the latest version of Aloha editor and jQuery. It fails to load and Chrome says:

image.js:30 Uncaught TypeError: Cannot read property 'fn' of undefined

我没有血腥的线索这意味着什么。

I have no bloody clue what this means.

理想情况下,用户应该能够从服务器上的图像列表中选择图像。它们位于一个目录中,并且还有一个MySQL表。我怀疑这是存储库的用武之地,但我无法理解如何实现它。

Ideally, the user should be able to select an image from a list of images that are on the server. These are located in a single directory and also have a MySQL table for them. I suspect this is where the repository comes in, but I wasn't able to understand how to implement that.

在Aloha编辑器中有没有人有运气使用这个插件,或找到任何其他插入图像的方法?

Has anyone had any luck using this plugin in Aloha editor, or found any other ways of inserting images?

推荐答案

有点太晚了,但如果你需要我为阿罗哈做了一个简单的插件编辑器插入/上传图像。这个插件是我的symfony 1.x插件的一部分,可以轻松地将Aloha集成到Symfony应用程序中。

A bit too late, but if you need I made a simple plugin for Aloha Editor to insert / upload an image. This plugin is part of my symfony 1.x plugin to easily integrate Aloha in a Symfony app.

这是。

这里是。

这很简单,可能会有所改进。它没有像您期望的那样在服务器端使用文件存储库,因此这只是回答您的问题的任何其他插入图像的方式。

It's really simple, and it could probably improved. It doesn't use a file repository on the server side as you expect, so this is only answering to your "any other ways of inserting images" of your question.

这篇关于阿罗哈编辑:插入图片/图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 08:56