You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Jürgen Ragaller <ra...@apache.org> on 2010/10/14 13:42:45 UTC

TinyMCE 3.x Integration?

Hi users and devs!


I'm currently working on our publication to get it working smoothly with the 2.1 dev branch.
So far so good...

IIUC some of your work at the summer meeting in Bordeaux was about making lenya compatible with tinymce 3.x.

When the TinyMCE usecase is executed, I get the following JavaScript errors:

tinyMCE.importPluginLanguagePack is not a function
tinyMCE.importPluginLanguagePack('simplebrowser', 'en');

tinyMCE.importPluginLanguagePack is not a function
tinyMCE.importPluginLanguagePack('unloadhandler');


These errors (and other followups when the above are fixed) seem to be related to the Plugin API Changes from TinyMCE 2.x to 3.x (see here: http://wiki.moxiecode.com/index.php/TinyMCE:Migration_guide). To my understanding the two lenya tinymce plugins are still written in 2.x plugin style.


I's quite possible, that I got something completely wrong here (or misunderstood the discussions in Bordeaux).


Thanks for help!
Jürgen



null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragaller@apache.org
Skype: callto://ragaller




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Richard Frovarp <rf...@apache.org>.
On 10/14/2010 11:39 AM, florent andré wrote:
> Hi Jurgen,
>
> Will be nice to see tiny3 in 2.1.X !
>
> As far as I remember it don't seem that work was done on tiny3. I
> remember that Richard clean the "editors fauna" in the 2.1... maybe he
> also work on tiny3 integration...
>
> Have a good day
> ++
>

Pretty much all I did was strip out the old editors and change the XHTML 
subset to be the whole thing so that Tiny would work better out of the 
box. I was leaving it up to people who use Tiny to update the 
integration code.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by florent andré <fl...@4sengines.com>.
Hi Jurgen,

Will be nice to see tiny3 in 2.1.X !

As far as I remember it don't seem that work was done on tiny3. I
remember that Richard clean the "editors fauna" in the 2.1... maybe he
also work on tiny3 integration...

Have a good day
++

On 10/14/2010 01:42 PM, Jürgen Ragaller wrote:
> Hi users and devs!
> 
> 
> I'm currently working on our publication to get it working smoothly with the 2.1 dev branch.
> So far so good...
> 
> IIUC some of your work at the summer meeting in Bordeaux was about making lenya compatible with tinymce 3.x.
> 
> When the TinyMCE usecase is executed, I get the following JavaScript errors:
> 
> tinyMCE.importPluginLanguagePack is not a function
> tinyMCE.importPluginLanguagePack('simplebrowser', 'en');
> 
> tinyMCE.importPluginLanguagePack is not a function
> tinyMCE.importPluginLanguagePack('unloadhandler');
> 
> 
> These errors (and other followups when the above are fixed) seem to be related to the Plugin API Changes from TinyMCE 2.x to 3.x (see here: http://wiki.moxiecode.com/index.php/TinyMCE:Migration_guide). To my understanding the two lenya tinymce plugins are still written in 2.x plugin style.
> 
> 
> I's quite possible, that I got something completely wrong here (or misunderstood the discussions in Bordeaux).
> 
> 
> Thanks for help!
> Jürgen
> 
> 
> 
> null-oder-eins GmbH Zürich
> web & graphic design
> 
> www.null-oder-eins.ch
> 
> ragaller@apache.org
> Skype: callto://ragaller
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Rainer Schöpf <ra...@gmx.net>.
Hello Jürgen

I agree with you that the 2.x compatibility should be dropped for the 2.1.X 
branch. However, I'm not so sure about the 2.0.X branch (always assuming that 
there will be more 2.0.X releases).

 Rainer


On Fri, 15 Oct 2010, Jürgen Ragaller wrote:

 > Good morning, Rainer
 > 
 > Thanks! That's a nice start. I'll try to rewrite the simplebrowser plugin in the same way.
 > 
 > I suggest to drop the 2.x compatibility. It makes no sense to me to be 
 > compatible with an oldish in-browser-editor that is not compatible with 
 > todays modern browsers.
 > 
 > What do the other devs think about this?
 > 
 > Jürgen
 > 
 > 
 > Am 15.10.2010 um 01:14 schrieb Rainer Schöpf:
 > 
 > > Hello Jürgen,
 > > 
 > >> I'm currently working on our publication to get it working smoothly with the 2.1 dev branch.
 > >> So far so good...
 > >> 
 > >> IIUC some of your work at the summer meeting in Bordeaux was about making lenya compatible with tinymce 3.x.
 > >> 
 > >> When the TinyMCE usecase is executed, I get the following JavaScript errors:
 > >> 
 > >> tinyMCE.importPluginLanguagePack is not a function
 > >> tinyMCE.importPluginLanguagePack('simplebrowser', 'en');
 > >> 
 > >> tinyMCE.importPluginLanguagePack is not a function
 > >> tinyMCE.importPluginLanguagePack('unloadhandler');
 > >> 
 > >> 
 > >> These errors (and other followups when the above are fixed) seem to be 
 > >> related to the Plugin API Changes from TinyMCE 2.x to 3.x (see here: 
 > >> http://wiki.moxiecode.com/index.php/TinyMCE:Migration_guide). To my 
 > >> understanding the two lenya tinymce plugins are still written in 2.x plugin 
 > >> style.
 > > 
 > > Correct.
 > > 
 > > The unloadhandler plugin code for 3.x is something like
 > > 
 > >>>>>>>>>>>>>>>>>>>>>>>> 
 > >    (function() {
 > > 
 > > 	tinymce.create('tinymce.plugins.UnloadPlugin', {
 > > 
 > > 		init : function(ed, url) {
 > > 		    tinymce.DOM.win.onbeforeunload = function() {
 > > 			var msg = ed.getLang("unloadhandler.unload_msg");
 > > 			return msg;
 > > 		    }
 > > 		},
 > > 
 > > 		getInfo : function() {
 > > 		    return {
 > > 			longname : 'Unload Handler Plugin for Lenya / TinyMCE',
 > > 			    author : 'lenya',
 > > 			    authorurl : 'http://lenya.apache.org',
 > > 			    infourl : 'http://lenya.apache.org',
 > > 			    version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
 > > 			    };
 > > 		}
 > > 
 > > 	    });
 > > 	
 > > 	tinymce.PluginManager.add("unloadhandler", tinymce.plugins.UnloadPlugin);
 > > 	tinymce.PluginManager.requireLangPack('unloadhandler');
 > >    })();
 > > <<<<<<<<<<<<<<<<<<<<<<<<
 > > 
 > > (plus the necessary changes to the language files)
 > > 
 > > 
 > > However, the question is:  should the plugins work with both 2.x and 3.x, or can 
 > > the 2.x version be dropped?
 > > 
 > > In the first case, one can write something like
 > > 
 > > if (tinyMCE.importPluginLanguagePack) { # check for existence of 2.x function
 > > 
 > > (2.x style code)
 > > 
 > > } else {
 > > 
 > > (3.x style code)
 > > 
 > > }
 > > 
 > > Rainer
 > > 
 > > 
 > > 
 > > ---------------------------------------------------------------------
 > > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
 > > For additional commands, e-mail: user-help@lenya.apache.org
 > 
 > null-oder-eins GmbH Zürich
 > web & graphic design
 > 
 > www.null-oder-eins.ch
 > 
 > ragaller@apache.org
 > Skype: callto://ragaller
 > 
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
 > For additional commands, e-mail: user-help@lenya.apache.org
 > 



Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Martin Dominguez <ma...@wbsgo.com>.
Tiny 3 working on our sites!

It solves any problems and I can create customized buttons with customized
actions!! 

Thanks all! Great job ;)

Salu2.

Rainer Schöpf-5 wrote:
> 
> Hi Petteri,
> 
>  > Once you've got the problems ironed out, would it be too much to ask
>  > to write up the instructions on the Lenya wiki? I'd like to get Tiny
>  > 3.x running on my site (on Lenya 2.0.3) as well, and while it's clear
>  > you guys know what you're doing, I'm a bit out of my depth with this
>  > thread.
> 
> I've just updated the Wiki to my latest version of installation notes:
> 
>   http://wiki.apache.org/lenya/HowToInstallTinyMCE3.x
> 
> Caveat: The patches attached to the wiki page replace some files.  If you
> want 
> to be able to go back to TinyMCE 2.x you may need to backup the tinymce
> subtree 
> of your installation before you try this.
> 
>   Rainer
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/TinyMCE-3.x-Integration--tp29961557p30340634.html
Sent from the Lenya - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Rainer Schöpf <ra...@gmx.net>.
Hi Petteri,

 > Once you've got the problems ironed out, would it be too much to ask
 > to write up the instructions on the Lenya wiki? I'd like to get Tiny
 > 3.x running on my site (on Lenya 2.0.3) as well, and while it's clear
 > you guys know what you're doing, I'm a bit out of my depth with this
 > thread.

I've just updated the Wiki to my latest version of installation notes:

  http://wiki.apache.org/lenya/HowToInstallTinyMCE3.x

Caveat: The patches attached to the wiki page replace some files.  If you want 
to be able to go back to TinyMCE 2.x you may need to backup the tinymce subtree 
of your installation before you try this.

  Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Petteri Sulonen <ps...@gmail.com>.
Hi, Rainer, Jürgen –

Once you've got the problems ironed out, would it be too much to ask
to write up the instructions on the Lenya wiki? I'd like to get Tiny
3.x running on my site (on Lenya 2.0.3) as well, and while it's clear
you guys know what you're doing, I'm a bit out of my depth with this
thread.

Best regards, Petteri

On Tue, Oct 19, 2010 at 2:42 PM, Jürgen Ragaller <ra...@apache.org> wrote:
> Hello Rainer
>
>
> ... sorry I made a bad typo in my local.build.properties... With your help, saving now works in 2.0.3; so things look fine here. I'll try to find out why tiny 3.x is not loading in 2.1.x.
>
>
> Thanks for the enable-uploads hint!
>
> Jürgen
>
>
> Am 19.10.2010 um 13:24 schrieb Jürgen Ragaller:
>
>> Hi Rainer
>>
>> I have set this parameter to true for both, 2.0.3 and 2.1.x.
>>
>> I realized, that I mixed two problems in one thread:
>>
>> 1) tinymce is not running in 2.1.x (with enable-uploads == true)
>> 2) I have problems saving from tinymce in 2.0.3 (with enable-uploads == true)
>>
>> Did you manage to get tiny running under 2.1.x with the changes you described?
>>
>> I will have a look at the html output and run a difference viewer - maybe I see in it why tinyMCE fails to load for me.
>>
>> Jürgen
>>
>>
>> Am 19.10.2010 um 11:47 schrieb Rainer Schöpf:
>>
>>> Hi Jürgen,
>>>
>>> found the problem: you need to enable uploads to use TinyMCE, either in
>>> local.build.properties, or you can modify the
>>>
>>> build/lenya/webapp/WEB-INF/web.xml
>>>
>>> file:
>>>
>>>   <init-param>
>>>     <param-name>enable-uploads</param-name>
>>>     <param-value>true</param-value>
>>>   </init-param>
>>>
>>> and restart lenya.
>>>
>>> This is the same bug as reported for oneform in
>>>
>>> https://issues.apache.org/bugzilla/show_bug.cgi?id=44947
>>>
>>> I guess the same fix can be applied here.
>>>
>>> Rainer
>>>
>>>
>>> _____________________________________________________________________
>>>
>>>
>>> On Mon, 18 Oct 2010, Jürgen Ragaller wrote:
>>>
>>>> A little update to my findings:
>>>>
>>>> TinyMCE 3.x loads with 2.0.3 but saving changes results is not possible
>>>> «Beteiligte Objekte sind ausgecheckt»...
>>>>
>>>> ... will do some more digging.
>>>>
>>>> Jürgen
>>>>
>>>>
>>>>
>>>> Am 18.10.2010 um 16:03 schrieb Jürgen Ragaller:
>>>>
>>>>> Hi Rainer
>>>>>
>>>>> Great!
>>>>>
>>>>> Am 15.10.2010 um 17:38 schrieb Rainer Schöpf:
>>>>>
>>>>> [...]
>>>>>
>>>>>>
>>>>>> I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly
>>>>>> needs more work, especially for a proper interface with the code at the end of
>>>>>> tiny_lenya_glue.js.
>>>>>>
>>>>>> I've created a new Bugzilla entry for these changes:
>>>>>>
>>>>>> https://issues.apache.org/bugzilla/show_bug.cgi?id=50099
>>>>>
>>>>> I just gave these two plugins a try. The javascript errors are gone, but TinyMCE does not open up. Did you only change the two plugins to get Tiny 3.x working?
>>>>>
>>>>> [...]
>>>>>
>>>>> Thanks!
>>>>> Jürgen
>>>>>
>>>>> null-oder-eins GmbH Zürich
>>>>> web & graphic design
>>>>>
>>>>> www.null-oder-eins.ch
>>>>>
>>>>> ragaller@apache.org
>>>>> Skype: callto://ragaller
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>>
>>>>
>>>> null-oder-eins GmbH Zürich
>>>> web & graphic design
>>>>
>>>> www.null-oder-eins.ch
>>>>
>>>> ragaller@apache.org
>>>> Skype: callto://ragaller
>>>>
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>>
>>>
>>>
>>>
>>> Rainer
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>
>>
>>
>>
>> null-oder-eins GmbH Zürich
>> web & graphic design
>>
>> www.null-oder-eins.ch
>>
>> ragaller@apache.org
>> Skype: callto://ragaller
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>
> null-oder-eins GmbH Zürich
> web & graphic design
>
> www.null-oder-eins.ch
>
> ragaller@apache.org
> Skype: callto://ragaller
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Jürgen Ragaller <ra...@apache.org>.
Hello Rainer


