Question

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 need 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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top