Issue in rendering page with code snippet

Hi,

I came across a weird issue while rendering content is pages.
I tried to view a code snippet (BASH SCRIPT) something like this “show this ${test}”
ckEditor Source contains the below code

show this ${test}

But in the page view, below content is getting displayed.

I looked into the code and found that the page is rendered through below function
cb.getCurrentPage().renderContent()

Anyone came across issues like this.

Thanks,
Saravanan

Yes,

The ${} syntax is used to display ContentBox settings automatically by our markup rendered. You will need to escap the $ or {} for it to work.

Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408

Linked In: http://www.linkedin.com/pub/3/731/483

Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox

Luis,

I got the issue fixed by adding below settings to CKEDITOR.editorConfig in config.js

config.htmlEncodeOutput = false;
config.basicEntities = false;
and used HTML entity “$” for $ in the Source of ckEditor.

Hi,

The above changes mentioned by Saravanan displaying bash code correctly. But, It is not displaying tags in HTML Content.

Example:
Actual HTML Content:

The component of the element specifies a numeric value to be either used
in a calculation or comparison statement.

Displaying in page:

The component of the element specifies a numeric value to be either used
in a calculation or comparison statement.

If we make config.basicEntities = true then the above HTML content is displaying correctly.But, the bash code is displaying incorrectly in page view. We have used code snippets to insert bash code into a page.

We are using latest version of ckeditor.

Bash code is displaying as below in page:
show this ${Setting: test not found}

Anyone came across the issue like this.

Thanks,
Sai.

Sai, in ContentBox 3 we introduced the tags. You can use those to escape the setting parser