Giter Club home page Giter Club logo

wikicodeeditor's People

Watchers

 avatar  avatar  avatar

wikicodeeditor's Issues

Save and Close Button Error

When, we press Save and Close button, the function postWithEditToken is called and then programtically refresh the page.

The problem is that after refreshing it shows us the previous content of the code. There is a mismatch between what is in the database and what it is shown there.

A manual refresh shows the new content.

One solution for this can be integrating both the Save & Close button and Cancel button as Close button so that the user is forced to save the content before closing.

Save and done function

  1. On clicking save and done, code is saved and a preview is presented
    a. Url stays the same.
    b. Feedback to user

Empty lines are shown as period symbols

Given some code in the script page

    }
};

var themeDict = {

it's visible in the editor as

    }
};
.
var themeDict = {

After it's saved withoud modifications, we get this:

Inconsistent Edit button behaviour

When we are in View action (action=view), clicking the Edit button leads to a code editor being opened without refreshing the page. When we want to go back (to the View), the page is refreshed.

When we click the Edit button on History page, nothing happens. (Actually, Chrome Debugger barks at some ace.js, but I'm too lazy to figure it out know). About leaving back to History, see above.

Also, try to click the Edit button once, and when the editor is loaded, click it once again. We'll see the code in the editor disappear!

Save code function

  1. User clicks on save and code saves in place.
  2. Editor still remains active.
  3. Give feedback to user that code is saved and enabled for rest of his/her wiki pages.

Enter Clears the Editor text

Steps for reproducing:

  1. Click edit in the Wiki page.
  2. Press Enter.

All the text disappears. Happens both in Firefox as well as Chrome.

Reason: All the text is selected by default.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.