... sorry I made a bad typo in my local.build.properties... With your help, saving now works in 2.0.3; so things look fine here. I'll try to find out why tiny 3.x is not loading in 2.1.x.


Thanks for the enable-uploads hint!

Jürgen


Am 19.10.2010 um 13:24 schrieb Jürgen Ragaller:

> Hi Rainer
> 
> I have set this parameter to true for both, 2.0.3 and 2.1.x.
> 
> I realized, that I mixed two problems in one thread:
> 
> 1) tinymce is not running in 2.1.x (with enable-uploads == true)
> 2) I have problems saving from tinymce in 2.0.3 (with enable-uploads == true)
> 
> Did you manage to get tiny running under 2.1.x with the changes you described?
> 
> I will have a look at the html output and run a difference viewer - maybe I see in it why tinyMCE fails to load for me.
> 
> Jürgen
> 
> 
> Am 19.10.2010 um 11:47 schrieb Rainer Schöpf:
> 
>> Hi Jürgen,
>> 
>> found the problem: you need to enable uploads to use TinyMCE, either in 
>> local.build.properties, or you can modify the
>> 
>> build/lenya/webapp/WEB-INF/web.xml
>> 
>> file:
>> 
>>   <init-param>
>>     <param-name>enable-uploads</param-name>
>>     <param-value>true</param-value>
>>   </init-param>
>> 
>> and restart lenya.
>> 
>> This is the same bug as reported for oneform in
>> 
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=44947
>> 
>> I guess the same fix can be applied here.
>> 
>> Rainer
>> 
>> 
>> _____________________________________________________________________
>> 
>> 
>> On Mon, 18 Oct 2010, Jürgen Ragaller wrote:
>> 
>>> A little update to my findings:
>>> 
>>> TinyMCE 3.x loads with 2.0.3 but saving changes results is not possible 
>>> «Beteiligte Objekte sind ausgecheckt»...
>>> 
>>> ... will do some more digging.
>>> 
>>> Jürgen
>>> 
>>> 
>>> 
>>> Am 18.10.2010 um 16:03 schrieb Jürgen Ragaller:
>>> 
>>>> Hi Rainer
>>>> 
>>>> Great!
>>>> 
>>>> Am 15.10.2010 um 17:38 schrieb Rainer Schöpf:
>>>> 
>>>> [...]
>>>> 
>>>>> 
>>>>> I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly 
>>>>> needs more work, especially for a proper interface with the code at the end of 
>>>>> tiny_lenya_glue.js.
>>>>> 
>>>>> I've created a new Bugzilla entry for these changes:
>>>>> 
>>>>> https://issues.apache.org/bugzilla/show_bug.cgi?id=50099
>>>> 
>>>> I just gave these two plugins a try. The javascript errors are gone, but TinyMCE does not open up. Did you only change the two plugins to get Tiny 3.x working?
>>>> 
>>>> [...]
>>>> 
>>>> Thanks!
>>>> Jürgen
>>>> 
>>>> null-oder-eins GmbH Zürich
>>>> web & graphic design
>>>> 
>>>> www.null-oder-eins.ch
>>>> 
>>>> ragaller@apache.org
>>>> Skype: callto://ragaller
>>>> 
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>> For additional commands, e-mail: user-help@lenya.apache.org
>>>> 
>>> 
>>> null-oder-eins GmbH Zürich
>>> web & graphic design
>>> 
>>> www.null-oder-eins.ch
>>> 
>>> ragaller@apache.org
>>> Skype: callto://ragaller
>>> 
>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>> 
>> 
>> 
>> 
>> Rainer
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>> 
> 
> 
> 
> null-oder-eins GmbH Zürich
> web & graphic design
> 
> www.null-oder-eins.ch
> 
> ragaller@apache.org
> Skype: callto://ragaller
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 

