Jump to content

How to add php code inside TinyMCE editor?


nitesh.vaghani

Recommended Posts

Hello Friends.

      I have one problem during add php code inside tinyMCE wysiwyg editor.

      When i written php  code inside it and update it at that time it remove php script from  that content.

      What can i do for it? so it accept php code and display it on front side.

 

Thanks

Nitesh

     

Link to comment
Share on other sites

Thanks.

    It will work, but in front end side of page it display same what ever written inside it.

    mean if we write <?php echo "nitesh" ?> then it display on front home page <?php echo "nitesh";  ?>

    insted of it only display name "nitesh" on behalft of this.

    is it possible to execute php code when it retrive from detabase and display on page.

 

Thank again

Nitesh

Link to comment
Share on other sites

Reply,

    hi dear, i am also try as u say.

    But what happen in this way, i am currently using tinymce editor for input data. this editor i wysiwyg editor so when it display content on front side at that time it give error,

    like this "Parse error: syntax error, unexpected '&' in filename with line no : eval()'d code on line 1"

    but it work with simple editor.

 

Thanks

Nits

   

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.