I add StrInsert
plugin to my CKEditor. It basically adds a button, which in my editor, is labeled CRM Field
.
What the button does is it will append a value to my editor. For example: when I click $[FIRST_NAME]
from the dropdown, it will append the text ${__VCG__VAL__FIRST_NAME}
to my editor.
Why did I name the dropdown $[FIRST_NAME]
instead of ${__VCG__VAL__FIRST_NAME}
? Because I want the HTML
to be <p>${__VCG__VAL__FIRST_NAME}</p>
while the text
shown in the editor is $[FIRST_NAME]
As seen in screenshot_2
, the HTML
shown underneath is exactly what I want, but instead of showing the text ${__VCG__VAL__FIRST_NAME}
I want the editor to show the text $[FIRST_NAME]
My question is, how can I make the HTML
differ from the text
shown in the editor for some reserved keywords?