Implementing TinyMCE JavaScript HTML Editor for Web Page Composer (WPC) within the SAP Portal



Similar documents
SAP NetWeaver Developer Studio 7.30 Installation Guide

Configuration of Enterprise Services using SICF and SOA Manager

How to Integrate CRM 2007 WebClient UI with SAP NetWeaver Portal

SAP CRM Campaign Automation

Deleting the User Personalization done on Enterprise Portal

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

Creating Transaction and Screen Variants

Restricting Search Operators in any Search View

Reverse Transport Mechanism in SAP BI

Configuring HTTPs Connection in SAP PI 7.10

Business Scenario Using GP/Web Dynpro with Back and Forth 3 Level Process and Dynamic Approvers in a Loop

Forgot or Lock "Administrator or J2EE_ADMIN" Password

Creating Content Using SO10 Objects and Text Symbols

SAP CRM 7.0 E2C Setup: CRM via Toolset

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

Adobe Document Service Configuration and Troubleshooting Guide

Step by Step Guide for Language Translation Tool

Deploying Crystal Reports on Top of a SAP BI Query

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

How to Modify, Create and Delete Table Entries from SE16

SAP NetWeaver Portal Development Kits for.net and Java

How to Generate Stack Xml for Ehp4 and Above Upgrade

XSLT Mapping in SAP PI 7.1

Creation and Configuration of Business Partners in SAP CRM

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

How to Create an ecatt?

BI 7.0 and EP 7.0 Integration using Template Installer

Web Dynpro ABAP: ALV and Table in Popup Window

Salesforce.com Integration Using SAP PI: A Case Study

BW Performance Monitoring

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

Display Options in Transaction SE16

Web Dynpro: Multiple ALV Grids and Layouts in ALV

Step by Step guide of Report-to- Report Interface in BW Reporting

Salesforce Integration Using PI: How to Perform Query and Other DML Operations Using the Enterprise WSDL

Multi Provider Creation Based on Sales and Planning Info Cubes

Integration of SAP R/3 with BO Universe Using Data Federator Connector

SAP FI - Automatic Payment Program (Configuration and Run)

Web Application Designer for Beginners

Deploying JDBC drivers in PI 7.1x Systems

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

Citrix EdgeSight for NetScaler Rapid Deployment Guide

Working with SAP BI 7.0 Data Transfer Process (DTP)

Tutorial - Creating Pop Up Window Using New Features in WebDynpro Java CE 7.1 Ehp1

ABAP Debugging Tips and Tricks

Creating New Unit of Measure in SAP BW

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

Invoice Collaboration: Self Billing Invoice

SAP CRM Middleware Configurations

Creating Mobile Applications on Top of SAP, Part 1

ESS- Performance Management System Configuration on Portal for ECC 6 Ehp4

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

LinkedIn for MS Dynamics 2013, 2015, or 2016 Installation Guide

Query OLAP Cache Optimization in SAP BW

NETWRIX CHANGE NOTIFIER

Converting and Exporting Data in XML Format

Sending an Image File Through XI in a File-to-Mail Scenario

Version USER GUIDE

EBOX Digital Content Management System (CMS) User Guide For Site Owners & Administrators

Dell One Identity Cloud Access Manager How to Configure for SSO to SAP NetWeaver using SAML 2.0

Credit Management in Sales and Distribution

Embedding Crystal Reports inside ECC ALV Reports

PingFederate. Identity Menu Builder. User Guide. Version 1.0

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

Inventory Management (0IC_C03) Part - 3

How to Assign Transport Request for Language Translation?

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

LSMW: Upload Master Data using Batch Input Recording

Order Split Usage in Production Orders

Understanding OLAP Processor and RSRT

SAP Workflow in Plain English

SAP CRM-BW Adapter an Overview

First step to Understand a Payroll Schema

Process Controlled Workflow SRM 7.0 (Using BRF)

SDN Community Contribution

SAP NetWeaver 7.4 Planning Product Availability Matrix (Planning PAM)

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

Middleware Configuration and Monitoring for Master Data Transfer from SRM to ECC

