[opencms-dev] WYSIWYG Editor Problem

Seji Thomas sthomas at cordiant.net
Mon Sep 29 15:22:01 CEST 2003


Many Thanks for the reply. I have been doing a lot of search ups on this regard. The idea behind the plan was to have a Company Information System that can be managed by System Users not used to HTML Programming, and that too with Approval cycles (Create - Publish). 

I tried the other way round - opening an HTML page having complex Layout in Netscape composer - and 'Select All' -> 'Copy' -> 'Paste' on to the HTML Editor. But then the Browser hangs and we need to kill the Browser Instance. Now what I see as the only solution is to create the Pages one by one which will be a time consuming affair.

Is there a way to include javascript in an HTML Page. Going through the OpenCMS project I found javascript resources in  'scripts' folder in the 'workplace' directory under 'system' on root. Have anybody implemented this in Projects? 
  ----- Original Message ----- 
  From: Claus Priisholm 
  To: opencms-dev at opencms.org 
  Sent: Monday, September 29, 2003 4:32 PM
  Subject: Re: [opencms-dev] WYSIWYG Editor Problem


  In an attempt to allow users to edit a JSP page, where most of the page is simple HTML, I've tried to do a little hack with plain pages (which can be called up in the WYSIWYG editor as opposed to JSP files) I found two things:

  1) The MS editor component seemingly strips certain things (like JSP tags) and rearranges other stuff upon save (I doubt that it is OpenCms that does it)
  2) You can edit HTML pages, but certain things won't work - it isn't the most complete HTML editor and externally referenced resources like CSS and stuff may not hook up correctly if you imported from an existing site.

  An obvious thing not supported is JavaScript, which for some special pages I tested caused a blank page to appear.

  The exception you get is because the 'page' type page is actually an XML file (look at a newly created 'page'-type file in the source editor, you'll note that the actual HTML is surrounded by XML CDATA tags). I'm not sure if it is safe to simply switch the resource type in the DB and then add those tags and be done with it.

  On søndag, sep 28, 2003, at 19:15 Europe/Copenhagen, Seji Thomas wrote:


    Our Software Development wing is planning to move an existing web-site in to OpenCMS. For this we have the copy of the web resources (HTML, and Images) of the current site available in a Folder which provides continued site navigation with out any broken links. We made a zip file of this folder and uploaded it through the 'Upload File Option' in OpenCMS which has the feature of unzipping zip files uploaded. My site works fine. Now when a OpenCMS user tries to open an HTML page for any page modification in the WYSIWYG Editor, the screen shows blank.
     
    We have checked for the file type of the HTML files and found that all of the files show the File Type as - Plain. Is this the reason for not showing up in the WYSIWYG Editor. Where as a file of File Type - Page opens up in the Editor.
     
    I have tried changing the resource_type of the file in the Database. The File Type changes but then while opening in the WYSIWYG Editor it throws some XMLParseException.
     
    Any hint on this will be highly appreciated. Thanks in Advance.


  --
  Claus Priisholm
  +45 48 22 46 46, fax: +45 48 22 46 43
  cpr at codedroids.com
  http://www.codedroids.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030929/d34bd35a/attachment.htm>


More information about the opencms-dev mailing list