如何包含位于文档根目录之外的 CKeditor
是否可以使用驻留在文档根应用程序内的文档根之外的 CKeditor?
例如,我的目录结构如下:
My Documentroot
C://xampp/htdocs/example.com
My CKeditor is outside and parallel to document root say
C://xampp/lib/ckeditor
如何在 C://xampp 的应用程序页面中调用位于
C://xampp/lib/ckeditor/ckeditor
中的 ckeditor.js /htdocs/example.com/editor.php
Is it possible to use CKeditor which resides outside of your document root inside document root application?
For e.g. I am having directory structure like:
My Documentroot
C://xampp/htdocs/example.com
My CKeditor is outside and parallel to document root say
C://xampp/lib/ckeditor
How can I call ckeditor.js which is in C://xampp/lib/ckeditor/ckeditor
in my application page in C://xampp/htdocs/example.com/editor.php
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用 Apache,则可以在
httpd.conf
(或httpd-vhosts.conf
)中的站点VirtualHost
部分设置别名):正如 @wimvds 所说,该文件必须可以被浏览器以某种方式访问。
If you're on Apache, you could set up an Alias in your site's
VirtualHost
section inhttpd.conf
(orhttpd-vhosts.conf
):as @wimvds says, the file must be accessible to the browser somehow.
由于 CKEditor 是 Javascript,它必须驻留在文档根目录中的某个位置,否则您将无法包含它。
Since CKEditor is Javascript it HAS to reside somewhere in your document root, otherwise you won't be able to include it.
../../lib/ckeditor/ckeditor
../
是父目录。../../lib/ckeditor/ckeditor
../
is the parent directory.