Guest User

Untitled

a guest
Jul 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. .bind("select_node.jstree", function (event, data) {
  2. var id = data.rslt.obj.attr("id").replace("node_", "");
  3. $("#response").load( "functions/jstree/my_actions.php?action=load_response&id=" + id );
  4. })
  5.  
  6. <form method="POST" action="">
  7. //if using instead of $id something else, like static phrase (edit_content or body),
  8. // under such conditions next click return error...
  9. //Error: uncaught exception: [CKEDITOR.editor] The instance "edit_content" or "body" already exists.
  10. <?php echo $CKEditor->editor($id, $r['body']); ?>
  11. <input type="submit" value="Edit" id="update" name="update">
  12. </form>
Add Comment
Please, Sign In to add comment