cancel
Showing results for 
Search instead for 
Did you mean: 

Build a HTML-Editor in WebDynpro

Former Member
0 Kudos

Hi,

is it possible to build an HTML-Editor in Web Dynpro.

I want to integrate some tags e.f. <b></b> or <i></i> in an string. This string will than load in to a HTML-base context.

The view will looks like this Message tool here!! B-Button- I-Button etc.

The problem is that the TextEdit UI has no methode to get an selected part of the string to concat the tags.

regards

Gunter

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

It is only possible with Portal 7.1.1

Former Member
0 Kudos

hi Werner,

it's possible

u do this way

Give the source of text edit as context variable of binary type

In the DoInit() method write the code

IWDAttributeInfo attr = wdContext.getNodeInfo().getAttribute("Data");

type = attr.getModifiableSimpleType();

ISimpleTypeModifiable type;

defined as a global variable. and u Insert a Iframe and set the source as a context variable Source (String type). andInsert a button with text as Display and create an action as OnActionDisplay(). In that action write the code

wdContext.currentContextElement.setSource(type.format(wdContext.currentContextElement().getData()));

u see this thread also, this is helpful to u

regards

vino

Former Member
0 Kudos

Hi Vinoth,

Check the following link for help

I would sujjest you to go for JSPDYN Pages where in you have been provided with HTML editor.

Please check my Blog below for more information

/people/anil.dichpally/blog/2007/04/25/jsp-dyn-pages-with-an-example

regards

Anil

Former Member
0 Kudos

Hi,

Check the following threads it clearly explained for ur question,it will be very usefull