Log in or register to post comments
Last post
Allow special commands within html
Hello all,

we need to enter i.e. following into CKEditor:
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tbody>
<tr><td style="background-color:silver;">Header first Row</td></tr>
$$[myownfunction|withparameters_results_some rows to this table]$$
</tbody>
</table>

The $$[myownfunction...]$$ will result in a mysql_db lookup and will return some rows in format:
<tr><td>SomeFieldData</td></tr>

But if if enter the code above, the CKEditor changes it into
$$[myownfunction|withparameters_results_some rows to this table]$$
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;">
<tbody>
<tr><td style="background-color:silver;">Header first Row</td></tr>
</tbody>
</table>

How can we disable this behaviour?
Re: Allow special commands within html
See the config.protectedSource option.

Documentation Manager, CKSource

See CKEditor 4.x docs, CKEditor 3.x docs, CKFinder docs for help. CKEditor general FAQ is useful, too!
If you think you found a bug in CKEditor, read this!

Re: Allow special commands within html
can you give me an example for

$$[myfunction|..........]$$

if i use
config.protectedSource.push('\$\$\[(.*)\]\$\$');
its not working.

Regards,
Re: Allow special commands within html
yz75sn wrote:can you give me an example for

$$[myfunction|..........]$$

if i use
config.protectedSource.push('\$\$\[(.*)\]\$\$');
its not working.

Regards,


Maybe:

config.protectedSource.push(/\$\$\[(.*)\]\$\$/g);
Re: Allow special commands within html
voskat wrote:
Maybe:

config.protectedSource.push(/\$\$\[(.*)\]\$\$/g);


Working perfect, thanks a lot ...
Re: Allow special commands within html
yeah it's good solution, but last time i think about it, there seems to be some mistake, we must solve it within html, not in .htaccess. Image