Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Edit in place with tinyMCE

Reply
Thread Tools

Edit in place with tinyMCE

 
 
RonY
Guest
Posts: n/a
 
      04-07-2007
Hi all,

I am trying to find out an edit in place with tinyMCE support, so that
users can click on content and change it without any refresh page.

I have found some script that use prototype and a script called
eip.js, but i would like to know how to incorporate the tinyMCE editor
when the user - here is the link [
http://www.nick-dunn.co.uk/blog/2006...nplacejs-with-...
]

Does any know how or where to integrate the tinyMCE editor?

Here is my code:

+++++++++++++++++++++++++++++++++

<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="moo.fx.js"></script>
<script type="text/javascript" src="editinplace.animated.js"></
script>
<script language="javascript" src="../tinymce/jscripts/tiny_mce/
tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init( {
theme:"advanced",
mode: "exact",
elements : "content(151-25)"
})

Event.observe(window, 'load', init, false);
function init() {
// Overide the default saving_text and add the animated
GIF and saving message
EditInPlace.defaults["saving_text"] = "<img
src='indicator.gif' /><span class='eip_" +
EditInPlace.defaults["saving_class"] + "'>Saving
changes, please wait.</span>";
// Set the save_url to a CF page (which simply returns the
saved content as plain text)
EditInPlace.defaults["save_url"] = "update.cfm";
// Make the editableText
EditInPlace.makeEditable( { id:'content(151-25)', type:
'textarea', cols: '100' } );
EditInPlace.makeEditable( { id:'price(151-25)' } );
}
</script>

<div id="content(151-25)" title="Click to edit"> HERE IS THE CONTENT
</
div>
<span id="price(151-25)" title="Click to edit">36</span>

+++++++++++++++++++++++++++++++++

But i want to load the tinyMCE when the user clicks to edit the field
NOT upon page load, as what is happening now.

Thanks heaps guys,

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cursor in TinyMCE in SWTBrowser jsimon Java 0 12-13-2006 01:24 PM
Willing to pay for some expert help integrating TinyMCE davehansen22@gmail.com Java 3 07-19-2006 09:51 PM
tinymce Manfred W Java 2 08-12-2005 08:46 AM
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57