null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragaller@apache.org
Skype: callto://ragaller




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Jürgen Ragaller <ra...@apache.org>.
Hi Rainer

I have set this parameter to true for both, 2.0.3 and 2.1.x.

I realized, that I mixed two problems in one thread:

1) tinymce is not running in 2.1.x (with enable-uploads == true)
2) I have problems saving from tinymce in 2.0.3 (with enable-uploads == true)

Did you manage to get tiny running under 2.1.x with the changes you described?

I will have a look at the html output and run a difference viewer - maybe I see in it why tinyMCE fails to load for me.

Jürgen


Am 19.10.2010 um 11:47 schrieb Rainer Schöpf:

> Hi Jürgen,
> 
> found the problem: you need to enable uploads to use TinyMCE, either in 
> local.build.properties, or you can modify the
> 
> build/lenya/webapp/WEB-INF/web.xml
> 
> file:
> 
>    <init-param>
>      <param-name>enable-uploads</param-name>
>      <param-value>true</param-value>
>    </init-param>
> 
> and restart lenya.
> 
> This is the same bug as reported for oneform in
> 
>  https://issues.apache.org/bugzilla/show_bug.cgi?id=44947
> 
> I guess the same fix can be applied here.
> 
> Rainer
> 
> 
> _____________________________________________________________________
> 
> 
> On Mon, 18 Oct 2010, Jürgen Ragaller wrote:
> 
>> A little update to my findings:
>> 
>> TinyMCE 3.x loads with 2.0.3 but saving changes results is not possible 
>> «Beteiligte Objekte sind ausgecheckt»...
>> 
>> ... will do some more digging.
>> 
>> Jürgen
>> 
>> 
>> 
>> Am 18.10.2010 um 16:03 schrieb Jürgen Ragaller:
>> 
>>> Hi Rainer
>>> 
>>> Great!
>>> 
>>> Am 15.10.2010 um 17:38 schrieb Rainer Schöpf:
>>> 
>>> [...]
>>> 
>>>> 
>>>> I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly 
>>>> needs more work, especially for a proper interface with the code at the end of 
>>>> tiny_lenya_glue.js.
>>>> 
>>>> I've created a new Bugzilla entry for these changes:
>>>> 
>>>> https://issues.apache.org/bugzilla/show_bug.cgi?id=50099
>>> 
>>> I just gave these two plugins a try. The javascript errors are gone, but TinyMCE does not open up. Did you only change the two plugins to get Tiny 3.x working?
>>> 
>>> [...]
>>> 
>>> Thanks!
>>> Jürgen
>>> 
>>> null-oder-eins GmbH Zürich
>>> web & graphic design
>>> 
>>> www.null-oder-eins.ch
>>> 
>>> ragaller@apache.org
>>> Skype: callto://ragaller
>>> 
>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>> For additional commands, e-mail: user-help@lenya.apache.org
>>> 
>> 
>> null-oder-eins GmbH Zürich
>> web & graphic design
>> 
>> www.null-oder-eins.ch
>> 
>> ragaller@apache.org
>> Skype: callto://ragaller
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>> 
> 
> 
> 
> Rainer
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 



