csl-editor icon indicating copy to clipboard operation
csl-editor copied to clipboard

For dependent styles: Clicking "edit" does nothing

Open leejones-san opened this issue 8 years ago • 4 comments

When I open a style and click "edit", nothing happens. This issue recurs on Firefox, Chrome and IE.

leejones-san avatar Jan 18 '16 09:01 leejones-san

What do you mean exactly?

I see the menu showing Undo and Redo under Edit:

edit-click

zuphilip avatar Jan 18 '16 12:01 zuphilip

Apologies for being unclear. I mean when I click the button highlighted here (or the "edit style" button after clicking "view style"), nothing happens. The button does not work.

untitled

leejones-san avatar Jan 18 '16 14:01 leejones-san

Well, the edit normally works. However, the style you are trying to edit is a dependent style and the same as some more general Taylor & Francis style. If you click on the link after "same as" then you should be able to edit this parent style.

However, it seems that edit link for dependent style should be either deactivated or linked to the parent style. @adam3smith

[fixed typo, AS]

zuphilip avatar Jan 18 '16 16:01 zuphilip

@zuphilip, would it not be better to provide some indicator to users that these entries are not editable?

Some potential ways to do this:

  1. Remove or disable the Edit button for these entries and replace it with a note indicating the restrictions.
  2. Enable Edit for these entries, but create copy with an autogenerated unique ID (eg by adding a number to the original entry's name).
  3. Provide a pop up message upon clicking Edit , warning users they can't actually edit.

Option 2 would probably be my preferred choice, because it lets users edit the CSL files (which is what users will be expecting from CSL Editor) while preserving the integrity of the (vetted?) dependent styles.

bschilder avatar Sep 20 '21 18:09 bschilder