Re: Ckeditor and tapestry 5.4
Is Ckeditor loading CSS files by itself? If not, you could leave the CSS files in assets folder, then load the css files through @Import in the component Java class. On Mon, Aug 5, 2013 at 6:08 PM, Dimitris Zenios wrote: > Also Yunhua Sang module dispatcher only support .js files.Ckeditor needs to > load css files alsos > > > On Tue, Aug 6, 2013 at 12:30 AM, Dimitris Zenios > wrote: > > > There is a slight problem.I am using a require.js module to load > > ckeditor.I have ckeditor-library as a shim and a ckeditor module like > this > > > > define(["ckeditor-library"], function() { > > return function(spec) { > >blah blah > > } > > }); > > > > When ckeditor library is initialized, it tries to get its javascript > files > > from /assets.gz/modules which are not there.All of its javascript/css > files > > are located inside META-INF/assets/ckeditor. > > > > > > On Tue, Aug 6, 2013 at 12:21 AM, Yunhua Sang >wrote: > > > >> Hi Dimitris, > >> > >> You could create a new JavaScript module and put all the needed > JavaScript > >> files into the same folder. > >> > >> The folder structure could be like: > >> > >> resources > >> META-INF > >> modules > >> ckeditor > >> js files... > >> > >> > >> The default folder of JavaScript modules is resources/META-INF/modules; > in > >> the example above, the module name is ckeditor. > >> > >> Regards, > >> Yunhua > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> On Mon, Aug 5, 2013 at 2:01 PM, Dimitris Zenios > >> wrote: > >> > >> > Hello everybody.I am trying to integrate tapestry 5.4 and ckeditor. > >> > Ckeditor loads all its dependencies asynchronously but not through > >> > require.js. How can i expose ckeditors folder for the to the client in > >> > order to let ckeditor.js load its resources from? > >> > > >> > Regards > >> > Dimitris Zenios > >> > > >> > > > > >
Re: Ckeditor and tapestry 5.4
Also Yunhua Sang module dispatcher only support .js files.Ckeditor needs to load css files alsos On Tue, Aug 6, 2013 at 12:30 AM, Dimitris Zenios wrote: > There is a slight problem.I am using a require.js module to load > ckeditor.I have ckeditor-library as a shim and a ckeditor module like this > > define(["ckeditor-library"], function() { > return function(spec) { >blah blah > } > }); > > When ckeditor library is initialized, it tries to get its javascript files > from /assets.gz/modules which are not there.All of its javascript/css files > are located inside META-INF/assets/ckeditor. > > > On Tue, Aug 6, 2013 at 12:21 AM, Yunhua Sang wrote: > >> Hi Dimitris, >> >> You could create a new JavaScript module and put all the needed JavaScript >> files into the same folder. >> >> The folder structure could be like: >> >> resources >> META-INF >> modules >> ckeditor >> js files... >> >> >> The default folder of JavaScript modules is resources/META-INF/modules; in >> the example above, the module name is ckeditor. >> >> Regards, >> Yunhua >> >> >> >> >> >> >> >> >> >> On Mon, Aug 5, 2013 at 2:01 PM, Dimitris Zenios >> wrote: >> >> > Hello everybody.I am trying to integrate tapestry 5.4 and ckeditor. >> > Ckeditor loads all its dependencies asynchronously but not through >> > require.js. How can i expose ckeditors folder for the to the client in >> > order to let ckeditor.js load its resources from? >> > >> > Regards >> > Dimitris Zenios >> > >> > >
Re: Ckeditor and tapestry 5.4
There is a slight problem.I am using a require.js module to load ckeditor.I have ckeditor-library as a shim and a ckeditor module like this define(["ckeditor-library"], function() { return function(spec) { blah blah } }); When ckeditor library is initialized, it tries to get its javascript files from /assets.gz/modules which are not there.All of its javascript/css files are located inside META-INF/assets/ckeditor. On Tue, Aug 6, 2013 at 12:21 AM, Yunhua Sang wrote: > Hi Dimitris, > > You could create a new JavaScript module and put all the needed JavaScript > files into the same folder. > > The folder structure could be like: > > resources > META-INF > modules > ckeditor > js files... > > > The default folder of JavaScript modules is resources/META-INF/modules; in > the example above, the module name is ckeditor. > > Regards, > Yunhua > > > > > > > > > > On Mon, Aug 5, 2013 at 2:01 PM, Dimitris Zenios > wrote: > > > Hello everybody.I am trying to integrate tapestry 5.4 and ckeditor. > > Ckeditor loads all its dependencies asynchronously but not through > > require.js. How can i expose ckeditors folder for the to the client in > > order to let ckeditor.js load its resources from? > > > > Regards > > Dimitris Zenios > > >
Re: Ckeditor and tapestry 5.4
Hi Dimitris, You could create a new JavaScript module and put all the needed JavaScript files into the same folder. The folder structure could be like: resources META-INF modules ckeditor js files... The default folder of JavaScript modules is resources/META-INF/modules; in the example above, the module name is ckeditor. Regards, Yunhua On Mon, Aug 5, 2013 at 2:01 PM, Dimitris Zenios wrote: > Hello everybody.I am trying to integrate tapestry 5.4 and ckeditor. > Ckeditor loads all its dependencies asynchronously but not through > require.js. How can i expose ckeditors folder for the to the client in > order to let ckeditor.js load its resources from? > > Regards > Dimitris Zenios >
Re: Ckeditor and tapestry 5.4
On Mon, 05 Aug 2013 15:01:39 -0300, Dimitris Zenios wrote: Hello everybody.I am trying to integrate tapestry 5.4 and ckeditor. Ckeditor loads all its dependencies asynchronously but not through require.js. How can i expose ckeditors folder for the to the client in order to let ckeditor.js load its resources from? Just put all the CKEditor .js files in the same folder in the classpath, use relative paths and it'll probably work. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org