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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:08:09+00:00 2026-06-03T21:08:09+00:00

I am trying to load a Markdown editor like the one StackExchange uses on

  • 0

I am trying to load a Markdown editor like the one StackExchange uses on it’s site into the Forrst.com site with a Bookmarklet or Browser Extension.

Basically it looks like I need…

  1. Load the CSS file into the Page
    https://raw.github.com/ujifgc/pagedown/master/demo/browser/demo.css

  2. Load these 3 Javascript files into the page

    https://raw.github.com/ujifgc/pagedown/master/Markdown.Converter.js
    https://raw.github.com/ujifgc/pagedown/master/Markdown.Editor.js
    https://raw.github.com/ujifgc/pagedown/master/Markdown.Sanitizer.js

  3. Load this Javascript into the page to make it all run…


//Load and run this code in the page...
// Find and replace the curent textarea with the HTML we
// need for our markdown editor to work 
var htmlToReplace = ' \
  <div class="wmd-panel"> \
    <div id="wmd-button-bar"></div> \
      <textarea class="wmd-input" id="wmd-input" name="description"></textarea> \
  </div> \
  <div id="wmd-preview" class="wmd-panel wmd-preview"></div>';

$("#description").replaceWith(htmlToReplace)

//Run the markdown editor scripts
(function () {
    var converter1 = Markdown.getSanitizingConverter();
    var editor1 = new Markdown.Editor(converter1);
    editor1.run();
})();

If anyone could point me in the right direction on how to accomplish something like this, I believe it’s possible I would really appreciate the help

  • 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-03T21:08:11+00:00Added an answer on June 3, 2026 at 9:08 pm

    If you’d like to load them into a different website, Chrome gives you a very easy way to do so, and they are called Content Scripts.

    Essentially, you create an extension, and in your manifest.json file, you specify the javascript files you’d like to load, giving relative paths to where they are in your project’s directory.

    So, here are the steps:

    1. create a folder
    2. in that folder, place the files you’d like to load in the browser
    3. create a manifest.json file, and in there, specify the CSS and JavaScript files you’d like to load in (and give their relative paths to the manifest file).
    4. In Chrome, install the local extension
    5. Keep on testing, and whenever you make a change to a file, make sure you click “reload extension” on the page you installed it at (chrome://extensions), so it reloads the files and restarts itself.

    Does that answer at least part of your question?

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

Sidebar

Related Questions

Trying to load data into a drop down list when a user selects one
trying to load in a bunch of images into a list from a directory...my
I'm trying to load Gravatars into Flash. Luckily, they provided a crossdomain.xml file at
I'm trying to load a new view into an existing view controller, but I
trying to load a single field into an array and then loading that in
Im trying to load a xml file into a dataset and generate crystal report
I'm trying to load a local image into a JTextPane, and the program relentlessly
Im trying to load a csv file into a datatable using oledb. This is
Im trying to load a XML into an object with LinQ in Silverlight with
I'm trying to load a HTML page via the web browser control in my

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.