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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:51:27+00:00 2026-05-11T09:51:27+00:00

I have a site that uses the FCKEditor. I’d like to make an incredibly

  • 0

I have a site that uses the FCKEditor. I’d like to make an incredibly simple plugin: when a user selects text and then hits MyPluginIcon, the editor surrounds the text in a span tag with a specific class.

So it’s just like the Bold or Italic button, but for:

<span class='blah'>EtcEtc</span>

I am far from a JS expert, so I have been looking for a plugin to copy. I have looked in the FCK wiki but all the plugins I have found are really complex (file browsers and whatnot). Do you know of a super simple FCK plugin I can base my plugin off of?

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. 2026-05-11T09:51:28+00:00Added an answer on May 11, 2026 at 9:51 am

    Answering my own question! Hopefully if someone finds this in the future it will help.

    I used the basic file from here: http://www.iondev.lu/fckeditor/netnoi.txt

    I found-and-replaced the ‘netnoi’ with my own name, and uncommented the icon line to make an icon (16×16).

    And the instructions on how to install it from here: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Customization/Plug-ins

    Be sure to check that the plugins directory is correct — in drupal the plugins folder is different than a default FCK install.

    EDIT: Apparently the netnoi.txt has gone missing. Here is what I used:

    /***  * Create blank command  */ var FCKPixelCaps_command = function() {  }  /***  * Add Execute prototype  */ FCKPixelCaps_command.prototype.Execute = function() {         // get whatever is selected in the FCKeditor window         var selection = FCK.EditorDocument.getSelection();          // if there is a selection, add tags around it         if(selection.length > 0)         {                 FCK.InsertHtml('<span class='caps'>' + selection + '</span>');         } else {                 // for debugging reasons, I added this alert so I see if nothing is selected                 alert('nothing selected');         } }  /***  * Add GetState prototype  * - This is one of the lines I can't explain  */ FCKPixelCaps_command.prototype.GetState = function() {         return; }  // register the command so it can be use by a button later FCKCommands.RegisterCommand( 'PixelCaps_command' , new FCKPixelCaps_command() ) ;  /***  * Create the  toolbar button.  */  // create a button with the label 'Netnoi' that calls the netnoi_command var oPixelCaps = new FCKToolbarButton( 'PixelCaps_command', 'Pixels & Pulp Caps' ) ; oPixelCaps.IconPath = FCKConfig.PluginsPath + 'PixelCaps/caps.gif' ;  // register the item so it can added to a toolbar FCKToolbarItems.RegisterItem( 'PixelCaps', oPixelCaps ) ;  
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 69k
  • Answers 70k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer The best way is to define a new button template.… May 11, 2026 at 12:46 pm
  • added an answer p/invoke GetFileType(GetStdHandle(STD_OUTPUT_HANDLE)), or call an innocuous console function like GetConsoleScreenBufferInfo… May 11, 2026 at 12:46 pm
  • added an answer like others have mentioned, you could store it as a… May 11, 2026 at 12:46 pm

Related Questions

I have a web site that I administer that uses Apache 2.0 on the
I have a site that uses a couple DropDownLists that are databound. I was
I have a site I made really fast that uses floats to display different
I have a web site in asp.net that uses a master page. In this
I have a simple PowerShell script that uses WMI to create a web site
I am a complete beginner trying to develop for FCKeditor so please bear with
I've got a stylesheet that will not, for whatever reason, apply list-style-type to a
I have an existing ASP.NET website which I would like to painlessly add CMS

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.