Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callback on code (load / store) from ckeditor #27

Open
pk-fr opened this issue Jun 29, 2014 · 1 comment
Open

callback on code (load / store) from ckeditor #27

pk-fr opened this issue Jun 29, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@pk-fr
Copy link

pk-fr commented Jun 29, 2014

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

@prbaron prbaron added the feature label Jul 4, 2014
@prbaron prbaron self-assigned this Jul 4, 2014
@prbaron prbaron added this to the v1.3.0 milestone Jul 4, 2014
@prbaron
Copy link
Owner

prbaron commented Jul 19, 2014

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 prbaron modified the milestones: v1.2.3, v1.2.4 Aug 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants