Counter of characters for a rich text editor.

Version 4.1.1.00.23

Hello

I hope someone has a solution for meter/validation of character to use on the rich text editor.

Thank you

Joe

Hello

Maybe something like

var lEditor1=CKEDITOR.instances.Px_EDITOR;
lEditor1.on('contentDom', function() {
 lEditor1.document.on('keyup', function(event) {
  /* get editor length */
  var lLen=lEditor1.getData().replace(/<[^>]*>|\s/g, '').length;
  /* get keycode */
  var lKey=event.data.getKey();
  if(lKey>=48){
   alert(lLen);
  }
 });
});

Kind regards

Jari

Tags: Database

Similar Questions

  • The execution of Javascript for the onchange event of Rich text editor field

    Hello

    I have a piece of javascripts that warns users when they try to move away from a page with unsaved changes (if they change all fields in a form). The code works for all types of fields except for rich text editors.

    I think that the reason might be (not 100% sure) which is the form element when users type in their changes is nested inside an iframe html document, and my jQuery onchange event trigger nested inside an html document changes.

    Dynamic measurements also do not work if you create a simple rich text box and write JavaScript codes in onchange events fire.

    Would be grateful if anyone can suggest a way to make my Rich Text Editor work fields onchange events.

    I use Apex 4.2.2 theme 26.

    The field is a Rich Text Editor to type CKEditor3, Toolbar = intermediate.

    Hello

    This might help

    Re: Counter of characters for a rich text editor.

    Kind regards
    Jari

  • Why the rich text editor shows unsupported data type?

    Hello

    I used the rich text editor in my application (for the message box). I used the data BLOB to the type. But, when I click on the button send it shows invalid hexadecimal number and also in back-end, it shows the data type not supported. Why is it so? Need your help.

    --

    Thank you.

    Venky_prs wrote:

    Thanks for the reply. I changed on the CLOB type. Now, the intervention process. But, in the back-end the message column contains HTML format. For this rich text editor, I used the source as the database column type. How can I get the actual message instead of the html format.

    Elements of the rich text editor are used to create HTML text. If you need/want data plain text, then use a Textarea base element.

  • Rich Text Editor - limit the characters to type in

    Hello

    I'm having a little trouble, and pehaps can someone help out me.

    I use APEX 4.2

    In the Web page that I have developed, I have a rich text editor, which is intended to be limited by words, rather than characters.

    I installed a single view point, that correctly displays the amount of words being there, that the problem is that I don't know how to do to limit the amount of this words, so when they hit 50 (for example), it stops leaving the user to type more than words.

    Does anyone know how can achieve this?

    Thank you!

    Ok.

    Because nobody could hint on that, and I've tried several things until finally got a solution.

    I will post the solution I did (it's not very clean, but since I have a date deadline and things always work on...):

    First of all, APEX page jscript on charge:

    lEditor = CKEDITOR.instances.Pxx_ITEM;

    lEditor.on ('contentDom', function() {}

    lEditor.document.on ("keyup", Function {}

    wCountLimit (lEditor.getData ());

    });

    });

    lEditor is a global variable of my javascript to html header.

    The header:

    I hope it helps anyone who needs this and has searched the Internet as much as I did.

    Kind regards.

  • Rich Text Editor for threads - please fix the bugs!

    Hello

    I don't know if I'm alone in this experience, but the Rich Text Editor is terribly buggy - at least on Firefox

    I'm trying to change in a "What you see is what you get"-style to ensure that information is presented in a good way.

    When I post the message is often completely f...

    At least, it would be great to have an option to see a preview of the post (or is that and I'm just blind to find?).

    It would really help that my comment between two texts cited is not add in the framework of the first text mentioned... (just an example of what has happened in the last 24 hours...). When I want to help or chat, I'm really annoyed to waste time with such things - but also with poorly formatted information, which makes it more difficult to understand.

    Best regards

    Bernd

    work on VM Ubuntu with the latest update of Firefox, VMware authorized Scripts.

    Like what is said above the rich text editor has quite a few bugs.  Believe me, they know pretty much all we have brought up a lot of times what they was using the text editor that works quite well and has very few bugs.  You can also set your value by default when you post then change, text gross, then on the side right of the screen, there's a link saying "set default editor", which will start you clear each time.  Even thought it might not be as fantasy, it does the job without the headaches of your post showing completely messed up 75% of the time

    • Kyle

  • Format rich text editors or tools do not work in Firefox

    I use Win 7 64 bit and Firefox 16. Problem is that I and other users of the Forum, that we belong to, can not use the editor text rich Format or tools to edit text...
    For example, when you type your text and you want to change the format of "BOLD" etc. the editor gives a code like this:

    [undefined = undefined] Found thread [/ undefined] where it should be [b] Thread Found [/ b]
    The undefined Word opens with all the formatting tools.

    Using another browser like Chrome or IE the formatting or rich text editor works very well. Like I said that's not me who has this problem, we are not a lot of people on the forum who is having the same problem.

    Counsel for solving this problem will be greatly appreciated.

    Thanks in advance

    Kind regards
    MEA Albrecht

    «Due to the change Firefox 16.1, when using the editor to insert MyCode you experience a problem where the tags are displayed in form [undefined = undefined]/ undefined.» This problem has been fixed in 1.6.9, MyBB but until free us, we have provided a patch for you to make your own maps. »

    http://community.MyBB.com/thread-127983-post-926896.html?highlight=Firefox#pid926896

    The fix is discussed here - http://community.mybb.com/thread-127322-post-922533.html#pid922533

    A forum administrator can manually apply this hotfix, or simply wait for the update to MyBB 1.6.9.

  • I can't read my emails or spam, to try to send it, I get the error message 'Unable to load the rich text editor', enamel works with Google, ok, how can I solve this problem in Firefox?

    Error message for Virgin Gmail

    "Unable to load the rich text editor.

    What is the solution?

    You can see https://support.mozilla.com/questions/896294
    and look at this thread, the only real connection so far is it is very recent and it involves blank e-mail.

    Those who are in this thread say blank incoming emails doesn't work except if they Disable Adblock Plus from the icon of ADP.

    In fact, the rich text editor would be in a separate file, there is most likely a connection to ADP because some of these files may be blocked. I used to have a lot of problem in this forum on the web and the tools were blocked (didn't really need them) just because I block a lot of things here: like animals to fur in nurse uniforms, a trash can (toolkit) and that blue area at the bottom of this page that interferes with scrolling and the use of the key 'end '.

    Something seems to be wrong with your profile, clicking on it does not bring it upwards.

  • Update of the rich TEXT Editor

    I, like many others, have it searched the internet looking for rich TEXT editor that can handle the full feature set of a RTF file. There is only one project there and is not open source, nor is there a true documentation which can explain how to use this custom Publisher RTF kit.

    I ask the name of the community that Oracle develop a RFTEditorKit capable of handling the full set of features of the RTF standard. I want to be able to open a file with images in Java. I would also like to create a simple demo program to illustrate the new RTF kit.

    This forum seems to have more features than the current RTFEditorKit, I think that level of those looking for this feature indicates the level of need.

    Thank you and have a nice day.

    Post edited by: Mike Goff RTF file, I should proof read.

    Mike Goff wrote:

    Hello

    The requested page is; FAQ at the bottom is says «if you have any comments or questions, please visit...» "Also the page; " Help: frequently asked Questions said"I have a question that is not answered here. Y at - it email address "customer service"? Lol Please ask your question in the Discussion Forum for Feedback: Member of ... "There has been a lot of threads and messages asking this feature to deal with and if they get solved these problems don't really get resolved.

    If this is not the place to report threads and messages not getting no real resolutions can you point me to the correct place?

    Hmmm, I think you have misinterpreted it.

    On the FAQ Page, it says:

    If you have any comments or questions, please visit OTN Community Feedback (no product Questions). If you have any suggestions or ideas for the Betterment of the community, please visit Oracle community ideas.

    in the context of the issues frequent threads/documents.  Not any question, otherwise people might ask ' my mother to get the bus n ° 99 in town one Saturday morning.

    Also on the Help: frequently asked Questions page:

    I have a question that is not answered here. Y at - it email address 'customer service '?

    Lol Please ask your question in the for the Feedback Discussion Board: Member, which is monitored frequently. Note that this forum is intended for comments on Oracle Technology Network services only.

    And of course, the Discussion Forum of member feedback points here... but it is in the context of the questions that help with the help of the community.  No specific product of the Oracle.  It is not as clearly "Note this forum is intended for comments on Oracle Technology Network services only"

    Your question is related to Java and Swing (so you informed me), then you would be best to ask your question in most cases space under Java (I let you decide which is best)...

    The list of secondary areas are here: Java

  • Customization of the rich text editor

    Hi all

    I'm working on a version of the project portal (11.1.1.7) and I have a customer requirement to disable/hide the fonts/font size/color in the Rich Text Editor Taskflow in the document library based on the security group. I see that the taskflow RichTextEditor is in the path - / oracle/webcenter/doclib/view/jsf/taskflows/richTextEditor in view of document webcenter library service and I opened the editHTML.jsff to see what customization is possible, but the code here uses the < rte:editor > to display the Editor Rich Text. can someone help me as to how I can customize it to meet the requirements. Another approach possible.

    Thanks in advance for any help.

    Hello.

    He becomes a frequent question in OTN Forum on rte:editor

    This component built according to CKEditor is a WYSIWYG of WebCenter internal framework not intended to be used as a public component.

    Any changes to the components must change ten - taglib.jar and is not a way supported by Oracle (a patch may affect these libraries).

    On your condition, you will need to change the features of CKEditor (.js files) inside the library to meet your requirement.

    My recommendation is to ask Oracle in a SR Oracle.

    Kind regards.

  • Not allow any data to be pasted into a Rich Text Editor Field

    Version 4.1.1.00.23

    Hello

    Does anyone know how cannot don't not the user to paste data into a field of Rich Text Editor?

    I want to only allow them to enter data into the rich text editor and not paste from another source.

    Thank you

    Joe

    I was able to solve this problem.

    The only tags that are allowed for my requirement are: p, ol, ul, li, em, strong, a, href.  No other tags are allowed.

    The query is:

    SELECT REPLACE (REGEXP_REPLACE (REGEXP_REPLACE (: P28_PATH_TO_GREEN)))

    , '<'            >

    '(/?'           || -\1 is optional / can

    ' (' || -one of the following conditions:

    ' p | »         ||

    ' ol | »        ||

    « ul | »        ||

    « li | »        ||

    EM | »        ||

    "strong" |

    ' a | »         ||

    'href ' |

    ')'          ||

    '[ >]'        ||  -Then, space or

    ')'

    , '<>

    1

    0 - replace all occurrences

    'i' - case-insensitive

    )

    , '<[^`][^>]*>'

    )

    , '<>

    , '<>

    )

    DOUBLE;

    Here's how it works:

    1. The inner REGEEXP_REPLACE inserts a grave accent above all good tags (p, ol, ul,... become 'p,' ol', ' ul,...)
    2. The outdoor REGEXP_REPLACE eliminates any tag that does not begin with a grave accent, leaving only the good tags
    3. REPLACE removes serious accents, added in step 1.
    4. Implement a after submit Page calculation on the Page element using the Type of query SQL (single return value).

    Thank you

    Joe

  • adding validation to the maximum length in the rich text editor

    Hi all

    I want to add validation to the maximum length in the rich text editor. How to add that. Help, please

    See this video.

    Validation in RichTextEditor in ADF - YouTube

    and you can also try to hang the function call javascript for events like keyPress, mouse click. Something like:

    
    
     function doSomething(){ }
    
      
    
     
    
    
    
      
    
  • IE10: Dynamic Action failed when using Rich Text Editor (FCKeditor) article on page

    Hi all

    I use the "Rich Text Editor" in a page. This page also contains dynamic Action to disable the button so that the loading of the page. Turn off the button while loading the page worked in IE 8, 9 versions. but in the case of IE10, The dynamic Action is down because of this rich text editor this button is not disabled. I get the following error when debugging script

    SCRIPT5007: Unable to get property '1' of undefined or null reference

    As much as we use the text editor (FCKeditor), this FCKeditor_IsCompatibleBrowser() function call browser. In the case of IE10, the error above is due to the following line in this function

    var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; 

    I want to use 'Rich text editor' on my page, I don't want to change like "text box." I saw some difficulty for this line in the function (the function is in the path "... / i/fck/fckeditor.js"), I can change this line in the function? Is there another way to fix this error?

    Please help me...

    Thank you
    Lacombe

    Hi all

    Rich Text Editor conflicts with DA. It has been classified as Bug. Bug number is 17065043.

    Thank you

    Lacombe

  • Rich Text Editor does not

    I use jdeveloper 11.1.2

    on my page, I have

    rich text placed on the Group Panel Editor layout a0 with visible = false attribute
    input field for text placed on the Group Panel layout with visible = false attribute a1
    I select a component of the radio and use it to decide which provision of the Group Panel I'll show
    I use the following code to java script to show or hide the Panel group layouts


    function changed (ev) {}
    var ind = ev.getSource () .getValue ();
    ev.getSource ().findComponent("a0").setVisible (false);
    ev.getSource ().findComponent("a1").setVisible (false);
    ev.getSource () .findComponent ("a" + ind) .setVisible (true);
    }

    My problem when I choose the group put on a0 page Panel to display the rich text editor in it does not
    which means I can write anything about it and can change any of the properties of the inside words

    How can I fix it

    Hello

    not sure how you switch between Panel groups. but try a PPR of the surrounding container

    Frank

  • Path of the image apex Rich Text Editor

    Hi guys,.

    I use Apex 4.1

    When the user insert an image in a rich text in the apex Editor is it possible to get the path to the source of this image within PL/SQL block when sending page occurs?

    Hello

    Here is a code snippet of brute force .

    In the extract below P16_X is the rich text editor and P16_Y is a text box where the paths listed on. This was written for a calculation on P16_Y where the return at the end.

    declare
    arr1 apex_application_global.vc_arr2;
    arr2 apex_application_global.vc_arr2;
    arr3 apex_application_global.vc_arr2;
    c    pls_integer := 0;
    ret  varchar2(32767);
    begin
     arr1 := apex_util.string_to_table(:P16_X,'
    

    Kind regards

  • Turn on rich text editor

    Hello

    I deployed 50.0 Firefox by GPO. When one of my users try to post an article with their CMS custom, Firefox's rich text editor is not activate (see screenshots). First I thought that it was perhaps related to Firefox itself, but when I checked my own pc, including 50.0 Firefox installed manually since it is my main browser, it shows the text rich editor.

    Can someone tell me how to activate the addons without rich text editor? I tried in Firefox options and about: config but could not find any adjustment thereto.

    Thanks in advance.

    screenshot where the rich text editor does not (pc of the user): http://imgur.com/a/wiuEd

    screenshot where the text editor enriched shows (my pc): http://imgur.com/a/j7z9v

    I discovered that this was due to: user_pref ("general.useragent.override", ""); who is accidentally slipped in deployed Firefox profile (we use default profiles for mass deployment).

Maybe you are looking for

  • The toolbar questions

    I have some problems with the Settings toolbar on my iMac and MacBook Pro. First of all, when I click on the box with an arrow pointing upward (extreme right) to add a bookmark, the link used to be saved in bookmarks. Now it jumps immediately to the

  • How can I open the emails saved as Firefox html documents

    I saved a few emails from my hotmail account. They appear in the right folder like Firefox HTM documents. Now I can not open them.Clicking on taking me to a distorted hotmail page.

  • I have a laptop SVF1521P2EB model. Since I put victory 8.1 the dvd player has falt error 19-the register

    I have a laptop SVF1521P2EB model. Since I put victory 8.1 (I Think) the dvd player does not work. The pilot is there and looks ok, but reports the error 19 which says that there is an error in the registry. Any help to fix it please

  • BlackBerry Smartphones Windows Live Mail contacts

    I have my contacts from Windows Live Mail on my BB and they always synchoronized automatically until now, when they seem to have stopped.  I could never understand how or when they synchronized, because sometimes he tookd days, and then all of a sudd

  • Media Player Burns, plays on pc but not on a dvd player

    My departure was sent to the College on a format of pg2, downloaded & burned - r dvd plays on pc, but used on drives. It happens on the Sony, "error", on my Insignia he comes up with a screen full of files that does nothing when clicked. It burned on