null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragaller@apache.org
Skype: callto://ragaller




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Rainer Schöpf <ra...@gmx.net>.
Hi Jürgen,

found the problem: you need to enable uploads to use TinyMCE, either in 
local.build.properties, or you can modify the

 build/lenya/webapp/WEB-INF/web.xml

file:

    <init-param>
      <param-name>enable-uploads</param-name>
      <param-value>true</param-value>
    </init-param>

and restart lenya.

This is the same bug as reported for oneform in

  https://issues.apache.org/bugzilla/show_bug.cgi?id=44947

I guess the same fix can be applied here.

 Rainer


_____________________________________________________________________


On Mon, 18 Oct 2010, Jürgen Ragaller wrote:

 > A little update to my findings:
 > 
 > TinyMCE 3.x loads with 2.0.3 but saving changes results is not possible 
 > «Beteiligte Objekte sind ausgecheckt»...
 > 
 > ... will do some more digging.
 > 
 > Jürgen
 > 
 > 
 > 
 > Am 18.10.2010 um 16:03 schrieb Jürgen Ragaller:
 > 
 > > Hi Rainer
 > > 
 > > Great!
 > > 
 > > Am 15.10.2010 um 17:38 schrieb Rainer Schöpf:
 > > 
 > > [...]
 > > 
 > >> 
 > >> I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly 
 > >> needs more work, especially for a proper interface with the code at the end of 
 > >> tiny_lenya_glue.js.
 > >> 
 > >> I've created a new Bugzilla entry for these changes:
 > >> 
 > >> https://issues.apache.org/bugzilla/show_bug.cgi?id=50099
 > > 
 > > I just gave these two plugins a try. The javascript errors are gone, but TinyMCE does not open up. Did you only change the two plugins to get Tiny 3.x working?
 > > 
 > > [...]
 > > 
 > > Thanks!
 > > Jürgen
 > > 
 > > null-oder-eins GmbH Zürich
 > > web & graphic design
 > > 
 > > www.null-oder-eins.ch
 > > 
 > > ragaller@apache.org
 > > Skype: callto://ragaller
 > > 
 > > 
 > > 
 > > 
 > > ---------------------------------------------------------------------
 > > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
 > > For additional commands, e-mail: user-help@lenya.apache.org
 > > 
 > 
 > null-oder-eins GmbH Zürich
 > web & graphic design
 > 
 > www.null-oder-eins.ch
 > 
 > ragaller@apache.org
 > Skype: callto://ragaller
 > 
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
 > For additional commands, e-mail: user-help@lenya.apache.org
 > 



Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Rainer Schöpf <ra...@gmx.net>.
Hello J�rgen,

