Edit rich text in apex

Hi,
I was using rich text field in my form in apex database application. After submit, the context in rich text field will be saved in database clob column. I experienced some difficulties to edit the info in the rich text area. For example, I could not delete the bottom lines. I thought I deleted them, but after submit they were showed up again.
Any ideas?
Many thanks

I believe The others can provide more detailed solution.
How to display MS Rich Text in a Forms item? I think You can use OLE Item for that. It works just in client/server. I don't know a solution for Web Form.
If not then how to strip the rich text formatting off. the easest way:
Use OLE Automation.
Load the RTF document into ActiveX controls or programs which recognize RTF format. I believe you can find out a lot of ones. Then save it into text file.
I think you can upload the document into server to proces it there for Web Form. (I don't know exactly, because I have never used Web Form).
The other ways:
1. Use a third party RTF-parser. For example: you can find out a lot of program to convert RTF to XML-fo, etc.
2. There is the documentation for this format on www.microsoft.com. So you can write your RTF parser. If you need to just delete all formating from the document I think it is possible. I have written one, but they quete difficult and I don't have a free time to make the example :(.
3. etc...
Best regards,
Leonid

Similar Messages

  • Rich text editor (apex 4.0)

    using blue gray theme and a page with a rich text editor. Expanding the rich text options displays the text body p below the text area that persists even if you close the rich text options. Anybody know how to get rid of that behavior?

    I think your mixing 2 technologies.
    At 1 side you have xml in combination with xsl (style sheets used in BI Publisher and FOP) to generate your pdf. And at the other side you have HTML...
    XML and HTML are 2 entirely different technologies which you can not mix this simple. I investigated the same problem as you had, and in the end I ended up using jasperreports instead of FOP.
    Maybe BI Publisher has some html regions which you could insert into your word document but I doubt it cause more people have asked the same question on this board...
    So my advice: use jasperreports (also it is free for commercial usage)
    Success
    Br,
    Nico

  • Calling APEX page in Rich Text Editor Content

    In my application I am using the Rich Text Editor to allow users to enter a block of text that is rendered within a page. In some cases, they would like to link to other pages in the application from within that block. The problem I am having is figuring out how to use a relative URL (f?p) path and maintain the session ID. If I try to enter f?p=&APP_ID.:1:&APP_SESSION.as the link expression from within the editor, the resulting HTML comes out<a href="http://f?p=&amp;APP_ALIAS.:home:&amp;APP_SESSION.">Any ideas on how to do this such that the substitution strings get processed properly would be greatly appreciated.

    Hi,
    Here what you can do with substitution problem
    Create procedure
    create or replace PROCEDURE editor_url(p VARCHAR2)
    AS
    BEGIN
    f (p => v('APP_ID') || ':' || p || ':' || v('APP_SESSION'));
    END;
    Create public synonym
    CREATE PUBLIC SYNONYM editor_url FOR your_schema.editor_url;
    Grant execute on procedure for DAD user
    GRANT EXECUTE ON editor_url TO APEX_PUBLIC_USER; -- OHS or APEX Listener in use
    GRANT EXECUTE ON editor_url TO ANONYMOUS; -- EPG
    Then in editor link url you enter
    editor_url?p=1
    That will then you then to page 1 and procedure handles app id and session substitution
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai
    Edited by: jarola on Jul 25, 2012 7:58 PM
    Edited by: jarola on Jul 25, 2012 8:06 PM
    I did not test this fully. It do not work :(

  • Converted single line text to multiple and want to have rich text editing in layout

    We had a text field in a site that was initially set as single line of text. We needed it to be bigger and also allow formatting. So I added the field into the page layout.
    Changing
    <SharePointWebControls:TextField id="habitat" FieldName="Habitat" runat="server"/>
    to
    <SharePointWebControls:NoteField id="habitat" FieldName="Habitat" runat="server"/>
    But it doesn't show any rich text editing options and displays the full html tags in the field.
    If I open the page in the edit properties screen instead, then the field displays as I want it with the rich text editing options available in the ribbon, and text showing as bolded instead of like this:
    <div>This is <strong>the </strong>habitat field.</div>
    This is a site using the 2010 Publishing template running in compatibility mode on a 2013 server.
    How can I get my page layout to behave the same way as the edit properties screen does?

    Hi,
    Here are two solutions for your reference:
    1. We can use the InputFormTextBox control to achieve it.
    <SharePoint:InputFormTextBox ID="habitat" RichText="true" RichTextMode="FullHtml" runat="server" TextMode="MultiLine" Rows="20"></SharePoint:InputFormTextBox>
    http://blog.qumsieh.ca/2009/01/13/how-to-add-a-rich-text-editor-to-your-custom-application-pages-or-web-parts/
    http://blog.mastykarz.nl/rich-text-editor-control-sharepoint-2010/
    2. We can use the RichHtmlField control to achieve it.
    <PublishingWebControls:RichHtmlField id="habitat" FieldName="Habitat" runat="server"/>
    http://msdn.microsoft.com/en-us/library/office/ms561507(v=office.14).aspx
    Best Regards
    Dennis Guo
    TechNet Community Support

  • I cant copy/paste from an article to my web site, get a Mozilla Rich Text Editing demo page will not work.HELP

    Tried to copy/paste from an article to my web site and got a "cannot copy /paste " warning and was directed to a security perferences site that said that Mozilla Rich Text Editing demo page will not work.
    Tried to find my Firefox profile directory using the start menu and was directed to hit enter to go to web. Feel like i am getting run around.

    Let's start with something very basic, and that is, you do not need to use the paste button on most websites. The button just reads what is on your clipboard and sticks it into the form. You can do that yourself using Ctrl+v or right-click>Paste.
    For your security, I suggest using those standard Windows keyboard shortcuts (Ctrl+x cut, Ctrl+c copy, Ctrl+v paste) or the context menu.
    Occasionally you will find a paste button that runs a clean-up script or otherwise does something useful. That is where the (admittedly a bit complicated) instructions come in handy.
    To open your active profile folder, you can use:
    Help > Troubleshooting Information > "Show Folder" button
    Which help article are you using for the modifications?
    Finally, please be cautious in opening up your clipboard to sites. You may have stuff you copied from other pages or other programs that you do not want to share with most sites.

  • Editing the properties of the Rich text editor in WebCenter Portal

    I have a requirement to modify the properties and also to all a new plugin to the CKeditor (Or the Rich Text Editor) that we have in Webcenter. The rte-taglib.jar has the config.js where the change is required. How can this fiel and use the modified setting as per my reqirement.

    This is a known issue in both Portal 10.1.4.x and Portal 11.x :
    Bug 8708210 (11) NOT ABLE TO RENDER RICH TEXT EDITOR WITH FIREFOX 3.5 BROWSER
    This bug is not published on Metalink.
    There is no solution yet. Consider to use IE Tab (https://addons.mozilla.org/en-US/firefox/addon/1419) for editing file items until this bug is solved.

  • Dynamic Action in CKE Editor / rich text

    Dear fellow developers,
    I created some dynamic actions in Apex 4.1.1, which allow me to create function keys in my application.
    For example on "key-down F10" a modal dialog opens or upon hitting "F11" the user is redirected.
    While this works as long as my Selection Type is DOM object "document", the actions are not fired once I enter the rich text editor (CKE) and it has received focus.
    Have you got an idea how to solve this problem?
    Creating an identical dynamic action and setting the Selection Type to jQuery Selector #cke_2 is to no avail.
    Many thanks,
    Sebastian

    No one having a hint?
    It is obviously due to the fact that the ckeditor is embedded in an iframe, which I don't have a selector for.
    I was able to add an id "#ckeditor" to the body of the iframe content but the usage of it fails.
    Maybe some code will illustrate it a little better:
    <span id="cke_P8_STR_BEARBEITUNG" class="cke_skin_kama cke_2 cke_editor_P8_STR_BEARBEITUNG" lang="de" style="width: 748px;" aria-labelledby="cke_P8_STR_BEARBEITUNG_arialbl" role="application" title=" " dir="ltr">
    <span id="cke_P8_STR_BEARBEITUNG_arialbl" class="cke_voice_label">WYSIWYG-Editor</span>
    <span class="cke_browser_gecko" role="presentation">
    <span class="cke_wrapper cke_ltr" role="presentation">
    <table class="cke_editor" cellspacing="0" cellpadding="0" border="0" role="presentation">
    <tbody>
    <tr role="presentation" style="-moz-user-select: none;">
    <tr role="presentation">
    <td id="cke_contents_P8_STR_BEARBEITUNG" class="cke_contents" role="presentation" style="height:100px">
    <iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="WYSIWYG-Editor, P8_STR_BEARBEITUNG, drücken Sie ALT 0 für Hilfe." style="width:100%;height:100%">
    <html lang="de" dir="ltr">
    <head>
    <body id="ckeditor" class="ckeditor cke_show_borders" contenteditable="true" spellcheck="true">
    </html>
    </iframe>
    </td>
    </tr>
    <tr role="presentation" style="-moz-user-select: none;">
    </tbody>
    </table>
    </span>Edited by: skahlert on 13.04.2012 10:53

  • Display instantly the length of the text entered in the rich text editor

    Hi everybody,
    I'm developing an apex application with apex 4.1.1 and Oracle 11.2.
    I have a page in which I have a form that allows to create a new message on the database.
    A message has a title, description, text and date.
    For the text I use the item "rich editor text". The problem is that item doesn't show the length of characters entered (character counter for the textarea). In the database the corresponding column is varchar2(2000). What I do is a validation after submit that checks if the limit 2000 was exceeded or not.
    But what I want to do more is to display instantly the length of the text entered in the editor. I have tried to do that through a dynamic action. But the event "onChange" for the item "rich text editor" didn't work.
    Has anyone any idea about that issue?
    Thanks for helping.
    Kind regards,
    Edited by: Khadija Khalfallah on Apr 25, 2013 4:06 AM

    sorry about that, I missed that tidbit in your OP... well I think there is a good reason why there isn't a count character option -- due to the hidden "html" characters responsible for the "richness" (bold/color, etc) applied to the text would be difficult to count true characters.. if I was bent on doing this, I'd continue using the item you are using, but have a HIDDEN text area that is updated via javascript onkeyup for each keystroke (again, keeping in mind you'd have to filter certain keys) and then that intelligence could be used. I would probably dig through the javascript responsible for the rich text editor (is it still fckeditor??) -- there might already be code in there that isn't clearly visible to you that does this already.. alas, I see now the validity of your challenge.

  • Rich text Editor and XSS

    We have started to use rich text editors within our application and there is a nice little feature that will escape script tags on insert into the database:
    i.e the code:
    <script>alert(1);</script>is stored in the database escaped.
    This is great as it guards against Cross Site Scripting as the value is treated as text and not evaluated as script when rendered out of the database.
    If however you edit your escaped text in source mode within the editor and replace this with the original un-escaped text, the DML procedure to get the values into the database do not escape the values. I was wondering if there is a reason why text is escaped of script tags in a rich text editor but not when the RTE is switched to Source Mode.
    If this is a bug, I can raise an SR.
    Regards
    Duncs

    user12601765 wrote:
    I need to allow users to create content...I am using APEX 4.1 and am a non-technical user.Sounds like a use case for Websheets.
    And update your forum profile with a real handle instead of "user12601765".

  • How to insert a picture into the Rich Text Editor

    hi,all
    I want to make a Press Releases page,that means I have to use the the Rich Text Editor.In this item,I dont know how to quote a picture into this field.though i know there is a picture icon in this field,and when i press it,it can pup up a window.That is the Image Properties Window,under this window,there is a URL text field.But I dont know what to fill in this field,I mean,I dont know what the URL link is .can you just give me a picture URL sample ?
    is it like "#APP_IMAGES#136_1_1.jpg" or something else ?
    hope to hear from you.thanks ...
    best regards
    hlee
    Edited by: hlee on 2011-3-30 下午8:04

    Hi,
    There is three types of images reference in oracle apex.
    1 Standard image -> url reference is -----> #IMAGE_PREFIX#menu/books_64.gif
    2 Workspace images -> url reference is ------> #WORKSPACE_IMAGES#java-icon.jpg
    3 Application images -> url reference is ------> #APP_IMAGES#JqueryIcon.jpg
    hope this helps you
    Thanks,
    Jaydip Bosamiya
    +91 - 76000 23053
    [http://jbosamiya.blogpost.com|http://jbosamiya.blogpost.com]

  • Rich Text Box Issue - Expand to show all Text

    Hi everyone
    I'm having a pretty frustrating issue with the rich text box when viewing a line item (not when editing the item, but viewing the item)
    I want my rich text box to expand with the text, which I have changed in the options on InfoPath with the "Expand to show all text" scrolling option. However, in IE, the table row will expand, but the actual rich text box will not and I'll have
    a scroll bar there and you cant see all of the text at one time. If I look in Chrome, then it works the way I want and I can see all of the lines of text that were entered into the rich text box.
    The only solution for IE to work correctly is to change the Display settings to "Enable enhanced rich text content...". But the big issue with that is now you can no longer highlight the text (the highlight disappears right after highlighting it),
    and the users will need to copy text from the text box, so it renders the "enhanced" rich text box useless for us
    It's kind of a lose-lose situation that I'd love to find the solution for

    I guess a better solution would be how can you highlight text from an enhanced rich text box, because changing these to "rich text box" gets rid of font colors in the pre-existing data.
    The original problem was that they couldn't highlight text unless they went into edit mode

  • Rich Text Editor Options

    I am working on a project that needs a Rich-Text Editor with
    ability to insert tables, images, and more complex editing features
    such as what FCKEditor provides but ideally that was built with
    Flex in mind. Is there such an editor available? I have seen a few
    options but nothing that really matched the functionality of
    FCKEditor for example.
    Thanks

    Hello,
    I was looking for flex version of the FCK Editor,
    unfortantly, I could not find a fully complete solution, but I
    found the following which might help you:
    1.
    http://flashtexteditor.com/flexdemo/full/
    2.
    http://drumbeatinsight.com/examples/htmlcomponent/editor/HTMLWithRTE.html
    L.L.

  • RIch text forum issue since reinstall of OS

    Ever since I reinstalled my system software (10.4.11), I have been unable to utilize rich text editor options available for forum posting. (not this forum - about.com is one of them). In Safari, the editor toolbar is non-existent when posting/editing a post, and my individual paragraphs display as one huge paragraphs rather than individual ones. I'm not having this problem in Firefox. In Firefox, the rich text editor appears (bold, italic, etc. buttons), as do options for "design" and "HTML"—all missing in Safari.
    Previous to the reinstall, I was not having this issue in Safari. Paragraphs were created by hitting "return", not inserting html code.
    I'm wondering if there is a setting, or plugin, that was present in my old system that did not get installed, which is contributing to why Safari has omitted these options as opposed to Firefox.
    Thanks!

    No I haven't tried another mouse, but the malfunctions started as soon as OSX 10.6.4 was installed, so I deduced that it was a software rather than a hardware issue. I will however try another mouse.

  • Rich text output?? Using FormattedTextEdit Element in NW 7.02

    So SAP now gives us a cool element that allows users to input text using a limited number of formatting options (bold, italics, header size 1/2/3, Indent, bullet).
    We currently use interactive forms to print out several different project forms. However, mgmt really wants to display this rich text on the PDF.
    Searching high and low, there apparently is no good way to display formatted text in adobe interactive forms.
    We thought about just building the output form as a WDA application - however, this presents other problems such as page breaks.
    Does anyone out there know of a way to get formatted text out of SAP onto a PDF/other form output?

    Thomas,
    Thanks for the reply. We've had success in the past (NW 7.00) with passing those SAPScript text objects to Adobe for formatting.
    Is this only available for interfaces define as data dictionary? I don't see the option to create a TEXT node in WDA when my interface is defined as XML-based.
    We have become heavily invested in AIF, and it's hard to imagine that something as simple as RTF can't be easily rendered somehow outside SAP. We were hoping that with 7.02, an easier method would be available.
    Edited by: Robert Phelan on Mar 9, 2011 3:23 PM

  • How can I create template documents for non-InDesign users to edit the text of later?

    I'm looking to produce a small system for people within my company to edit and print labels as needed that comply with our internal design standards. I would like to use InDesign to produce a few templates for labels that people could then edit one or two fields later on, things like item name and ID number. I'm not averse to producing a small application in XCode that users can start up, enter their data and it saves the printer-ready label sheet to their desktop. I started out using Acrobat Pro, but I'm running into trouble embedding fonts for use in form fields, centering text, and outputting a filled-in pdf for print use, and not a form that submits info to an email or server. If InDesign is the wrong tool for the job of setting up a template like this, please feel free to suggest another route.

    I would direct you to the Acrobat forums, personally. You can enable rich-text formatting of Acrobat form fields from within Acrobat Pro, and also IIRC embed fonts for use in form fields. If you can spec out what you mean by "fine detail that we'd need" then we, or someone over at the Acrobat forums, can tell you whether or not rich text in Acrobat forms will work for you. I suggest this to you because centering text for Acrobat form fields is dead easy, so I suspect you've not investigated the tools available in Acrobat after you've exported the PDF from InDesign.
    Post-export PDF data merge sounds like, I dunno, variable-data printing? which doesn't sound like it would fit your case.

Maybe you are looking for

  • Creative MediaSource 5 is now officially available for download (22 Dec 20

    I just saw that the latest (dated 22 Dec 2006) Creative MediaSource 5 and its various plugins are now officially available for download at your respecti've product download sites. The main Creative MediaSource 5 Player/Organizer: Creative MediaSource

  • Best Practice for Updating children UIComponents in a Container?

    What is the best practice for updating children UIComponents in response to a Container being changed?  For instance, when a Canvas is resized, I would like to update all the children UIComponents height and width so the content scales properly. Righ

  • 9.2 create Database fails in sql.bsq

    I have installed Oracle 9.2.0.1.0. It appears to have installed correctly. I am attempting to create a new database. The script sql.bsq in %ORACLE_HOME%\rdbms\admin appears to be trying to create a cluster around line 1329. I don't use clusters (per

  • Login Error after installing Lion and migrating from time machine

    I cannot log into Lion under my user setting, I am getting the error: "You are unable to login to the File Vault User account {name} at this time." Apparently I did not turn off file vault before upgrading to Lion and when I set up Lion I did not mig

  • HT204406 iTunes match not loading on my iPhone 4

    i am having a problem with the iTunes match not loading on my iPhone 4, once in iTunes it just shows the iCloud logo, and does not load all my albums/song etc.