[Nuxeo-tickets] Re: [Nuxeo Repository] #1757: FCKEditor doesn't update comment

Nuxeo Repository trac at nuxeo.com
Fri Nov 3 13:32:46 CET 2006


#1757: FCKEditor doesn't update comment
----------------------------+-----------------------------------------------
 Reporter:  gracinet        |        Owner:  madarche 
     Type:  defect          |       Status:  new      
 Priority:  P2              |    Milestone:  CPS 3.4.3
Component:  CPSSchemas      |      Version:  TRUNK    
 Severity:  major           |   Resolution:           
 Keywords:  FCKEditor HTML  |  
----------------------------+-----------------------------------------------
Comment (by scamps):

 I've not found any other places, but when I read the initial comment about
 the News Item doc I thought it was the same problem.

 About the suggestion of load needed javascript in widgets, I was thinking
 about the way CPSPortlets does it.   It's easier than register js
 requeriments and pass this works to the layout.  Here there is a piece of
 code of CPSPortlets/browser/tree.js

 <script type="text/javascript">
   function loadScript(id, script_filename) {
     var html_doc = document.getElementsByTagName('head').item(0);
     var js = document.createElement('script');
     js.setAttribute('language', 'javascript');
     js.setAttribute('type', 'text/javascript');
     js.setAttribute('src', script_filename);
     html_doc.appendChild(js);
     return false;
   }

   loadScript('prototype', 'prototype.js');
   loadScript('effect', 'effects.js');
   loadScript('treeview', '++resource++treenodeview.js');
 </script>

 With some little effort, an importModule function, able to detect if a
 module is alread loaded, could be writted.   The jsolait library has a
 similar feature in its init.js

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1757>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.