in my 2.1.x tree I see the same problem. In my 2.0.X tree tinymce works fine.

I've been trying to find the difference, but no success so far.

This is very strange....

  Rainer



On Mon, 18 Oct 2010 at 16:25 +0200, J�rgen Ragaller wrote:

 > A little update to my findings:
 > 
 > TinyMCE 3.x loads with 2.0.3 but saving changes results is not possible 
 > �Beteiligte Objekte sind ausgecheckt�...
 > 
 > ... will do some more digging.
 > 
 > J�rgen
 > 
 > 
 > 
 > Am 18.10.2010 um 16:03 schrieb J�rgen Ragaller:
 > 
 > > Hi Rainer
 > > 
 > > Great!
 > > 
 > > Am 15.10.2010 um 17:38 schrieb Rainer Sch�pf:
 > > 
 > > [...]
 > > 
 > >> 
 > >> I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly 
 > >> needs more work, especially for a proper interface with the code at the end of 
 > >> tiny_lenya_glue.js.
 > >> 
 > >> I've created a new Bugzilla entry for these changes:
 > >> 
 > >> https://issues.apache.org/bugzilla/show_bug.cgi?id=50099
 > > 
 > > I just gave these two plugins a try. The javascript errors are gone, but TinyMCE does not open up. Did you only change the two plugins to get Tiny 3.x working?
 > > 
 > > [...]
 > > 
 > > Thanks!
 > > J�rgen
 > > 
 > > null-oder-eins GmbH Z�rich
 > > web & graphic design
 > > 
 > > www.null-oder-eins.ch
 > > 
 > > ragaller@apache.org
 > > Skype: callto://ragaller
 > > 
 > > 
 > > 
 > > 
 > > ---------------------------------------------------------------------
 > > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
 > > For additional commands, e-mail: user-help@lenya.apache.org
 > > 
 > 
 > null-oder-eins GmbH Z�rich
 > web & graphic design
 > 
 > www.null-oder-eins.ch
 > 
 > ragaller@apache.org
 > Skype: callto://ragaller
 > 
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
 > For additional commands, e-mail: user-help@lenya.apache.org
 > 

   Rainer Sch�pf

