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.

Similar Messages

  • My default search engine is Google and I deleted Bing. Whenever I open a new tab, Bing is displayed and it takes the focus so if I am trying to type a URL in the new tab, it is entered in the damn bing search box. HOW DO I GET RID OF THAT ACCURSED BING?

    My default search engine is Google and I deleted Bing from the Search Providers. Facebook is set as my home page. Whenever I open a new tab, a Bing search box is displayed on the page and it takes the focus so when I am trying to type a URL in the new tab, it is entered in the damn bing search box. HOW DO I GET RID OF THAT ACCURSED BING

    Swarnava, thank you very much! that did it and I am Bing-less . . . OH HAPPY DAY!! WOOHOO!!!! thank you, thank you, thank you!

  • How to retrieve the Text entered in the Text Box provided in the UWL Inbox

    Hi Experts,
    I have created a workflow with user decision task. for that task in UWL inbox i provided a text box using XML Code, but i couldnt retrieve the Text entered in the text box. I hope the text will automatically upload in the "_Attach_object" container element of the Workflow,  but it couldnt upload in that,  If anyone can help me to solve this issue.
    Thanks & Regards,

    Hi,
    <ItemType name="uwl.task.webflow.decision.TS91100000" connector="WebFlowConnector" defaultView="DefaultView">
    <ItemTypeCriteria connector="WebFlowConnector" externalType="TS91100000"/>
    <Actions>
      <Action name="accept" groupAction="yes" handler="UserDecisionHandler">
       <Properties>
        <Property name="decisionKey" value="2"/>
        <Property name="UserDecisionNote" value="true"/>
       </Properties>
      </Action>
      <Action name="reject" groupAction="yes" handler="UserDecisionHandler">
       <Properties>
        <Property name="decisionKey" value="1"/>
       </Properties>
      </Action>
    </Actions>
    </ItemType>
    I have implemented the above code and i got the Text Box,  but now the problem is i couldnt retrieve the
    text entered in the Text box.  I checked in the  attachobjects   container element related to the task and the subsequent task but the text is not appearing there.  Can you help me to get the text entered in the text box.
    Thanks & Regards,
    Manikandan.S

  • When i go to send a new text, the text field isn't blank.  There is already text entered in the message body.

    When i go to send a new text, the text field isn't blank.  There is already text entered in the message body that I have to go in and delete before typing my new text.  this prevents me from forwarding anything through text because if I get something I wish to forward, selecting forward as an option always brings up the same junk just like when trying to send a new message.  How can i remedy this?

    Here it goes -
    1) Download iBackupBot: http://download.cnet.com/iBackupBot/3000-2141_4-10969873.html
    2) Plug phone into computer and run backup
    3) Use "Explorer" box to find Messages: HomeDomain/Library/SMS/Drafts/(null).draft/
    4) In "Null Drafts" there is a file "message.plist"
    5) Double click to open, (cancel the popup if you did not purchase the iBackupBot) and you will see the prepopulating message on the <string> line 6
    6) Delete the offending text, leave all code
    7) Close text editor
    8) Right click on message.plist file and select "Restore selected item(s) to device"
    9) File will be restored to your phone and it will restart itself.
    10) Voila! Now it is time to consider that Windows phone....:)

  • When I place photos on the cloud to share with friends, the photo IDinformation I have entered with the photo does not transfer.  Is there a way to have the text follow the photo in the cloud?

    When I place an Aperture photo on the cloud to share with friends, the idenfifcation information I have entered for the photo does not transfer to the cloud and thus my friends get only the photo.  Is there a setting I am missing that would allow the text to go along with the photograph?

    The photo stream will transfer the EXIF information set by the camera and the filname/version name. Try to get any information you want to transfer into the filename by batch changing the filename with "write to master" enabled. Aloso, you can set a comment, when sharing the image to the Photo Stream.

  • Why the mac claim that the user password that i enter in the smb file sharing settings is incorrect although it is correct?

    why the mac claim that the user password that i enter in the smb file sharing settings is incorrect although it is correct?

    Maybe the Caps Lock key is lighted?
    Is your Apple ID password the same as your user password?

  • My Mac crashed.  Can I retrieve the data somewhere that was entered before the crash?

    I use numbers to organize all of my work.  I hadn't saved the new information for about a day and a half and my Mac crashed.  That's never happened before.  When i restarted the computer, all of the new data that was entered since the last save was gone.  Is there a way to get that information back?  Isn't there an "autosave" on numbers?  I just feel like I haven't looked in the right place.  I pretty much NEED this info to do my job today and I'm trying not to flip out.  Can someone please help???

    I hope that now you will understand that computers aren't perfect tools and that if you don't take care to save your work from time to time, the chance to loose it is not null.
    If you are unable to press cmd + s by yourself every ten minutes, you may
    go to my iDisk :
    <http://public.me.com/koenigyvan>
    Download :
    for_iWork:autoSave_iWork.zip
    Expand it and install the resulting application.
    Yvan KOENIG (VALLAURIS, France) 12 mai 2011 15:03:24

  • How to copy paste a table structure from word document into Text Field [field format Rich Text]

    In our current implementation we have a Blank page with Text Field [field format Rich Text] on generated PDF Document.
    Once the PDF document is generated, user can copy paste content form any word/rtf document to into the Text Field.
    Pasted content retains all text formatting [Bold, Italic, Underline, Indentation] except the Table format. Text Field is removing table metadata from the content and converting it into plant text.
    Is there anyway to copy paste table structure as it is from word document into Text Field?

    Hi,
    I don't think you can! While you can paste formatted text into the rich text field, the table metadata means nothing to the textfield.
    Niall

  • On the start page, text entered in the search field is ignored. Why?

    I am using Firefox 21.0, Windows Vista and private browsing. I can search as normal by entering text in another search bar but what is wrong and how can it be fixed?

    Type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key to open the <i>about:config</i> page, just like you open a website by typing the URL in the location bar.
    *If you see a warning message then you can confirm that you want to access the about:config page.
    *use the Search bar at the top of the about:config page to locate preferences more easily
    *preferences that have been modified and do not have the default value show as bold (user set)
    *preferences that are user set (bold) can be reset to the default value via the right-click context menu
    *preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean) or by double-clicking the line with the pref
    *preferences can be created via the right-click context menu: New -> String, Integer, Boolean
    *http://kb.mozillazine.org/about:config
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Bookmarks that have both a keyword assigned to them and are set to open in the sidebar will not open in the sidebar when keyword is entered in the location bar. Why?

    I am using version 3.6.10. Windows 7.
    But I have had this problem for years.
    Have the same result in a clean installation.
    Have the same result in XP, also in a clean installation.
    When creating a bookmark, you have the option to
    1. add a KEYWORD, and
    2.the option to check the box that says "load this bookmark in the sidebar."
    If a bookmark has BOTH a keyword assigned to it AS WELL AS a checked box to "load this bookmark in the sidebar", then
    1. it WILL NOT open in the sidebar when the keyword is entered in the locationbar.
    2.It WILL open in the sidebar if you click on the bookmark directly from the bookmark menu, toolbar, or the like.
    Is there any plan to fix this? Is there an extension to fix this? A patch to fix this?
    It's kind of ridiculous that such a bug still exists.
    more and more tech sites are advocating the time saving qualities of being able to load mobile and iphone sites in the sidebar - like gmail, google calendar, twitter, facebook chat, igoogle gadgets, widgets, meebo, and almost every other site either via it's mobile version or by converting an igoogle gadget or just using and iframe. it makes me nuts that I have to shove all my bookmarks that are sidebar-loading to be within view on the bookmark toolbar. help!

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • How to get the length of a field value, not the length of DB's CHAR(20)

    Hello.
    I'm trying to handle a String from my DataBase and get its length:
    String myName;
    int i;
    PreparedStatement sql = Conn.prepareStatement("SELECT NAME FROM MY_TABLE");
    ResultSet results = sql.executeQuery();
    results.next();
    myName = results.getString("NAME");
    i = myName.length();
    out.println("The value is " + myName + " and the length is " + String.valueOf(i) );
    I get:
    " The value is Tom and the lengh is 20 "
    20 is the length of the field (it's a CHAR (20) ), but I would like to get the length
    of 'Tom'.
    On other hand, I would like to detect if this value is 'Tom' or not, but trying with:
    if (myName.equals("Tom")) {...}
    or
    if (myName == "Tom") {...}
    There is no response.
    Any experience?

    myName = results.getString("NAME");
    if(myName!=null) myName = myName.trim(); //Take out trailing spaces
    i = myName.length();Sudha

  • Proceedure to get the Birthdays and Anniversar​ies entered into the Contacts

    I am using blackberry Z10, OS version 10.3.12243. Please inform the proceedure to get the Birthdays and Anniversaries entered into the Contacts, automatically updated in the Calander.
    This updation is now limited to my facebook friends. 
    Subject Title edited to reflect new topic.

    @purnrndu You probably should have started your own thread.
    Are you saying you have birthdays entered for contacts and those do not appear in Calendar? If that is the problem, I'm not seeing this problem.
    There are numerous issues with the 10.3.1 on the different BB10 models. It is hard to know if this is one of them or not. Are you not having the other issues that users are finding?
    As far as a resolution, you might do a backup, then a security wipe, then restore. See if that fixes it.
    Another alternative is to do a clean OS install using an autoloader. This is being recommended by other users to resolve the problems users are finding with the upgrade when done OTA or via Link. If you choose this route, don't forget to do a backup first.
    - Ira

  • Trigg the 'Query' button when pressing 'Enter' on the keyboard

    I have a form with 2 buttons, 'query' and 'reset'.
    I would like that the 'query' button is triggerd (pressed) when the user presses 'Enter' on the keyboard. In regular html I think this is accomplished if the button is a 'submit' rather than a 'button' type, but I haven`t found a way to edit the
    type of button in Portal.
    Users belive it`s very annoying to have to move the mouse over the 'query' button to execute the query, and would rather like to just press 'Enter'.
    I`ve tried to use a javascript (onKeyPress), but if you make a javascript in Portal, you`re not allowed to add this to your button, only as an 'form-' or 'field validation' in a textbox.
    Is there anyone who knows a way to get this functionality?
    Regards,
    Orjan

    One of the AVG add-ons for Firefox has been reported to cause that to happen. Disable that add-on until AVG fixes it.

  • HELP ! what happened to the length/time of songs bar to the far right??!!

    I use Spotify to make playlists for my job. Certain exercises require specific length of songs, what happened to the side bar that shows that?! how do i recover it ??

    I'm missing the help even though I didn't re-install the old iMovie HD! I installed the new iMovie, but I still get the help from the old iMovie!
    Excellent, I can now see all of the features that I don't have in the new version, that I did in the old version.

  • Appointments on the BB Pearl are not entered into the Outlook 2007 Calendar

    The issue that I am having is as follows:
    Calendar entries created on the BlackBerry Pearl are not being entered into the Outlook 2007 calendar. 
    Entries created in the Outlook 2007 calendar are being correctly entered into the BlackBerry Pearl calendar.
    I have made several attempts to fix the issue including:
    Removing and reinstalling the most recent version of the BB Desktop Software.
    Deleting all email accounts but 1, removing and re-sending the service books.
    Resetting the BlackBerry Pearl back to factory default.
    Any suggestions would be appreciated at this point.

    Hi and welcome to the forums!
    You may have a corrupt Device calendar. Use the following procedure to correct:
    http://www.blackberry.com/btsc/search.do?cmd=displayKC&docType=kc&externalId=KB04950&sliceId=SAL_Pub...
    If you need more info please ask!  If not please resolve the thread using the options by the Kudos’ star, Just place the check in the Post that answered your question, Thanks  
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

Maybe you are looking for