How to Change Width of Rich Text Editor

We are attempting to use a rich text editor. By default, the span for the RTE gets a width of 760px. This is much wider than we'd like.
The id attribute of the span control gets set to cke_<PAGE_ITEM_NAME_HERE>, so this jQeury selector should obtain a reference to the control and allow us to change or remove the width attibute
span#cke_P3_DESCRIPTION_2However, what we've notice is that the control does not exist until after the page has been loaded. In other words, if we do this in the "Execute when Page Loads" section, nothing happens
$('span#cke_P3_DESCRIPTION_2').css('width','');We can confirm this by popping up an alert. In the page load section, this yields "0" but, in a button on the page, that gets clicked after the page is open, it yields "1"
alert($('span#cke_P3_DESCRIPTION_2').length);So, since the control isn't actually there at load time, what's the best way to do this?
-Joe

Thanks for this tip, VC! Worked like a charm.
I was having a problem with a rich text field in a modal region in one of the new responsive themes (theme 25). The page dutifully alters the spacing and layout of the page regions as the browser window is made wider or narrower, and the modal region also resizes appropriately. But the CKEditor window within the modal region stubbornly stayed at whatever value it defaults to (30 characters, which I guess translates to the number of pixels mentioned by the OP).
I slightly modified your code below to set the width property to 100% instead of a fixed value and now the editor window expands to fill the available modal region width. Perfect!
Mike