Re: TinyMCE 3.x Integration?

Posted by Jürgen Ragaller <ra...@apache.org>.
A little update to my findings:

TinyMCE 3.x loads with 2.0.3 but saving changes results is not possible 
«Beteiligte Objekte sind ausgecheckt»...

... will do some more digging.

Jürgen



Am 18.10.2010 um 16:03 schrieb Jürgen Ragaller:

> Hi Rainer
> 
> Great!
> 
> Am 15.10.2010 um 17:38 schrieb Rainer Schöpf:
> 
> [...]
> 
>> 
>> I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly 
>> needs more work, especially for a proper interface with the code at the end of 
>> tiny_lenya_glue.js.
>> 
>> I've created a new Bugzilla entry for these changes:
>> 
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=50099
> 
> I just gave these two plugins a try. The javascript errors are gone, but TinyMCE does not open up. Did you only change the two plugins to get Tiny 3.x working?
> 
> [...]
> 
> Thanks!
> Jürgen
> 
> null-oder-eins GmbH Zürich
> web & graphic design
> 
> www.null-oder-eins.ch
> 
> ragaller@apache.org
> Skype: callto://ragaller
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 

null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragaller@apache.org
Skype: callto://ragaller




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Jürgen Ragaller <ra...@apache.org>.
Hi Rainer