EMC Documentum Content Services for SAP Repository Manager

Create a New Portal Desktop

Different Types of Alerts for Process Chains. Table of Content

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

StreamServe Persuasion SP5 Control Center

Collaboration Technology Support Center Microsoft Collaboration Brief

Cloud Help for Community Managers...3. About Jive Anywhere...4. Jive Anywhere System Requirements...5. Managing Jive Anywhere...6

Automating Invoice Processing in SAP Accounts Payable

JBoss Portal 2.4. Quickstart User Guide

Symantec Database Security and Audit 3100 Series Appliance. Getting Started Guide

Upload Data in Web Dynpro Table from a Text File with Delimiters

StreamServe Persuasion SP5 Upgrading instructions

Kaltura Video Plugin for Jive Deployment Guide. Version: 1.0

Enhancing Performance Management System (Performance Appraisal) with EHP4

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Customizing the SSOSessionTimeout.jsp page for Kofax Front Office Server 3.5.2

Step-by-Step guide for SSO from MS Sharepoint 2010 to SAP EP 7.0x

Transcription:

Implementing TinyMCE JavaScript HTML Editor for Web Page Composer (WPC) within the SAP Portal Applies to: SAP Netweaver Portal 7.0 SP 18, Knowledge Management (KM), Moxiecode TinyMCE. For more information, visit the Portal and Collaboration homepage. Summary The scope of this article is to show how to use the Moxiecode TinyMCE Editor to Edit your Web Page Composer (WPC) articles, and paragraphs inside the SAP NetWeaver Portal. The TinyMCE Editor will replace the standard HTML Editor that comes with Web Page composer. This paper can be used in conjunction with Boris Magocsi's Article 'Using the TinyMCE JavaScript Content Editor in Web Page Composer' (Link). One key enhancement explained in this article is the KM Browse function. This is needed when you're inserting a Hyperlink, or inserting any images from KM content. We found this feature absolutely necessary in order to be able to use the new Editor. Code samples and configuration instructions are provided in body of this article. Author: Harman Shahi Created on: 1 January 2010 Author Bio Harman Shahi is a SAP Development Consultant. His expertise includes working on enterprise-level projects based on SAP Enterprise Portals, NetWeaver, Web DynPro, Java\J2EE, Adobe Forms, RFCs, Web Page Composer (WPC), Visual Composer, SAP ESS\MSS, and SAP CRM. h_shahi@yahoo.com 2010 SAP AG 1

Table of Contents Implementing TinyMCE JavaScript Content Editor in Web Page Composer (WPC)... 3 Prerequisites... 3 Portal Archive File (PAR) File... 3 Download PAR File... 3 Updating PAR File... 4 Deploying PAR File... 4 Activating New Editor... 6 Reload Editor Configuration... 6 Testing New Editor... 7 KM Integration... 8 Notes about this article... 8 Related Content... 9 Disclaimer and Liability Notice... 10 2010 SAP AG 2

Implementing TinyMCE JavaScript Content Editor in Web Page Composer (WPC) The scope of this document is to show how to use the TinyMCE Editor as default editor for Web Page Composer within the SAP Enterprise Portal. Web Page Composer gives us option to use external editors (i.e. TinyMCE) instead of the default WPC. In Order to achieve this we will follow these steps: 1. Download the PAR file. 2. In order to implement the Knowledge Management (KM) navigation (very useful), you will have to make a very minor change in the PAR file before deploying. 3. Deploy PAR file to the SAP Portal Environment. 4. Update XML files to activate the TinyMCE Editor. 5. Test. End State of this process: the image below shows the OLD and New Editor side by side. As you can see that the TinyMCE Editor contains a lot more editing options: Prerequisites You must have Content Admin and System Admin role in the SAP NetWeaver Portal. You should also have a BASIS resource on standby, and this process may need a restart. You have the Web Page Composer installed on the SAP NetWeaver portal. You should have working knowledge of NetWeaver Developer Studio, JavaScript, and SAP Portal. Portal Archive File (PAR) File Please start following the steps from here: Download PAR File Code Sample for WPC + TinyMCE Integration http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/606d1714-abd1-2a10-a48f-ac3ee926460d Note: The following reading is recommended and is also useful before downloading and modifying the PAR file: Using the TinyMCE JavaScript Content Editor in Web Page Composer http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f04b5c5d-3fd2-2a10-8ab0-8fa90e3ac162&prtmode=print 2010 SAP AG 3