Similar Messages

  • Make changes to the rich text-editor toolbar

    I need to add and remove some functionality of the rich text-editor toolbar. Based on the documentation: "Oracle Portal 10g release 2 - enhanced rich text editor", I can modified the Rich Text Editor (RTE) by modifying a file located in http://<host>:<port>/images/buildUIembed.html. To remove or rearrange a button within the RTE toolbar, I need to modify the drawEditor() function. I was able to do this; however, now I need to add one functionality: add the header format. I want to add the functionality of having "h1", "h2", and "h3" in some type of combo box. I know how to remove, but I am not sure how to go ahead and add this functionality. Any help will be greatly appreciated.
    Thanks,
    Marcelo

    I need exactly this feature too...
    Have you find some information?
    I plan to change to other rich editors (as TinyMCE) but I have no documentation about how to do it...
    :-(

  • Using Rich Text Editor with a Custom Attribute

    Hello All,
    Can anyone please tell me as how can I use the Rich Text Editor with a Custom Attribute?
    I want to create a custom attribute based on text datatype, but when entering the value for this attribute in a Custom Item, portal shows a normal textarea. I want that the user should see the Richt Text Editor.
    Thanks for help.
    Regards

    Hi,
    Can you tell me what steps you are using to produce this, and which Portal version you are using. When I tried it, I wasn't able to reproduce it. Here are my steps:
    1) Created Custom Item Type, based on Text, under
    Page Groups > Shared Objects > Item Types
    2) Selected Three attributes (Description, Name, Publish Date). Note Text and Display Name were already selected
    3) In Add Item Wizard, configured list to allow for my
    custom item type selection.
    4) Then I was able to see the Rich Text Editor when editin
    my custom item type.
    Regards,
    J.

  • How to customize the Rich Text Editor task flow in the doc lib?

    Dear Experts in WCP forum,
    You know that webcenter portal has a feature is called customizing task flow.. so we have client request to customize the Rich Text Editor task flow of the Document library. Such as disable the Format, Font, Size drop down menu of the richtext editor UI.   But after I open the editHTML.jsff of the oracle.webcenter.doclib. the code is like this:
                        <f:facet name="richtext">
                               <af:panelGroupLayout layout="scroll" id="rtepng2">
                                  <rte:editor id="rte" value="#{pageFlowScope.rte.HTMLTextArea}" converter="#{pageFlowScope.rte.HTMLConverter}"/>
                                  <!-- keep region wrapped in the facet to be stretched-->
                                  <af:region value="#{bindings.linksResourcePicker.regionModel}" id="lpr"/>
                               </af:panelGroupLayout>
                            </f:facet>
    So likes that editor in fact is from <rte:editor tag.. my question is how to dig into this <rte:editor  to find its jsff code?  And change the menu inside to do the cusomization for them?
    Is that possible?
    A million thanks here in advance!
    wayne

    Based on the Tag TLD reference the editor tag has the following attributes:
    <tag>
        <description>An ADF Wrapper to use the CKeditor&gt;</description>
        <name>editor</name>
        <tag-class>oracle.webcenter.doclib.rte.internal.taglib.RteEditorTag</tag-class>
        <body-content>JSP</body-content>
        <attribute>
          <description>&lt;html&gt;the identifier for the component.  The identifier
    must follow a subset of the syntax allowed in HTML:
    &lt;ul&gt;
    &lt;li&gt;Must not be a zero-length String.&lt;/li&gt;
    &lt;li&gt;First character must be an ASCII letter (A-Za-z) or an underscore ('_').&lt;/li&gt;
    &lt;li&gt;Subsequent characters must be an ASCII letter or digit (A-Za-z0-9), an underscore ('_'), or a dash ('-').&lt;/li&gt;
    &lt;/ul&gt;&lt;/html&gt;</description>
          <name>id</name>
          <rtexprvalue>false</rtexprvalue>
        </attribute>
        <attribute>
          <description>The initial value of this component.</description>
          <name>value</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <deferred-value>
            <type>java.lang.String</type>
          </deferred-value>
        </attribute>
        <attribute>
          <description>a converter object</description>
          <name>converter</name>
          <deferred-value>
            <type>javax.faces.convert.Converter</type>
          </deferred-value>
        </attribute>
        <attribute>
          <description>
            this is a pass through to get/set the CKEditor ToolbarSet property
          </description>
          <name>toolbarSet</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <deferred-value>
            <type>java.lang.String</type>
          </deferred-value>
        </attribute>
        <attribute>
          <description>
            this is a pass through to get/set the CKEditor height property
          </description>
          <name>height</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <deferred-value>
            <type>java.lang.String</type>
          </deferred-value>
        </attribute>
        <attribute>
          <description>
            this is a pass through to get/set the CKEditor width property
          </description>
          <name>width</name>
          <required>false</required>
          <rtexprvalue>false</rtexprvalue>
          <deferred-value>
            <type>java.lang.String</type>
          </deferred-value>
        </attribute>
      </tag>
    Which means that if you want to change the toolbar you have to check what is the type of toolbars the CKEditor uses, I can tell you that there are two defaults: Basic and Full and I believe the tag uses a custom toolbar called WC by default.
    So if you want to change the toolbar to only show basic, change the toolbarSet property to Basic to make the final result looks like <rte:editor id="rte" value="#{pageFlowScope.rte.HTMLTextArea}" converter="#{pageFlowScope.rte.HTMLConverter}" toolbarSet="Basic" />
    This is not tested, this is only a few insights I got reading about CKEditor

  • How to extend Rich Text Editor in Portal 10.1.4

    Is there a note that explains how to extend the InsertImage feature of the rich text editor in portal 10.1.4.
    It was very straightforward in 10.1.2, but the RTE has changed with 10.1.4 and I didn't find an updated version of the following technical note: http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_10gr2_features.pdf
    Than'ks

    Hi Raphael,
    In fact my goal is to extend WebWord Editor and not replacing it. For example I want to add a new Image Picker in WebWord, what I had done in 10.1.2, allowing a user to select an image file from a Portal Page. It was as simple as replacing an url reference in BuildUIEmbed.html (by default pointing to a static image picker page).
    It seems not so simple in WebWord, as the URL of the image picker in BuildUIEmbed.html is replaced by a "RAW HTML static source" in the javascript "popup.js" (see InsertImage() function)
    I'd like to replace this raw HTML by an url pointing to a dynamic page browsing my images. I allready have done this dynamic page but I'm not a javascript expert. If you have any ideas ...
    Than'ks anyway.

  • How to configure customized rich text editor in a dialog

    I have a customized rich text editor component in my project which i want to use it in a dialog component.
    I tried by changing the xtype value from 'richtext'  to the customized rich text editor path as '/apps/project1/components/shared/text_rte' but i am not able to see the editor.

    See http://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br for your <br> example.  <br/> is XHTML, not necessarily needed in HTML5.

  • 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]

  • I use Juno for my email. How do I turn on the Rich Text Editor and how do I forward messages inline rather than having everything go as an attachment?

    Using Juno I find no way to turn on the Rich Text Editor. How do I turn it on?
    When I forward a message in Juno, everything goes as an attachment. How do I get messages to go inline?

    Another thing to remember is the phone is actually usable for 911 calls and maybe others. Not a real good idea. Especially for a child.
    It would depend however on the age of the child.
    Good Luck

  • How to develop a rich text editor using Web-Dynpro?

    Hello Everyone,
    I am new hire,
    today I got a task from leader to develop a rich text editor using Web-Dynpro,
    Because I just finished the BC400 and NET310 training and lack of expericen in ABAP,
    Can anyone tell me the main idea to accomplish the task?
    Thank you very much.
    Best Regards,
    Derek

    Have you looked at the standard UI Element
    [FormattedTextEdit|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/44/2772f505605447e10000000a422035/frameset.htm] it's not perfect, but it does allow some simple formatting.
    Anything beyond this - you're going to need to use an Island.
    [Thomas Jung's Demo of using an Island to provide a rich text editor|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0c91fc0-932d-2c10-4ca7-f5774950c8e3]
    Cheers,
    Chris

  • How to upgrade PORTAL 9.0.4.1 – ENHANCED rich text editor

    Hi, we are currently in Oracle 9ias rel 2 environment. The RTE for adding the item is not supporting relative path. PORTAL 9.0.4.1 patch comes with ENHANCED rich text editor which supports the relative path. However, you have to be on 10g to apply this patch. We just want to upgrade this RTE to the enhance version. Does any one know whether there is a patch for this or any ides to resolve this problem. This is a workaround for this by simply disabling the RTE but it is not convinent for our business users.
    Thanks in advance
    Frank

    hi frank,
    the new version of the RTE is only available from 9.0.4.1 onwards. it is not available in 9.0.2.x.
    we have a white paper on OTN:
    http://www.oracle.com/technology/products/ias/portal/pdf/cm_rte_9041_features.pdf
    regards,
    christian

  • 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?

  • Max characters in a Rich Text Editor?

    Is there a "hard limit" on the number of characters I can enter into a Rich Text Editor?
    My testing suggests that you can only have 4000 characters. If i submit more than 4000 i.e. 4001, I get the following error message:
    ORA-01461: can bind a LONG value only for insert into a LONG column
    The data type I am trying to insert into is of type CLOB (which if memory serves can store upto 4 GIG).
    We are using Oracle Application Server (Apache and MOD_PLSQL) so I imaging that there is possible a limit here as well with how much data can be posted.
    Thanks for any help.
    Duncs

    Hi Duncs,
    I tried to reproduce your problem on our internal development system but was not able to do so. What did I do?
    1) Created a new table with the following statement
    CREATE TABLE  DEPT_WITH_CLOB
       (     "DEPTNO" NUMBER(2,0),
         "DNAME" VARCHAR2(14),
         "LOC" VARCHAR2(13),
         "MORE_TEXT" CLOB,
          PRIMARY KEY ("DEPTNO") ENABLE
       ) ;2) Created a new application with a "Report and Form" based on the DEPT_WITH_CLOB table.
    3) Modified P2_MORE_TEXT to use Rich Text Editor as item type.
    4) Executed the page and entered a text which was more than 18,000 char long
    5) Clicked apply changes and everything was stored without a problem.
    Can you provide more information about your system?
    1) APEX version
    2) Database Version
    3) Do you use database links in your apps or do other applications use database links?
    4) If yes, which database version are those databases?
    5) If you are able to reproduce the problem on apex.oracle.com that would also be of great help.
    Thanks
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Rich Text Editor bug

    Hello,
    My flex website at
    http://www.theplaygrounds.co.uk/The_Playground.swf
    throws the below error when I click on Contact or B/I/U on the Rich
    Text Editor.
    ReferenceError: Error #1069: Property string not found on
    mx.controls.RichTextEditor and there is no default value.
    at
    mx.validators::Validator/mx.validators:Validator::getValueFromSource()
    at mx.validators::Validator/validate()
    at mx.validators::Validator/::triggerHandler()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::RichTextEditor/__textArea_valueCommit()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()
    at mx.controls::TextArea/set text()
    at
    mx.controls::RichTextEditor/mx.controls:RichTextEditor::commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/::validateProperties()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()
    What is actually the bug here?
    Also, on the contact page, I need to be able to scroll down
    for the submit button. How could I implement this? I've tried
    everything.
    Thanks

    Hi,
    I have this code for validation:
    <mx:StringValidator
    id="nameValidator"
    source="{userName}"
    property="string"
    minLength="2"
    />
    <mx:StringValidator
    id="nameValidator1"
    source="{userComment}"
    property="string"
    minLength="2"
    />
    <mx:StringValidator
    id="nameValidator2"
    source="{userEmail}"
    property="string"
    minLength="2"
    />
    This acts on the contact form's forms, as these are the only
    textboxes in the web app.♠
    The contact form code:
    </mx:Canvas>
    <mx:Canvas label="Contact" width="100%" height="100%"
    verticalScrollPolicy="off" backgroundAlpha="0.7">
    <mx:Panel
    title="Feedback"
    left="10" top="10" right="10" bottom="10"
    layout="absolute"
    verticalScrollPolicy="on">
    <mx:Script>
    <![CDATA[
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    private const NL:String = "\r";
    private function submitButtonClickHandler
    (event:MouseEvent):void
    var userDetails:String = "You submitted the following
    details:" + NL + NL;
    userDetails += "Name: " + userName.text + NL;
    userDetails += "Email: " + userEmail.text + NL;
    userDetails += "Hide email? " + (hideEmail.selected ? "Yes"
    : "No") + NL + NL;
    userDetails += "Comment:" + NL + NL + userComment.text;
    Alert.show (userDetails);
    private function emailButtonClickHandler
    (event:MouseEvent):void
    var msg:String = "You can use the navigateToURL() method to
    open a URL"
    msg += " using a call similar to the following:\r\r";
    msg += "navigateToURL (new URLRequest
    ('mailto:[email protected]'));";
    Alert.show (msg);
    ]]>
    </mx:Script>
    <mx:Panel
    title="Leave a comment"
    layout="absolute"
    width="523" height="573" x="10" y="10"
    backgroundColor="#E9ECE7" verticalScrollPolicy="on">
    <mx:Label text="Name:" x="10" y="12"/>
    <mx:TextInput id="userName" y="10" right="10"
    left="90"/>
    <mx:Label text="Email:" x="10" y="43"/>
    <mx:TextInput id="userEmail" y="41" right="10"
    left="90"/>
    <mx:Label text="Comment:" x="10" y="99"/>
    <mx:CheckBox
    id="hideEmail"
    y="76" left="90"
    label="Hide my email address"
    selected="true"
    />
    <mx:RichTextEditor x="90" y="126" title="Leave a comment"
    id="userComment" text="Leave A Comment" enabled="true"
    verticalScrollPolicy="auto">
    </mx:RichTextEditor>
    <mx:ControlBar x="120" y="258"
    horizontalAlign="center">
    </mx:ControlBar>
    <mx:Button
    id="submitButton" label="Submit"
    click="submitButtonClickHandler(event);"
    x="355" y="79" fontSize="10" fontWeight="bold"
    mouseDownEffect="{shrink}" mouseUpEffect="{revert}"
    fillAlphas="[0.0, 0.0, 0.0, 0.0]">
    </mx:Button>
    </mx:Panel>
    <mx:Script>
    <![CDATA[
    import flash.events.MouseEvent;
    import mx.controls.Alert;
    private function submitButtonClickHandler1
    (event:MouseEvent):void
    var userDetails:String = "You submitted the following
    details:" + NL + NL;
    userDetails += "Name: " + userName.text + NL;
    userDetails += "Email: " + userEmail.text + NL;
    userDetails += "Hide email? " + (hideEmail.selected ? "Yes"
    : "No") + NL + NL;
    userDetails += "Comment:" + NL + NL + userComment.text;
    Alert.show (userDetails);
    ]]>
    </mx:Script>
    Apologies if this is a basic bug, as I am new to the Flex
    platform.
    Thanks for your help♠♠

  • 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 not showing up

    Hi. I've installed OracleAS 10g Rel 2.
    When I try to add text using IE6 the text area is just gray. I have tried to change different attributes in IE but its still gray. I dont know how to debug IE either, I normally use firefox.
    Any ideas how I can debug IE, or what I should change on my IE to make the rich text editor show up.
    (btw, the installation is on my laptop, using XP pro. Not supportet but generally works fine. I know ppl at Oracle have this working on XP so it should not be the issue).

    hi terje,
    i just tested this on my 10.1.2 installation using IE6 and it works fine. so it seems not to be any general issue.
    2 things i would check:
    - does a java scrip error occur on the page when you add/edit a text item. you see this in the left lower corner of the browser.
    - check the log files on the application server mid-tier.
    - but before starting debugging i would go to another pc and try to access your portal from there. this will show you if your client machine is the problem or if the portal installation is the problem.
    regards,
    christian

Maybe you are looking for

  • Excel format options

    We're using Crystal 11.5 & 12 .NET interface. We want to set certain export formatting options for the Excel Data Only export format and have not been able to find the appropriate properties or methods in the documentation.  We have used the followin

  • Trying to resolve ntlmv errros mounting CIFS network shares via fstab

    Kernel: 3.4.2-2 WM: Openbox About 6 months or so ago, which was after about a year on my current install with no issue, I began getting an ntlmv error when auto mounting samba shares at boot.  Everything still worked but I continued getting an error

  • Do we have anything similar to GP in ABAP?

    Hi Experts, I have to design an application in such a way that application guides the user step by step. This needs to be developed in the ABAP language. An approach which is similar to Guided Procedures in portal would be good. Do we have any simila

  • Topic Content Pane ( div ) overlaps SideBar (TOC/Index) Pane after publishing Browser-based AirHelp, while locally it works fine.

    Hi, I have been facing this issue where the Topic Content Pane (<div>) overlaps the SideBar pane every time I try to open the Browser-Based AirHelp after it has been published on a server. Although, if I view the same locally on my machine, it appear

  • Invoice Retainage in Payables

    Hi All, We are in the process of implementing R12.0.6. We are not using Oracle Services procurement, but still would like to use the Invoice retainage functionality as the business witheld a portion of payment for some Procurement contracts. For exam