Skip to Main Content

APEX

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!

Insert URL in Rich Text Editor Item

tironeFeb 18 2014 — edited Feb 19 2014

Hi all,

I am trying to insert a URL into one item defined as Rich Text Editor; the URL  link a page in the same application

I'm using the following javascript function :

function f_pasteEditor(p_idesc,p_nomeesc)

    {     

   var oEditor = FCKeditorAPI.GetInstance('P182_AZIONI');

   var htmlSnippet = '<a href="f?p=&APP_ID.:62:&SESSION.::NO:62:P62_ESC_ID,P62_CATEGORY:'+p_idesc+',SISTEMA">'+p_nomeesc+'</a>';

        alert(htmlSnippet);       

    oEditor.InsertHtml(htmlSnippet);          

    }

But using the previous syntax the SESSION variable is replaced by its value, so I get a hyperlink that works only in the current session.

Furthermore, the first part of the hyperlink is not correct; it contains '/ i / fck / editor /' instead of '/ apex /'


And now my questions:

How can I enter and save a hyperlink (to a page in the same application) that can be used from different sessions ?

How can I open the linked page in a popup window ?

How can I fix the first part of the hyperlink (set the BasePath ????)


regards and many thanks for any help.


saverio





Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2014
Added on Feb 18 2014
3 comments
637 views