Forum OpenACS Q&A: Re: Xinha Doesn't Load in IE9

Collapse
Posted by Gustaf Neumann on
The development on Xinha has more or less stalled, that's a pitty. Can you try the nightly built from xinha? it seems to have a few fixes and should contain the mentioned fix. If it works for you, i can update in cvs as well.

One good alternative is CKEditor, which can be used in xowiki::Forms like the following

   form {<form>@foo@</form>}
   text {@foo@}
   form_constraints {
     foo:richtext,editor=ckeditor,inplace=false,toolbar=Page,extraPlugins=xowikiimage
     _description:omit _page_order:omit
   } 
One can try there e.g. the inplace function,etc.

Collapse
Posted by Richard Hamilton on
Gustaf,

Thank you. I have an earlier email from you where you very kindly detailed how to install ckeditor. I see that this also works with IOS so this is a good option from that point of view. It is also a nice, uncluttered interface with defaults appropriate to my needs.

I also see that v3.3.9.3 of TinyMCE (20th Dec 2010) is sitting in acs-templating. The current version of TinyMCE also works with IOS. Has this ever been tried in Xowiki?

Regards
Richard

Collapse
Posted by Richard Hamilton on
Sorry if I'm being thick.....

I have downloaded the source code for ckeditor and untarred it into /packages/xowiki/www/resources/ckeditor

I have then added the following to my xowki.Form formspec:

{my_testfield:optional,richtext,width=80%,editor=ckeditor,label=Gobbledegook,inplace=false,toolbar=Page,extraPlugins=xowikiimage _description:omit _page_order:omit}

....but sadly, a huge nothing ocurred!

Did I miss a step?

Regards
Richard

Collapse
Posted by Richard Hamilton on
These paths don't look right to me:

      $(document).ready(function() {
        $( '#F1325af_descent_planning' ).ckeditor(function() { /* callback code */ }, {
          
    toolbar : 'Page',
    uiColor: '',
    language: 'en',
    skin: 'kama',
    startupMode: 'wysiwyg',
    parent_id: '1326',
    package_url: '/wikirim/',
    extraPlugins: 'xowikiimage,_description:omit,_page_order:omit',
    contentsCss: '/resources/xowiki/ck_contents.css',
    imageSelectorDialog: '/xowiki/ckeditor-images/',
    ready_callback: 'xowiki_image_callback(e.editor);',
    customConfig: '../ck_config.js'
      
        });
            CKEDITOR.instances['F1325af_descent_planning'].on('instanceReady',function(e) {xowiki_image_callback(e.editor);});
      });
Collapse
Posted by Gustaf Neumann on
why didn't you use the version committed to cvs? on all editors it happens, that newer version need different paths etc. when time permits, i will look into the new version.
Collapse
Posted by Gustaf Neumann on
I have not "tried" TinyMCE in xowiki. Trying alone won't help, since every editor has to be properly integrated (i.e. causing .css and js to be loaded, interfacing of the sizing parameters, etc.). You have in the source several examples (xinha with and without inplace editing, CKEditor with and without inplace editing, and wymeditor).
Collapse
Posted by Richard Hamilton on
Gustaf,

My apologies. I did not realise that there was a version in CVS. I was following some email instructions from earlier in the year and I thought I had to download from the ckeditor website.

I will delete that and grab the version in cvs.

If I get a chance, I will study the examples you have already integrated and see if I can work out how to adapt the integration for the new version.

Regards
Richard

Collapse
Posted by Richard Hamilton on
I have tried to look at http://cvs.openacs.org/ in order to work out where and how to co ckeditor but I get a 'Bad Gateway' error for all requests associated with openacs cvs.

Regards
Richard