开发者

Adding ASP or Dynamic Content into the FCK textbox

I'd like to add some dynamic content into the FCK text box when I'm adding links, for example when I add a link or link some text I want to be able to put some ASP delimeters into the textbox and a variable name. Something like this <%= myLinkVariable %>.

I've tried looking at the textbox content in the source view and adding a simple <% Response.Write("Hello World")%> but like the link text the asp delimeters have been converted to unicode/html like this &lt;% Response.Write("hello world")%&gt;"

Do I ne开发者_运维问答ed to comment / uncommment the

FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ;  // ASP style server side code <%...%>

or any of the other custom items in the custom.js file.


The FCK Editor only deals with HTML content. You won't be able to use it to access server variables, unless you have a custom module designed to parse and evaluate the content.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