Skip to Main Content

PeopleSoft Enterprise

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

CKEDITOR - How to change the behavior of Enter key?

user4652997Mar 25 2016 — edited Apr 7 2016

Hi,

First question:

I'm using a rich text field on a page. (CKEDITOR)

How can I change the behavior of the enter key to insert br elements instead of paragraph elements?

Second question:

I also want to prevent that the CKEDITOR places very long HTML tags around my input text, when I choose a certain font/size.

Like this:

<p><span style="font-size: 10px"><span style="font-family: trebuchet ms,helvetica,sans-serif"><span style="font-size: 10px"><span style="font-family: trebuchet ms,helvetica,sans-serif">text ....

Because we use this string later In BI Publisher to create letters. And the max size of the field is 4K. And because of those long HTML tags we can't put enough text in it.

The first question is the most important one, because it creates too much spaces between every sentence in our letter..

This post has been answered by Sasank Vemana on Mar 25 2016
Jump to Answer

Comments

fac586

Marko Goricki wrote:

is there a way to generate URL for calling APEX page with checksum at the end of the link if URL is generated outside of APEX?

If I call function like this one outside of APEX, checksum is not generated:

  1. createorreplacefunctionf_get_apex_url
  2. returnvarchar2
  3. is
  4. begin
  5. returnapex_util.prepare_url(p_url=>'f?p=100:1:0::::P1_ITEM:1'
  6. ,p_checksum_type=>'PUBLIC_BOOKMARK');
  7. end;
  8. /

I've noticed that by populating global variable (g_curr_flow_security_group_id) in wwv_flow_security function works fine:create or replace function f_get_apex_u

  1. createorreplacefunctionf_get_apex_url
  2. returnvarchar2
  3. is
  4. begin
  5. apex_050100.WWV_FLOW_SECURITY.G_CURR_FLOW_SECURITY_GROUP_ID:=1830663391033130;
  6. returnapex_util.prepare_url(p_url=>'f?p=100:1:0::::P1_ITEM:1'
  7. ,p_checksum_type=>'PUBLIC_BOOKMARK');
  8. end;
  9. /

But, I don't like the fact that this function depends on current APEX version.

There are documented, version-independent API methods for setting the security group ID:

Marko Goricki

Hi fac586,

thanks for quick answer.

I've tried to use set_security_group_id and as far as I know it sets wwv_flow_security.g_security_group_id global variable and not g_curr_flow_security_group_id which apparently is important for generating checksum.

I forgot to note that I've tested this on APEX 5.1.3.00.05.

Br,

Marko

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 5 2016
Added on Mar 25 2016
6 comments
809 views