Great!

Am 15.10.2010 um 17:38 schrieb Rainer Schöpf:

[...]

> 
> I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly 
> needs more work, especially for a proper interface with the code at the end of 
> tiny_lenya_glue.js.
> 
> I've created a new Bugzilla entry for these changes:
> 
>  https://issues.apache.org/bugzilla/show_bug.cgi?id=50099

I just gave these two plugins a try. The javascript errors are gone, but TinyMCE does not open up. Did you only change the two plugins to get Tiny 3.x working?

[...]

Thanks!
Jürgen

null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragaller@apache.org
Skype: callto://ragaller




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Rainer Schöpf <ra...@gmx.net>.
Hi Jürgen,

you wrote:

 > Thanks! That's a nice start. I'll try to rewrite the simplebrowser plugin in the same way.

I have a preliminary tiny 3.x version of the simplebrowser plugin. It certainly 
needs more work, especially for a proper interface with the code at the end of 
tiny_lenya_glue.js.

I've created a new Bugzilla entry for these changes:

  https://issues.apache.org/bugzilla/show_bug.cgi?id=50099

I tried to keep 2.x compatibility but didn't test it against Tiny 2.x.

  Rainer

Re: TinyMCE 3.x Integration?

Posted by Jürgen Ragaller <ra...@apache.org>.
Good morning, Rainer

Thanks! That's a nice start. I'll try to rewrite the simplebrowser plugin in the same way.

I suggest to drop the 2.x compatibility. It makes no sense to me to be compatible with an oldish in-browser-editor that is not compatible with todays modern browsers. 

What do the other devs think about this?

Jürgen


Am 15.10.2010 um 01:14 schrieb Rainer Schöpf:

