Hi Geoffrey,
FYI the plugin.js file is located at /VAADIN/js/magnolialink/plugin.js but it
should be resolved just fine afaik. Additionally you may consider using
config.extraPlugins and/or config.removePlugins instead of config.plugins
directly.
Now on the serious side of things, CKEditor is provided by a Vaadin addon, so
by default most of the config is sent out in the Vaadin UIDL response
(client-side connector then passes it into inline CKEditor config).
Unfortunately, [b]when using a custom config.js file, the addon bypasses all
other config properties[/b] that we set in
RichTextFieldFactory/MagnoliaRichTextFieldConfig, so we have no choice but try
to come up with a raw JS replacement for that.
Here's the typical Vaadin UIDL response, in particular the inPageConfig might
be of interest to you I guess:
[code]Response @ 38105ms
-change pid=104
-info.magnolia.ui.vaadin.gwt.client.richtext.RichTextConnector id=104
readonly=false viewWithoutEditor=false inPageConfig={ toolbar : 'Custom',
toolbar_Custom :
[{"name":"basicstyles","items":["Bold","Italic","Underline","SpecialChar"]},{"name":"paragraph","items":["NumberedList","BulletedList","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","Image","Table"]},{"name":"links","items":["Link","InternalLink","DamLink","Unlink"]},{"name":"styles","items":["Font","FontSize","TextColor"]},{"name":"clipboard","items":["Cut","Copy","Paste","PasteText","PasteFromWord"]},{"name":"undo","items":["Undo","Redo"]},{"name":"tools","items":["Source"]}],
resize_enabled : false, extraPlugins : 'magnolialink', removePlugins :
'justify,image,sourcearea,table,tabletools,colorbutton,colordialog,font,fontSize,elementspath,filebrowser',
baseFloatZIndex : 150, removeButtons : 'Font', removeButtons : 'FontSize' }
protected_body=false
serverplugins={magnolialink:/magnolia-bundled-webapp/VAADIN/js/magnolialink/,
eventnames={0:mgnlGetLink,}}
-variables
text=<p>At solmen va esser necessi far uniform grammatica, pronunciation e
plu sommun paroles. Ma quande lingues coalesce, li grammatica del resultant
lingue es plu simplic e regulari quam ti del coalescent lingues. Li nov lingua
franca va esser plu simplic e regulari quam li existent Europan
lingues.</p>[/code]
Hope this helps, please let us know as I'm sure a few other guys will run into
this too. Nevertheless we'll be looking for ways to bring CKEditor to Vaadin
more transparently in the future (ideas, no plans settled though).
Cheers!
Mika
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=086ff14d-59a4-4ff9-a261-b2bd1078ea70
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------