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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:01:41+00:00 2026-06-01T22:01:41+00:00

I need to create like a panel made out of text for example MY

  • 0

I need to create like a panel made out of text for example

MY PANEL

    Drag any of the items below into the editor:

    CUSTOMER
    BUSINESS_PHONE
    BUSINESS_ADDRESS

So when dragging this into the editor it will add it in the following way

This is an example of how [[CUSTOMER]] has improved his business. 
You may contact them directly by dialing [[BUSINESS_PHONE]].

Its like creating a template. I am just not sure what to use to make this work.. We are using a RadEditor. Any suggestions would be much appreciated, please note that we can not change the editor since we use in many multiple places the solution if there is any has to integrate with the editor.

Thank you very much

  • 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-01T22:01:43+00:00Added an answer on June 1, 2026 at 10:01 pm

    I’ve done something similar to what you’re attempting to achieve, you will have to add some code to that instance of the radEditor, specifically add in some Javascript to your OnClientLoad function to catch the drop event and then handle the data appropriately. The tricky part is maintaining cursor positioning since you will have to parse the HTML once it’s dropped not before.

    I would really suggest if possible to use an insert button and a list/object that you can select from, click the button and have it inserted at the cursor, it’s much easier to implement.

    However here’s the code without the parsing of how I attached the drop event to the editor, I’m using a RadPanelBar to drag and drop from. This even will fire with anything drag and dropped into the editor, I’d also suggest using some kind of markup like <span class="dragableItem">BusinessPhone</span> that you can look for when parsing your content.

    If you could make your list simply [[BusinessPhone]] and drag and drop that in that would obviously be the simplest solution, although not elegant.

    function OnClientLoad(editor)
    {
    
        var element = document.all ? editor.get_document().body : editor.get_document();
        //var eventHandler  = document.all ? "drop" : "dragdrop";
        var eventHandler = "drop";
        $telerik.addExternalHandler(element, eventHandler, function(e) {
            setTimeout(function() {
                contentDropped(editor);
            }, 300);
        });
    //....
    }
    
    
    function contentDropped(editor)
    {
        var content = editor.get_html();
        //parse the content of the editor  
        editor.set_html(content);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create something like internal frame in netbeans platform , which loads
I need to create lines like this: <li data-target=c1.html><span>I. </span><span>Het tijdperk der goden</span></li> I
I need to create file sharing and chatting system like Microsoft Groove under .NET
I need to create a wall system just like Facebook's (users can post messages,
I need to create a simple Chat system like facebook chat and a twitter-like
I need to create a voip application ( like msn ). What do I
I need to create a json message like this: { success:true, count:3, data: [
I need to create a activity which should look like as a dialog box
I need to create this layout and I'd like to do as much of
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>

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.