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 9193511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:10:57+00:00 2026-06-17T21:10:57+00:00

i’m using CKEditor to allow the user to input text into an asp page

  • 0

i’m using CKEditor to allow the user to input text into an asp page coded in c# which outputs some bible texts, now i wanna add a function which lets the user to key in some kinda string which i will detect and replace with some text from the bible, for example, if i enter into the text editor (as an example, with ~~~ as a special sequence of characters which i use to identify special codes/strings)

today is a happy day, i learnt this: ~~~1 John 4:7~~~.

the codebehind should be able to detect the ~~~ in front and at the back of the “1 John 4:7” string, and be able to know that this can be looked up and uses the “1 John 4:7” string to look up a data structure (I’m thinking using a hash or dictionary or linked list) the output on the page may be something like this

today is a happy day, i learnt this: “Beloved, let us love one another, for love is from God.”

i’m able to get this done using a normal text box, but if we have a wysiwyg editor, there are alot of tags added in the background, and if i wanna add color to the string, it’ll complicate the string even more, since the editor may not highlight the whole string from the beginning ~~~ to the end of the ~~~ at the back. i may end up with a string like this (the source of the text in the ckeditor)

<p> <span class="text 1John-4-7" id="en-KJ21-30580">~<span style="background-color: #ffff00">~~</span><strong><span style="background-color: #ffff00">1 Jo<u>hn </u><em>4:7</em></span></strong><span style="background-color: #ffff00">~~~</span></span></p>

so instead of a simple string like this ~~~1 John 4:7~~~ , we have a much longer string with a lot of formatting (which is expected since i wanna be able to add text with formatting in the editor), and the word John and the “~~~” sequence is split up in between tags. (because the string has been highlighted partially, in which case i should use the first color that appears, for the whole special string, or just ignore all tags in between the whole string for simplicity (meaning the looked up text will only adopt the formatting that enclosed the ~~~ special string / code ~~~)

it’ll be great if we can have the whole string ~~~1 John 4:7~~~ as an atomic string (i mean as a continuous string that doesn’t change in the editor), but this may not be the case, so i wanna ask, how should i go about doing this, so that i can allow the user to enter text freely in the editor, and yet have the asp page have the ability to detect that the user keyed in a special string / code which it can try to look up, when a sequence of special characters (in this case ~~~) is used to enclose it.

Thank you very much for reading and good day to you all.

  • 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-17T21:10:59+00:00Added an answer on June 17, 2026 at 9:10 pm

    I see two solutions.

    1. If you want to do this at client side than you have to digg into CKEditor add-on system. There are a lot of examples for getting started.
    2. Do this at server-side with simple regexp.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a text area in my form which accepts all possible characters from
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm making a simple page using Google Maps API 3. My first. One marker
I need to clean up various Word 'smart' characters in user input, including but
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have just tried to save a simple *.rtf file with some websites and
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is

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.