pbckcode icon indicating copy to clipboard operation
pbckcode copied to clipboard

callback on code (load / store) from ckeditor

Open pk-fr opened this issue 11 years ago • 1 comments

that feature would be usefull to modify code on the fly. my personnal usage would be to append/prepend <?php .... ?> when loading php snippet and removing <?php / <? .... ?> when storing back in ckeditor, as ckeditor either hides code when using protected source or remove code when not using protected source as it considers code as an unknown tag!

maybe be that feature will allow other usefull processing in other context...

thanx

pk-fr avatar Jun 29 '14 14:06 pk-fr

as ckeditor either hides code when using protected source or remove code when not using protected source as it considers code as an unknown tag!

I tried with my configuration (CakePHP 2.5.x, CKEditor 4.4.3, pbckcode 1.2.2) and I have no problem with this.

Here is the code I tried.

<?php
  echo "hello world !"
?>

prbaron avatar Jul 19 '14 21:07 prbaron