Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8085105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T18:00:32+00:00 2026-06-05T18:00:32+00:00

this is my textarea prepared for ckeditor to launch on: <textarea name=Message id=RFMessage lol

  • 0

this is my textarea prepared for ckeditor to launch on:

<textarea name="Message" id="RFMessage lol" rows="4" class="ckeditor" onkeydown="if(this.value.length&gt;=1024)this.value=this.value.substring(0,1023);">                        
</textarea>

Than I have this html:

<textarea id="message" class="message hide" >WORLDWIDE,Any</textarea>

What I need to do is to make JS work on .message div to get rid of “,Any” and then put the clean value of only “WORLDWIDE” to #RFMessage div

Since I dont know how to run custom JS inside ckeditor I’m using their predifined API from here: http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html

I use InsertHTML to take the value and insert it.

This is my whole JS:

<script>
    $(".message").each(function() {
        $(this).html($(this).html().replace(/,Any/g,""));
        $(this).html($(this).html().replace(/Any,/g,""));
    });        
</script> 

<script>
    CKEDITOR.on( 'instanceReady', function( ev ) {
        var oEditor = CKEDITOR.instances.RFMessage;
        var value = document.getElementById('message').value;
        oEditor.insertHtml(value); 
    });            
</script>

Of course CKEditor have to be loaded with this whole thing.

It all works fine on Chrome and Firefox but this doesn’t work on IE8

I’ve constructed the script according to this CKEditor sample of using their API: http://nightly.ckeditor.com/7493/_samples/api.html

Any ideas what could be causing this not to work on IE8? I’ve also tried researching their forum for any IE8 related bugs but couldn’t find any. Maybe I’m simply missing something in the script?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T18:00:33+00:00Added an answer on June 5, 2026 at 6:00 pm

    You should be using CKEDITOR’s getData and setData methods when working with editor content. These methods normalize accessing the data within the editor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

'<textarea name=textChange class=signatureChangeText cols=100 rows=4>' + SOME VARIABLE FULL OF TEXT + '</textarea>' The
textarea onclick=this.focus(); this.select(); rows=1 cols=100 readonly=readonly style=background: #ffffcc; font-family: Monospace;> a href=http://127.0.0.1:8000/ajax/share?url=...... onclick=window.open(this.url, 'blabla',
I have this: <textarea name=content></textarea> and in javascript code in the same aspx file
Is such html code page jsp? <form action=> <div align=center><textarea name= cols=50 rows=4>welcome to
I have this textarea form: self.response.out.write( <form name=title action=/edittitlepitchhandler method=post> ... pitch: <br />
I have this checkbox: <input type=checkbox name=suspended id=s value=<?php echo $udata['suspended']; ?> <?php echo
i have this textarea, that takes the value of a get function transferred from
I have this simple textarea. When it's not selected, I want it to look
This is a textarea. The user can write anything. <textarea id=text>First sentence. Second sentence?
This is a textarea where the user writes some text. I've written an example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.