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

  • Home
  • SEARCH
  • 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 7093783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:28:57+00:00 2026-05-28T08:28:57+00:00

I’m planning on using an instance of Markitup (http://markitup.jaysalvat.com/home/) to format HTML on a

  • 0

I’m planning on using an instance of Markitup (http://markitup.jaysalvat.com/home/) to format HTML on a site, but was hoping to include buttons/settings specific to the CMS I’ll be pulling content from. The problem being that, while said elements are formatted as HTML tags, the editor won’t recognize them or allow them to be wrapped around content/text.

I don’t need the tags to be parsed, I simply need the editor to be able to insert them, but identifying them as HTML in the settings is unsuccessful, as is identifying them as text.

Is there any way to use an editor such as this to wrap custom tags around existing content?

What I’m trying to accomplish is, essentially, to hit the button in the editor, respond with a prompts asking for a few different parameters and then wrapping the remaining, selected HTML with the tags, with the result looking something like this:

<box title="EXAMPLE" align="LEFT">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce ut nisl id sem volutpat interdum. Donec ante sapien, tincidunt nec venenatis at, posuere a magna. Suspendisse id metus sapien. Nullam sed rutrum tellus. Integer laoreet sem non lorem elementum ultricies.</box>
  • 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-05-28T08:28:58+00:00Added an answer on May 28, 2026 at 8:28 am

    Having never used Markitup, it turned out to be fairly simple to do. Starting from the html demo, you’ll need to modify 3 things in markitup/sets/html/:

    1. Add an image for your button to the images folder (or pick an existing one for now).
    2. Add a reference to the image in style.css. It seems like each button gets a class based on its order in the row of buttons (.markItUpButton1, .markItUpButton2, etc.). Some used a different class (clean/preview), but were still counted. So I added a button on the end, it was the 18th, and the code was simply: .markItUp .markItUpButton18 a { background-image:url(images/box.png);} Alternatively, you use the “className” attribute in set.js and reference that.
    3. Add an object to set.js. Use the existing buttons for comparison.

    You can start out with something as simple as this:

    {name:'Box', openWith:'<box>', closeWith:'</box>'}
    

    The syntax to add attributes is a bit funky, but again you can basically get the gist by looking at the other buttons:

    {name:'Box', openWith:'<box title="[![Title]!]" align="[![Align]!]" >', closeWith:'</box>' }
    

    Tested and works as you described! Let me know if you have questions. The hardest part for me was realizing that I couldn’t run any of the examples without downloading extra “sets” (e.g. html).

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a French site that I want to parse, but am running into
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.