Preventing stripping style in rich text (rte)

I would like to customize Rich Text so that it accepts and does not strip <style> tags
I feel I could use the beautifier node (htmlRules>serializer>beautifier) like referenced here  : http://dev.day.com/docs/en/cq/current/widgets-api/output/CQ.form.rte.HtmlSerializer.html
But I could not find any example to program such a function with what parameters exactly, etc..
Please help me if you have any experience in it.

Beautifier is not going to work:
function(context, domElement, beforeElement) {
     if (domElement.nodeName.toLowerCase() == 'style') {
          alert('style !!!');
... and it does not alert.
It means that the tag <style> and content are stripped even before the serialization starts.

Similar Messages

  • Custom styles in Rich Text Editor doesn't work in custom list

    Hello, i have list, where one of collumns is formatted multiline text and while i edit in collumn i can't use all rich text styles, and custom RTE styles too. So how i can activate full features of RTE?

    Hi Maksim,
    Based on your description, my understanding is that you want to use custom styles in multiple lines of text field.
    I recommend to check if the column is allowed to use rich text in the custom list.
    Go to List settings > click the column under Columns > check if the Enhanced rich text (Rich text with pictures, tables, and hyperlinks) is selected.
    By the way, you can refer the link below to add custom styles to the ribbon in SharePoint:
    http://rules.ssw.com.au/SoftwareDevelopment/RulesToBetterSharePoint/Pages/CustomStylesForRichHtmlEditor.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How do I apply a style to the rich text editor in 10.1.2

    I am trying to add text items to a portlet. How do I maintain the style for item text?

    that implies to constrain the styles in the RTE (instead proposing too much choices : font, size etc..)
    A method:
    customize the RTE by reducing the styles to a choice between standard HTML styles (header 1, header 2, body text, paragraph,..).
    Then map these styles to the css styles propsed by Portal.
    As a sample, get all the css from your portal by typing:
    http://<you.machine>/pls/portal/PORTAL.wwv_setting.render_css?p_lang_type=NOBIDI&p_subscriberid=1&p_styleid=12&p_siteid=0&p_rctx=P
    for RTE customizing: http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_10gr2_features.pdf
    Patrick.

  • Using a rich text editor to style a Flash text field

    I've been trying to build a user interface that would allow someone to change the content of a dynamic field (loaded from a text file) using a rich text editor. However the editor inserts inline css style tags like <span style="text-decoration: underline;"> which Flash aparently can't understand. If the editor were instead to insert the following: <span class="ul"> where the stylesheet defined it as:
    .ul {
    text-decoration: underline;
    display: inline;
    then everything would be fine. But it doesn't and I can't change it.
    I am currently using a rich text editor that I access as follows:
    var myEditor1 = new YAHOO.widget.SimpleEditor('editText', {
        height: '600px',
        width: '700px',
        dompath: true, //Turns on the bar at the bottom
        handleSubmit: true
    The editor above is "applied" to a textarea within an html form. Then the text is saved to a text field with the embeded styles.
    Any ideas on how I handle this so the user doesn't have to insert css rules by hand?
    thanks much

    Does anyone know of a richtext editor that uses just html tags (not css like <span style="text-decoration: underline;">) or that uses css styling that Flash as3 can understand?

  • RTE Rich Text Editor

    Hi Guys,
    Anyone aware of a stable RTE Rich Text Editor code that can
    be included in a record update page?
    I need to have a RTE that allows for multiple fields. Most
    only seem to allow for one field and do not work well with ASP code
    and their Javascript.
    Any suggestions welcomed please.
    Thanks Jules

    The TinyMCE "fine print" says it requires additional
    extensions when using
    FireFox for "some functions"
    <%= Clinton Gallagher
    NET csgallagher AT metromilwaukee.com
    URL
    http://www.metromilwaukee.com/clintongallagher/
    "darrel" <[email protected]> wrote in message
    news:e3q54u$2v1$[email protected]..
    >
    >> Anyone aware of a stable RTE Rich Text Editor code
    that can be included
    >> in a
    >> record update page?
    >>
    >> I need to have a RTE that allows for multiple
    fields. Most only seem to
    >> allow
    >> for one field and do not work well with ASP code and
    their Javascript.
    >
    > Who's 'their' javascript?
    >
    > As for text area replacements, Xstandard is great, but
    not javascript
    > based.
    >
    > For javascript ones, I've recently started playing with
    TinyMCE. Seems OK.
    > By default, it lets you use it on all textarea boxes on
    the page.
    >
    > -Darrel
    >

  • Using rich text editor (RTE) for custom applications

    Our users enter texts on two places:
    1) In Oracle Portal in text-items using the Rich Text Editor.
    2) In text-fields in a custom application using html-tags <textarea>blabla</textarea>. For formatting the users currently have to type in html-tags themselves. Now we want to provide them an html-editor.
    We would prefer to use the Rich Text Editor also for the custom application. However, that is integrated in Portal and the java-scripts are not easy to follow.
    Have you tried something similar? So, did you use the Rich Text Editor for your own application? If yes, how?
    If not, a very good alternative would be the qwebeditor (see http://www.qwebeditor.com). Did anybody replace the standard Portal rich text editor with the qwebeditor? In the Portal guides there are instructions about replacing the Portal rich text editor by another editor, but it is not clear if this will also work with the qwebeditor.
    Thanks for your respons !
    Best regards, Jan Willem Vermeer

    Hi Jan,
    I have configured FCKeditor in a few clients, and the process it's pretty straight forward, you can use the steps in the document (http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_1014_features.pdf) .
    Basically you download FCKeditor and put it in your apache server (you can put it unde rthe htdocs folder) after that, all you need to do is modify $ORACLE_HOME/portal/images/webword/buildUIHTML.html to reference the FCKeditor JS and CSS, and you can do the same type of reference for your custom apps.
    Regards,
    Juan

  • Rich text prevents formatting of a report

    We are using Crystal Reports Basic 2008 (bundled with VS200*). I have a rather complex report that is used to print a batch of purchase orders. The report includes several subreports that are printing a single rich text field. These are used by our users to attach customized comments to the document.
    Sometimes the documents will not format. We get the dreaded "report could not be submitted for background processing" message.
    I have reviewed the troubleshooting document found [here|http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/50a6f5e8-8164-2b10-7ca4-b5089df76b33?quicklink=index&overridelayout=true]. It does not seem that any of the suggestions indicated are applicable to my situation. I tried the untested solution of adding "WhilePrintingRecords" to all the formulas that would let me, but that didn't help.
    I have a sample document where I can break the document by simply removing a blank line in the rich text. Adding the blank line back fixes the formatting. In working with our customers, we are finding that a change to vertical whitespace can fix the error, but it takes trial and error to figure out which comment on which document fixes the report. This is especially troublesome when the report is a batch that includes 100s of purchase orders. In those cases, we have had to resort to individually submitting each document then fixing the handful that won't process on their own.
    I don't know where to go from here. Any suggestions that others could provide would be appreciated.

    I've got three suggestions;
    1) Make sure you are using SP 1 for CR 10.5. SP 1 is here:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    msi is here;
    https://smpdl.sap-ag.de/~sapidp/012002523100010010692008E/crredist2005_sp1_x86.zip
    2) See if you have the same issue with CR 2008. You can download eval of CR 2008 from here;
    http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
    If CR 2008 works, you have two options;
    a) Upgrade to CR 2008
    b) Create a phone case at the link below and discuss the issue with a technical support rep. It may be that this is an issue that will need to be resolved by QA / R&D for CR 10.5. Be aware that a solution for a fix (any version of CR) may take 6+ months...
    3) If CR 2008 does not work, create a phone case and submit the report with saved data to the technical support rep for testing and possible submission to QA / R&D for a fix.
    Link to a phone case submission;
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300
    Ludek

  • Rich Text Editor with Custom Text Attribute

    Hello All,
    We are using the latest version of Oracle Portal 10G. I have a need to create custom Attributes of the type text to let people enter a lot of text. But when User are in edit mode of an item where this custom attribute is used, the Rich Text Editor is not shown for entering the Text for the Custom Text Attribute. It shows a normal html text area. Has anyone ever used RTE with Custom Attribute?
    I request you guys for help.
    Thanks.

    The Problem with the Custom Attribute is not solved, but I have now compromised with the Situation and now I am not using a Custom attribute.
    Rather, Now I am creating a Custom Item Type using Base Text Type (earlier i wanted to create custom item type at my own without any base item type). In this case now I will not be able to change the Lable of the RTE (that is "Text", when the Custom Item is in Edit Mode), but I hope that my users can understand that much.
    I have created a template for portal pages. In the Template I can edit the Region Properties. When I edit the Region property of the region where I want to display my Custom Items. I get two Tabs on the top, Main and Attributes/Style. ON the main tab I can tell what type of region it should be, width etc, in my case it is item type region. And on the Attributes/Style tab, I can select from the availabe Attributes as which all Attributes I want to display. Here if i select only "Associated Functions" Attribute then normally portal should not render anything by default on the Page. It should rather make a call to the procedure which is associated with the Custom Item and as when I was creating the custom item type, I had clicked on "Display Procedure Results With Item", so portal should now display the result of my Procedure. So far it works without problem.
    But the problem is that the Portal displays the text at its own also. As i have written that Portal should not display anything at its own, this doesn't work in this version of Portal for a Custom Item Type that is made using Base Text Item Type. For all others it has worked till now (I have create 50s of Custom item types).
    You can better understand by going to the following URL. Just have a look between the two dotted lines (Dotted line is also a seperate Custom Item Type). Between the two Dotted Lines is a custom item, in general it would be a Custom News Item having title, image and so on.
    http://sunnode1.edvz.sbg.ac.at:7778/portal/page?_pageid=79,56047&_dad=portal&_schema=PORTAL
    I have really programmed a lot with portal but now at this stage where I am near to end, I am getting problems which are coming from Product. I request you for help.

  • Rich Text Editor: Block cut and paste

    I have a text block where users can type in a statement. If I use the standard default Text Area, I can use Javascript to prevent them from pasting in text (actually, I need to block both cut and paste). This is because the statement has to be typed in manually - not copied from a previous statement.
    However, if I use any of the Rich Text Editors, i can't block the paste command (either CTRL-V or the right-click and "Paste"). Is there any way in either of the editors (FCKEditor or CK Editor 3) to block the ability to paste into the form? I would like to give them some of the additional editting features (spell check, etc) but I can't let them paste.
    Please advise.
    Thank you in advance.

    This may be a result of the fonts the Word doc used.
    Pages does not use an algorithm to 'create' an italicised character from the 'base' version. It can show italics only if the font used contains an italic set.
    Paste and match style pastes only the bare text, and uses the font and other attributes already set at the insertion point in the Pages document.
    Regards,
    Barry

  • 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

  • Changing text size in form field (rich text formatting enabled)

    Hi all,
    I'm hoping someone can help me out here. I've created an interactive PDF with form fields with "Rich Text Formatting" enabled.
    My client has filled in the fields and would like to make the text bigger. When right-click, there are only options to change the text style (bold, italics etc) but nothing to change the text size. I'm not keen on disabling and then re-enabling the "Rich Text Formatting" options as the text have been formatted (bold, italics, superscript, subscript etc) and approved, and this will remove all the existing formatting.
    Can anyone help?
    Acrobat 9.4.6
    Mac 10.6.8
    Cheers,
    Tricia

    Thanks so much!! Really appreciated!
    Strangely enough, I found the Form Field Text Properties dialogue box by randomly choosing "Hyperlink" in the right-click options. Who would have thought!

  • Portal Rich Text Editor in Firefox 3.5 Not Working

    I'm using Oracle Portal Version: 10.1.4.0.0 (Build: 594)
    The text item Rich Text editor works fine in IE 6 and has reduced functionality in Firefox 3.0 (scroll doesn't work). I've just updated to Firefox 3.5 and the text editor doesn't work at all now.
    The user is presented with a grey box where all the text controls are squashed into the top left hand corner.
    The following errors appear in the Error Console :
    Error: element.children.tags is not a function
    Source File: http://xyz.example.net:7778/images/webword/WebWordMenuToolbar.js
    Line: 1
    Error: attachEvt is not defined
    Source File: http://xyz.example.net:7778/images/webword/buildUI1.js
    Line: 76
    (I've replaced our server url with http://xyz.example.net)
    Has anyone else noticed this? Has anyone got any suggestions on what I can do to investigate/fix it?
    Thanks,
    Matt
    Update :
    There is a patch available to potentially fix the Rich Text Editor issues in Firefox
    "The Rich Text Editor Does Not Work Correctly In FireFox" - Metalink Doc ID: 456512.1
    or you can replace the RTE completely with a 3rd party editor :
    "How to integrate third party RTE (FCKeditor) with Oracle Portal" - Metalink Doc ID: 352796.1
    Using FCKEditor may well solve the issues but I only use Firefox for development. Our users use IE6 so I don't want to replace the interface unless I have to.
    Edited by: Matt Hawkins on Jul 15, 2009 1:58 PM

    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.

  • Handling RICH TEXT content on BI publisher report

    Hello,
    I have requirment where I have to handle RICH TEXT content, and show data in report with RICH TEXT formating.
    The RICH TEXT content(with tags) is comming from database CLOB column. Here is the sample XML data.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <DATA_DS>
    - <G_1>
    <ID>1</ID>
    <RICH_TEXT_DATE>'<p' class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 1.15pt">'<span' style="FONT-FAMILY: Arial Narrow,sans-serif; mso-bidi-font-family: bold; Tahoma">'<font' size="3">Testing data for rich text '</font'>'</span'>'</p'></RICH_TEXT_DATE>
    </G_1>
    </DATA_DS>
    Report Output should be below with all the formating:-
    <p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-line-height-alt: 1.15pt"><span style="FONT-FAMILY: Arial Narrow,sans-serif; mso-bidi-font-family: bold; Tahoma"><font size="3">Testing data for rich text</font></span></p> <p></p>So, how to get above output with all formating, Please let me you soultions.
    I am using, Oracle BI Publisher desktop version 11.1.1.5
    Thanks in advance.
    San.

    https://blogs.oracle.com/xmlpublisher/entry/html_in_xml_support
    http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#CHDCEEIJ
    Rendering HTML Formatted Data in a Report : <BR/>  are not being parsed

  • Print PDF rich text editor using BI Publisher

    Hi !
    I have a CLOB field from database, and I store data using a rich text editor, like a MS Word system, here as you know, I can write words in bold format, use differents kind of colors, etc... and use all formatted text that the editor allow me. I haven't problems once save this data into table and restore again, I can see all this data formatted , and I don't loose any property of this formatted text.
    The problem is when I want print this information in the same way that I can see in the rich text editor. I use BI Publisher for generate a PDF, when I send this field for print a PDF, the PDF that BI publisher generate, print only text, prints all characters including generating that text is formatted, for example, if the field is written in bold print "<b>hello</b>" in the PDF generated by BI Publisher see "< b. > hello < / b>".
    Please which is the way for print the same as is displayed in the rich text editor?
    Thanks in advance.
    Edited by: Almogaver on 07-mar-2011 14:35
    Edited by: Almogaver on 07-mar-2011 14:35
    Edited by: Almogaver on 07-mar-2011 14:36
    Edited by: Almogaver on 07-mar-2011 14:37

    Bump Again. I understand how to remove the HTML tags, thats not a problem. The problem is getting the report to print the data from a Rich Text Field stored in a CLOB or NCLOB as formatted text. Is there a "Master Style Template" or "Master Rich Text Field Subtemplate"?
    Richard

  • 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

Maybe you are looking for

  • Skype won't quit...Help!!!

    Help!!! I am using a 13 Inch, Late 2011 MacBook Pro, running OS X Yosemite version 10.10. I had Skype open yesterday and when I try to quit it, it says "Application Not Responding." It doesn't close, reopen, anything.  Please Help!  Solved! Go to Sol

  • TRFC  type conflict when calling the function module

    Hi, When I schedule, it is stucking up with TRFC and giving error message in SM58 as" TRFC  type conflict when calling the function module" . even if I execute the trfc LUWs ,load is not successful. could you please any body suggest for this error. T

  • How to update an array after every iteration?

    Hi, I have a vi that runs fine but the problem is it updates all the data once the vi stops running. I want something like as soon as (for outer for loop) 1 iteration completes it updates the array in front panel, then 2nd iteration it updates again

  • Satellite Pro M30 error in IEEE1394

    Hello... I think i have a problem whit the driver of IEEE1394 I can't find the drive at any part, and the cd of the drivers don't have that driver i don't no how resolve it, and the re-installation of the S.O. don't solve me the problem... Anu trick?

  • The Adjustment Brush in Bridge

    Has the "auto mask" and "show mask" option disappeared in this version or am I just missing it?