Updating PAR File Update the PAR file so you can make use of the KM Navigation functionality. I recommend everyone to do this as this became absolutely necessary in our implementation. Change Needed: You will have to change the domain name in 2 JavaScript Files. Change the domain name to your own portal s domain name. (I.e. if your WPC website will be accessed with URL intranet.test.com, then enter test.com as the domain name) Change the following 2 files within the downloaded PAR file (You can use WinZip open the PAR file, and Edit these files): 1. com.sap.nwrig.example.wpc_editor_api\dist\scripts\tiny_mce\tiny_mce_popup.js 2. com.sap.nwrig.example.wpc_editor_api\dist\scripts\tiny_mce\utils\idemodification.js After these 2 JavaScript files have been updated with your domain name, you have to recreate the PAR file. Since we only updated JavaScript File, you can just use WinZip for this step. Please make sure the name of the PAR file is exactly same as the original. Note: Ideally you should create a NWDS project from the downloaded par file, and make the above changes. But since we only update JavaScript Files, you can use WinZip to unzip the PAR file, make your changes, Zip it back up, and rename.zip to.par. Deploying PAR File Login to the Portal as System Admin Browse to System Admin > Support > Portal Runtime > Administration Console Browse to the PAR file, and click Upload. Note: Please note that if you notice any issues with KM after loading this PAR file, you may need to restart the Portal. This really depends on your Portal version. 2010 SAP AG 4

After deployment, the new editor component configuration should be visible here: 2010 SAP AG 5

Activating New Editor In order to make TinyMCE the default editor, we need to update some XML files. In our case, we will make TinyMCE the default editor for a WPC Paragraph, and WPC Article. You may choose differently... Locate the following 2 files in KM: /etc/wpceditor/types/wpc_simple_item.xml /etc/wpceditor/types/wpc_article.xml Note: wpc_simple_item.xml file represents a WPC paragraph. wpc_article.xml file represents a WPC Article. Make a copy of these 2 files locally. Also store the original files in a secure location. In the xml file, replace the word htmledit with tinymce. The box below shows change in Red FOUND: <elements> <element id="text" description="xml.xlbl.text" type="htmledit" default="true" singleinstance="true" nodelete="true"/> </elements> CHANGED TO: <elements> <element id="text" description="xml.xlbl.text" type="tinymce" default="true" singleinstance="true" nodelete="true"/> </elements> Replace XML files in KM with your updated copies. Note: The XML files that we changed may be overwritten by a patch. So make sure you store the modified XML files at a secondary location for later reference. Reload Editor Configuration In order to trigger a re-read and reload of the editor configuration, load the following page in your browser: <your portal url>/irj/servlet/prt/portal/prtroot/com.sap.nw.wpc.designtime.reloadeditorconfigcomponent 2010 SAP AG 6

Testing New Editor Edit any Advanced Paragraph within a WPC Article: Edit any WPC Paragraph 2010 SAP AG 7

KM Integration The following pictures display how to insert a link or a picture from KM: Inserting Image from KM: Inserting Hyperlink from KM: Notes about this article 1) Thanks to Boris for the Original Document. The main reason for this article is to enhance the functionality to include KM Navigation functionality that is used to insert images, and links to other KM documents. 2) If you would like to modify the PAR file further, then you need to create a NWDS project from this PAR file, and edit as desired. Please have a look at Boris article for more information. 2010 SAP AG 8

Related Content Code Sample for WPC + TinyMCE Integration Using the TinyMCE Javascript Content Editor in Web Page Composer Code Sample for WPC + TinyMCE Integration Moxiecode TinyMCE For more information, visit the Portal and Collaboration homepage. 2010 SAP AG 9

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2010 SAP AG 10