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

The Archive Base Latest Questions

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

I have to create a customized and basic SVG Editor using HTML5/JS/jQuery/CSS. Input for

  • 0

I have to create a customized and basic SVG Editor using HTML5/JS/jQuery/CSS.
Input for the Editor are two files x.svg and its associated x.css file.

The x.svg will be loaded in the HTML Page, with its styles from x.css applied. Then styles like stroke, width… will be manipulated using JS/jQuery, all fine so far.

My problem is that after the user make some changes to the style and want to save those changes permanently in the x.css file, I dont know how to do that, I can write the
Attribute: Value pairs easily to a file, but the x.css files has selectors, braces and so on…the output of the program should be a prober x.css file, notice that the x.svg will remain the same. How can I handle this problem, an detailed idea with no code is sufficient, 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. Editorial Team
    Editorial Team
    2026-06-17T16:10:18+00:00Added an answer on June 17, 2026 at 4:10 pm

    Ok here is the answer, I achieved it with the help of FileSaver.min.js and BlobBuilder.min.js from Eli grey, the function is attached to the click event of an anchor element, when user clicks a dialog comes, asking you to insert file name and where to store.
    Tested on Chrome 23, on version 24 it didnt work.

    function exportCSS() 
    {
    
    //stop anchor link from taking us anywhere
    event.preventDefault();
    //index is chosen for test sofar, need next to iterate over all sSheets and pick the right one depending on svg file name
    sSheet = document.styleSheets[2];
    myRules = sSheet.cssRules;
    len = myRules.length;
    for (i = 0; i < 50; i++) {
        cssOutputString = cssOutputString + myRules[i].cssText + "\n";
    }
    console.log(cssOutputString);
    
    //save the file
    var blob = new Blob([cssOutputString]);
    
    saveAs(blob, "file.css");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a customized installer. I have two primary requirements: It is
I have to develop a customized tab control and decided to create it with
I have create a bunch of .o files (via gcc -c $file.c $someotherops -o
I have create a vcf file that contains contacts by using this code ContentResolver
I have created a customized BasicEditField with Border using Bitmap.Now while typing the text,it
basic problem: i need to create real customized templates for my django forms. That's
I have a separate method to create customized UITableViewCell, Which is given Below -(UITableViewCell*)getCellContentView:(NSString*)cellIdentifier
I have customized UIView to create a custom UI component. The hierarchy of views
I'm using Rails 3 and ruby 1.9 I'm trying to create a customized URL
I am trying to create a customized list field where, I have more then

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.