主题 : 用fckeditor编辑模板页面如何解决freemarker*码识别问题
级别: 秀才
UID: 5107
积分:13 加为好友
威望: 0 精华: 0
主题:1 回复:5
注册时间:2010-03-31
在线时长:0
1#   发表于:2010-05-30 13:19:58  IP:61.97.*.*

后台可以管理页面的模版但是在fckeditor中配置了下面的几行句话是干什么用的?是为了让fckeditor识别freemarker么?
oFCKeditor.Config["FromSrc"]="\\$\\{root\\},\\$\\{sysResRoot\\},\\$\\{base\\}";
oFCKeditor.Config["ToView"]="${web.userResUrl},${web.sysResUrl},${web.webUrl}";
oFCKeditor.Config["FromView"]="${web.userResUrl},${web.sysResUrl},${web.webUrl}";
oFCKeditor.Config["ToSrc"]  ="${r'${root}'},${r'${sysResRoot}'},${r'${base}'}";
还有就是用页面中的css  JavaScript的路径里面都有freemarker的语句,fckeditor是怎么识别的!!
比如说在主页的模版中
<meta name="keywords" content="${chnl.keywords}" />
<meta name="description" content="${chnl.description}" />
<script src="${sysResRoot}/jquery.js" type="text/javascript"></script>
<link href="${sysResRoot}/front.css" type="text/css" rel="stylesheet" />
<link href="${root}/default/article/css/whole.css" type="text/css" rel="stylesheet" />
<link href="${root}/default/article/css/layout.css" type="text/css" rel="stylesheet" />
这些链接中有 ${root}  ${sysResRoot}等内容
但是我看你们后台的fckeditor仍然可以识别,是怎么回事???、
1 共1页