> Hello Jürgen,
> 
>> I'm currently working on our publication to get it working smoothly with the 2.1 dev branch.
>> So far so good...
>> 
>> IIUC some of your work at the summer meeting in Bordeaux was about making lenya compatible with tinymce 3.x.
>> 
>> When the TinyMCE usecase is executed, I get the following JavaScript errors:
>> 
>> tinyMCE.importPluginLanguagePack is not a function
>> tinyMCE.importPluginLanguagePack('simplebrowser', 'en');
>> 
>> tinyMCE.importPluginLanguagePack is not a function
>> tinyMCE.importPluginLanguagePack('unloadhandler');
>> 
>> 
>> These errors (and other followups when the above are fixed) seem to be 
>> related to the Plugin API Changes from TinyMCE 2.x to 3.x (see here: 
>> http://wiki.moxiecode.com/index.php/TinyMCE:Migration_guide). To my 
>> understanding the two lenya tinymce plugins are still written in 2.x plugin 
>> style.
> 
> Correct.
> 
> The unloadhandler plugin code for 3.x is something like
> 
>>>>>>>>>>>>>>>>>>>>>>>> 
>    (function() {
> 
> 	tinymce.create('tinymce.plugins.UnloadPlugin', {
> 
> 		init : function(ed, url) {
> 		    tinymce.DOM.win.onbeforeunload = function() {
> 			var msg = ed.getLang("unloadhandler.unload_msg");
> 			return msg;
> 		    }
> 		},
> 
> 		getInfo : function() {
> 		    return {
> 			longname : 'Unload Handler Plugin for Lenya / TinyMCE',
> 			    author : 'lenya',
> 			    authorurl : 'http://lenya.apache.org',
> 			    infourl : 'http://lenya.apache.org',
> 			    version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
> 			    };
> 		}
> 
> 	    });
> 	
> 	tinymce.PluginManager.add("unloadhandler", tinymce.plugins.UnloadPlugin);
> 	tinymce.PluginManager.requireLangPack('unloadhandler');
>    })();
> <<<<<<<<<<<<<<<<<<<<<<<<
> 
> (plus the necessary changes to the language files)
> 
> 
> However, the question is:  should the plugins work with both 2.x and 3.x, or can 
> the 2.x version be dropped?
> 
> In the first case, one can write something like
> 
> if (tinyMCE.importPluginLanguagePack) { # check for existence of 2.x function
> 
> (2.x style code)
> 
> } else {
> 
> (3.x style code)
> 
> }
> 
> Rainer
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org

null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

ragaller@apache.org
Skype: callto://ragaller




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: TinyMCE 3.x Integration?

Posted by Rainer Schöpf <ra...@gmx.net>.
Hello Jürgen,

 > I'm currently working on our publication to get it working smoothly with the 2.1 dev branch.
 > So far so good...
 > 
 > IIUC some of your work at the summer meeting in Bordeaux was about making lenya compatible with tinymce 3.x.
 > 
 > When the TinyMCE usecase is executed, I get the following JavaScript errors:
 > 
 > tinyMCE.importPluginLanguagePack is not a function
 > tinyMCE.importPluginLanguagePack('simplebrowser', 'en');
 > 
 > tinyMCE.importPluginLanguagePack is not a function
 > tinyMCE.importPluginLanguagePack('unloadhandler');
 > 
 > 
 > These errors (and other followups when the above are fixed) seem to be 
 > related to the Plugin API Changes from TinyMCE 2.x to 3.x (see here: 
 > http://wiki.moxiecode.com/index.php/TinyMCE:Migration_guide). To my 
 > understanding the two lenya tinymce plugins are still written in 2.x plugin 
 > style.

Correct.

The unloadhandler plugin code for 3.x is something like

>>>>>>>>>>>>>>>>>>>>>>>
    (function() {

	tinymce.create('tinymce.plugins.UnloadPlugin', {

		init : function(ed, url) {
		    tinymce.DOM.win.onbeforeunload = function() {
			var msg = ed.getLang("unloadhandler.unload_msg");
			return msg;
		    }
		},

		getInfo : function() {
		    return {
			longname : 'Unload Handler Plugin for Lenya / TinyMCE',
			    author : 'lenya',
			    authorurl : 'http://lenya.apache.org',
			    infourl : 'http://lenya.apache.org',
			    version : tinyMCE.majorVersion + "." + tinyMCE.minorVersion
			    };
		}

	    });
	
	tinymce.PluginManager.add("unloadhandler", tinymce.plugins.UnloadPlugin);
	tinymce.PluginManager.requireLangPack('unloadhandler');
    })();
<<<<<<<<<<<<<<<<<<<<<<<<

(plus the necessary changes to the language files)


However, the question is:  should the plugins work with both 2.x and 3.x, or can 
the 2.x version be dropped?

In the first case, one can write something like

if (tinyMCE.importPluginLanguagePack) { # check for existence of 2.x function

 (2.x style code)

} else {

 (3.x style code)

}

 Rainer