Questions tagged [edit]

to modify (a computer file) by, for example, deleting, inserting, moving, or copying text.

Edit can be done as part of coding or changing configuration files.

The tool which is used for editing is called an Editor. Common editors include vi, emacs etc.

3207 questions
12
votes
6 answers

Woocommerce, How to edit the "added to cart" message

When click on add to cart button, the Woocommerce shows the message, view cart, I want to edit this message, actually edit all the span, put some icon etc...
Dante
  • 121
  • 1
  • 1
  • 3
11
votes
2 answers

How can I tell if I'm in beforeSave from an edit or a create? CakePHP

I have a model where I need to do some processing before saving (or in certain cases with an edit) but not usually when simply editing. In fact, if I do the processing on most edits, the resulting field will be wrong. Right now, I am working in…
Frank Luke
  • 1,342
  • 3
  • 18
  • 33
11
votes
4 answers

Using vim, is there a command to have pasted text automatically line-wrapped?

CONTEXT: Part of a job I'm doing involves pasting paragraphs of text from a word doc into a ruby file. PROBLEM: These paragraphs are getting pasted in as a single very long line of text and I have to manually insert newlines to make the lines of…
steve_gallagher
  • 3,778
  • 8
  • 33
  • 51
10
votes
4 answers

expected Hash (got Array) for param 'samples'

I have been following Railscasts episodes of Nested forms and complex forms. During the time of creating multiple model in a single form I was able to edit, update, delete and create records for sample models that were nested in the Batch model. I…
A1aks
  • 187
  • 1
  • 2
  • 15
10
votes
5 answers

Rails: "new or edit" path helper?

Is there a simple and straightforward way to provide a link in a view to either create a resource if it doesn't exist or edit the existing on if it does? IE: User has_one :profile Currently I would be doing something like... -if…
Andrew
  • 42,517
  • 51
  • 181
  • 281
10
votes
1 answer

Hide title from tooltip

I'm making a tooltip using CSS. Now using the following html code
and the following CSS .progress3{ display: inline; position:…
aled2305
  • 132
  • 1
  • 1
  • 6
10
votes
3 answers

Custom UITableViewCell in edit mode does not move my UILabels

This is doing my head in:-) I have a fully functional CoreData Populated UITableView inside a UIViewController and I have successfully implemented the "Swipe to Delete option" (which is easy) and I can also delete single instances with an edit…
jwknz
  • 6,598
  • 16
  • 72
  • 115
9
votes
1 answer

ExtJS 4 - How to conditionally edit a cell in a grid?

I have a grid panel using cell editing plugin. In this grid panel, I want conditional editing on a cell in following manner: When a user clicks on the cell to edit, there should be confirm dialog shown - "Do you want to edit the cell?" - if he…
netemp
  • 4,115
  • 12
  • 43
  • 63
9
votes
2 answers

How can I change the TEdit default error message (NumbersOnly mode)?

How can I change the TEdit's default error message when I use it in NumbersOnly mode. I mean this error: Unacceptable character You can only type a number here Is it possible to change this message ?
Arash
  • 9,705
  • 4
  • 18
  • 12
9
votes
3 answers

In jqGrid, can you inline edit multiple rows at once and then do a single commit?

We are using the jQuery('#grid').editRow() feature of jqGrid, that allows you to edit fields in a row inline. Does jqGrid support inline editing of multiple rows at once, where I can make changes on multiple rows and then submit all at once? We are…
leora
  • 188,729
  • 360
  • 878
  • 1,366
9
votes
3 answers

Bash script to edit CFBundleVersion field of PROJECT-Info.plist file

In order to put in place a continuous integration system, Hudson, I wrote a bash script to build Xcode project automatically. Moreover, in Debug configuration, It was asked to me, to insert the svn revision number of the project in the…
Doc_1faux
  • 141
  • 5
  • 15
9
votes
1 answer

PDF: How can I override/fix searchable text in a scanned image + OCR file?

I'm trying to create an index on a PDF file that I scanned as images from an old original manuscript, then put through character recognition in Adobe Acrobat Pro. The problem is some of the words were spaced funny so the OCR ended up with flaws. I…
O.M.Y.
  • 345
  • 2
  • 14
9
votes
1 answer

Modify a byte in a binary file using standard Linux command-line tools

I need to modify a byte in a binary file at a certain offset. Example: Input file: A.bin Output file: B.bin I need to read a byte at the offset 0x40c from A.bin, clear to 0 least significant 2 bits of this byte, and then write file B.bin equal to…
mastupristi
  • 1,240
  • 1
  • 13
  • 29
9
votes
1 answer

Edit pandas dataframe in flask html page

What is the best way to edit a pandas dataframe in flask? I have a dataframe which I want to output on a HTML page with flask (there are many examples how to do this). However, I don't just want to output it, but I want to make it editable. Ideally…
Nickpick
  • 6,163
  • 16
  • 65
  • 116
9
votes
2 answers

How to implement the cancel button for edit functionality in angularjs

i have used edit button. after editing i have save and cancel button .save button is working as i expected but not the cancel button. if i click the cancel button after trying to edit, it should show the previous text. can anyone please help…
Thilak Raj
  • 880
  • 3
  • 10
  • 25