base.willy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-14 15:16 UTC
WYSIWYG for script.aculo.us InPlaceEditor (Using TinyMCE)
Is i promised, here is my solution: http://groups.google.com/group/ rubyonrails-spinoffs/web/wysiwyg-for-script-aculo-us-inplaceeditor- using-tinymce Everyone is welcome in case you found any bugs or have any suggestions and/or improvements! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 15, 1:16 am, "base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is i promised, here is my solution:http://groups.google.com/group/ > rubyonrails-spinoffs/web/wysiwyg-for-script-aculo-us-inplaceeditor- > using-tinymce > > Everyone is welcome in case you found any bugs or have any suggestions > and/or improvements!The demos provided don''t work in Safari, it''s over 350KB of (mostly) obfuscated code and hence impossible to debug or fix. Sorry, no sale. -- Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
base.willy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-15 10:40 UTC
Re: WYSIWYG for script.aculo.us InPlaceEditor (Using TinyMCE)
What demos are you talking about? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Feb 15, 8:40 pm, "base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What demos are you talking about?I presume you''re replying to me. <URL: http://tinymce.moxiecode.com/example.php?example=true > <URL: http://tinymce.moxiecode.com/example_advanced.php?example=true > <URL: http://tinymce.moxiecode.com/example_full.php?example=true > <URL: http://tinymce.moxiecode.com/example_word.php?example=true > <URL: http://wiki.moxiecode.com/examples/tinymce/ installation_example_00.php > Take your pick. -- Rob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Stealthie
2007-Feb-16 06:12 UTC
Re: WYSIWYG for script.aculo.us InPlaceEditor (Using TinyMCE)
Hi, Quick question. I have been trying to find out how to default the inplace editor to wysiwyg mode but havnt been able to. how hard would this be to do ? Thanks Antony On Feb 15, 1:16 am, "base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is i promised, here is my solution:http://groups.google.com/group/ > rubyonrails-spinoffs/web/wysiwyg-for-script-aculo-us-inplaceeditor- > using-tinymce > > Everyone is welcome in case you found any bugs or have any suggestions > and/or improvements!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
base.willy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-16 12:20 UTC
Re: WYSIWYG for script.aculo.us InPlaceEditor (Using TinyMCE)
Hi! I''ve updated controls.js a little, so now InPlaceEditor has a new option - veIsOn. If you set it to true, the editor will be turned on by default. Download controls (2).js (http://rubyonrails- spinoffs.googlegroups.com/web/controls%20%282%29.js), replace old one with it, add "veIsOn: true" to your InPlaceEditor object initialisation and the job is done :) On 16 фев, 09:12, "Stealthie" <antonypuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > Quick question. I have been trying to find out how to default the > inplace editor to wysiwyg mode but havnt been able to. how hard would > this be to do ? > > Thanks > > Antony > > On Feb 15, 1:16 am, "base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > Is i promised, here is my solution:http://groups.google.com/group/ > > rubyonrails-spinoffs/web/wysiwyg-for-script-aculo-us-inplaceeditor- > > using-tinymce > > > Everyone is welcome in case you found any bugs or have any suggestions > > and/or improvements!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Colin Mollenhour
2007-Feb-16 14:14 UTC
Re: WYSIWYG for script.aculo.us InPlaceEditor (Using TinyMCE)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=KOI8-R"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I highly recommend you develop this as an extension to IPE rather than
modifying an SAU library file.<br>
I.e. create a new class with it''s own initialize function,
Object.extend it with IPE, call IPE''s initialize, add your features to
it, etc...<br>
<br>
Modifying a library file kills maintainability..<br>
<br>
Colin<br>
<br>
<a class="moz-txt-link-abbreviated"
href="mailto:base.willy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">base.willy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org</a>
wrote:
<blockquote
cite="mid:1171628427.530052.246770-5wKdhOQDh7Nfvz3QPplmsGB/v6IoIuQBVpNB7YpNyf8@public.gmane.org"
type="cite">
<pre wrap="">Hi!
I''ve updated controls.js a little, so now InPlaceEditor has a new
option - veIsOn. If you set it to true, the editor will be turned on
by default. Download controls (2).js (<a
class="moz-txt-link-freetext"
href="http://rubyonrails">http://rubyonrails</a>-
spinoffs.googlegroups.com/web/controls%20%282%29.js), replace old one
with it, add "veIsOn: true" to your InPlaceEditor object
initialisation and the job is done :)
On 16 фев, 09:12, "Stealthie" <a
class="moz-txt-link-rfc2396E"
href="mailto:antonypuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"><antonypuc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Quick question. I have been trying to find out how to default the
inplace editor to wysiwyg mode but havnt been able to. how hard would
this be to do ?
Thanks
Antony
On Feb 15, 1:16 am, <a class="moz-txt-link-rfc2396E"
href="mailto:base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org">"base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"</a>
<a class="moz-txt-link-rfc2396E"
href="mailto:base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"><base.wi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Is i promised, here is my solution:<a
class="moz-txt-link-freetext"
href="http://groups.google.com/group/">http://groups.google.com/group/</a>
rubyonrails-spinoffs/web/wysiwyg-for-script-aculo-us-inplaceeditor-
using-tinymce
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">Everyone is welcome in case you found any
bugs or have any suggestions
and/or improvements!
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
--~--~---------~--~----~------------~-------~--~----~<br>
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group. <br> To post to this
group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <br> To
unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
<br> For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en <br>
-~----------~----~----~----~------~----~------~--~---<br>
</body>
</html>
<br>
base.willy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-16 14:31 UTC
Re: WYSIWYG for script.aculo.us InPlaceEditor (Using TinyMCE)
You are right, Colin, I''ll try to create something like that. I am just not much into javascript''s object model and it would take some time to make myself comfortable with it :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Colin Mollenhour
2007-Feb-16 15:27 UTC
Re: WYSIWYG for script.aculo.us InPlaceEditor (Using TinyMCE)
This works, but I really wonder if it is the proper way.. It seems like
there are two objects being created and only one is being returned so
the user really doesn''t have access to the second one.
var Ajax.ExtendedInPlaceEditor = Class.create();
Object.extend(Ajax.ExtendedInPlaceEditor .prototype,
Ajax.InPlaceEditor.prototype);
Object.extend(Ajax.ExtendedInPlaceEditor .prototype, {
initialize: function(element, url, options) {
Object.extend(new Ajax.InPlaceEditor(element, url, Object.extend({
newOption: false,
overriddenOption: true,
}, options || {})), this);
//more initialization if necessary
},
createEditField: function() {
...
}
});
Maybe the better way would be to save the original initialize function
under a different name before calling the second Object.extend and then
calling it inside the new initialize? However, if this wouldn''t play
well with multiple inheritance if you always used the same name for the
old initialize.. Anyone have a better way to extend a Prototype class
that let''s you call the original initialize function?
Unfortunately I''ve found every time I need to add features to IPE I
always have to overwrite createEditField or some other function, but a
lot of the code is copied. It really needs more "hooks" implemented so
that you can add functionality simply by passing functions in the
options or extending the prototype with new functions. For example, an
onCreateEditField that is called after createEditField would let you do
stuff like attach a popup calendar or WYSIWYG editor without overriding
anything and without any code redundancy.
Colin
base.willy-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
wrote:> You are right, Colin, I''ll try to create something like that. I am
> just not much into javascript''s object model and it would take
some
> time to make myself comfortable with it :)
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---