summaryrefslogtreecommitdiff
path: root/lib/scripts/edit.js
Commit message (Collapse)AuthorAge
* fixed locktimer/draft saving on new pagesAndreas Gohr2010-08-11
| | | | When creating new pages, no date field is added in the edit form.
* Fixed automatic insertion of listbullets in Opera FS#1877Michael Hamann2010-06-27
| | | | | | | | The keydown event can't be prevented in Opera (see http://www.quirksmode.org/dom/events/keys.html) so this switches back to keypress in Opera (keypress doesn't give the correct key codes in Firefox). Furthermore Opera replaces '\n' by '\r\n' when inserting text, thus the offset for cursor/selection placement was wrong.
* Added missing ";" in edit.jsMichael Hamann2010-06-27
|
* FS#433: Editor now uses onbeforeunload event to capture ANY leaving of itGina Haeussge2010-06-27
| | | | | | | | besides via Save or Preview button. This has been successfully tested in FF, Chrome and IE6/7/8. Opera does not support onbeforeunload, therefore the draft is kept if the user navigates away from the editor. Please test this.
* Fix lock refresh and draft savingAdrian Lang2010-04-26
|
* Do not try to save a draft in alternative editorsAdrian Lang2010-03-26
|
* Rewrite JavaScript change checkAdrian Lang2010-03-26
|
* Various JavaScript fixesAdrian Lang2010-03-15
| | | | | | | | | * Syntax error fixed * lock refresh event is now attached to the whole edit form since it bubbles up and we cannot be sure that the wikitext input exists on all edit forms * Updated findPos(X|Y) * Easier and less error-prone way of getting the section edit button in the highlight mouseover event handler
* Fix textarea scrolling for list editingAdrian Lang2010-02-23
|
* Do not delete content after list on two entersAdrian Lang2010-02-11
|
* Cancel list if the last item is empty (two enter)Adrian Lang2010-01-26
|
* Merge branch 'master' of github.com:splitbrain/dokuwikiAdrian Lang2010-01-26
|\
| * do not use "editor cleverness" on selected textAndreas Gohr2010-01-26
| | | | | | | | | | | | This patch disables all keyhandling (as used for automatic list indention) when some text is selected. This fixes unexpected behavior when selecting some text at the start of a list item and hitting backspace.
* | Support for adding IDs and classes to toolbar buttonsAndreas Gohr2010-01-19
|/ | | | | | Ignore-this: 87db996b332355addacd81b1ac13b0ab darcs-hash:20091125144759-6e07b-601ea98a48d9d3c9dd3508cdb9cde9b86c83a5a3.gz
* Avoid whitespace because of toolbar pickers FS#1841Andreas Gohr2010-01-09
|
* fixed list indention codeAndreas Gohr2009-11-25
| | | | | | | Ignore-this: bd910501ef05d1341c1d67648dc66e32 Firefox doesn't send correct keycodes in onkeypress events darcs-hash:20091125085224-6e07b-ffce34608064ffe62708da5efb3065103ca95eda.gz
* do changecheck JS for default edit form onlyAndreas Gohr2009-11-07
| | | | | | Ignore-this: 27e51f5d17946587742ca29f640baad darcs-hash:20091107152648-7ad00-65c14f833fbb9fd66bffbe676ca659f63a4c8800.gz
* Fixed ssues on the "Page locked" screenAndreas Gohr2009-11-02
| | | | | | Ignore-this: 9d142450d439f26feb5cc0aefb5963da darcs-hash:20091102104643-6e07b-c26aa2fd5f3899e81b0e7e0e45b3c1d7043e8571.gz
* fixed scrolling issue in new list editing FS#1790Andreas Gohr2009-11-02
| | | | | | Ignore-this: 404026c070f3a0764cd3b20363333509 darcs-hash:20091102103712-6e07b-7fa6e59b7cac031e166af4b002bd1c40ba06c777.gz
* added bind() JS function got rid of all eval() callsAndreas Gohr2009-10-18
| | | | | | | | | | | | Ignore-this: 4c7b7b3ebc83ce596e8a7e41d6a88f09 Another round of cleaning up the JavaScript code. A new bind() utility function [1] was introduced and all eval() calls where removed from the toolbar code. [1] See http://www.cosmocode.de/en/blog/gohr/2009-10/15-javascript-fixing-the-closure-scope-in-loops darcs-hash:20091018201710-7ad00-d0bcfa62e28a7a360c8bb8303367a94a9fa78fe1.gz
* hide pickers with margin-left - fixes FS#1781Andreas Gohr2009-10-18
| | | | | | Ignore-this: 51cdec6032a57653543cc2f73f92fa74 darcs-hash:20091018135147-7ad00-7c58d9343250d2d331b820497df6807a71e9b5ef.gz
* Some JS cleanup, keep accesskeys working for hidden pickers FS#1761Andreas Gohr2009-10-17
| | | | | | Ignore-this: 3b6c8568615d24be7115adf8570f56bd darcs-hash:20091017180329-7ad00-9ff4a12c811f1a4c63e473dc6665928fda720850.gz
* fixed event handler attachmentAndreas Gohr2009-09-18
| | | | | | Ignore-this: 9ec0aa658bf73175401e4282663b7f68 darcs-hash:20090918101358-7ad00-28363725efc2c862a855683096f4db816e827f70.gz
* added class for headline pickerAndreas Gohr2009-08-27
| | | | | | Ignore-this: 6aee01f1e872490512480ff8cac566be darcs-hash:20090827142929-6e07b-2aba4d2ac75c870f0c6e4ec903ec3c9ce5863842.gz
* simplify JavaScript loadingAndreas Gohr2009-08-12
| | | | | | | | | | | | | | | | | | | | | Ignore-this: 7637977e042ed8ba7e9e9097f9e9f03f This patch removes the differences between the JavaScript loaded in edit and view modes. * increases the amount of JavaScript that is loaded initially * decreases the number of requests * only one cache for all javascript * all javascript is available in view mode The last point is the most important as it makes a lot of functionality available to plugins working in the view mode. The discussion plugin now can reuse the toolbar code for example. Note: development is part of ICKE 2.0 project http://www.icke-projekt.de darcs-hash:20090812194007-6e07b-c8a71dedf506065a95d8b84b55aafce67810236c.gz
* fixes another IE weirdnes when handling list itemsAndreas Gohr2009-08-05
| | | | | | | | | | | | Ignore-this: d5a0f9671af3607796332a1afcc8de79 Fixes a problem where list mode couldn't easily be left by removing a bullet. Hitting enter would readd a bullet always. note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090805123523-6e07b-46570b10a1422d04ad3c7251323568c712037864.gz
* Some text selection workarounds for MSIEAndreas Gohr2009-08-04
| | | | | | | | | | | | Ignore-this: b4a14bbf96712ec9ce9011e172f2af81 This patch solves some problems with reading the cursor positions and text selection on MSIE. note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090804150501-6e07b-5e3cf60261f5f51906df2d4cf15509e9075757e0.gz
* improved list handlingAndreas Gohr2009-08-04
| | | | | | | | | | | | | | | | | | | | | | | | | | Ignore-this: 2e4f3fbfb28917ee66cf3e1925c806d3 This patch adds multiple enhancements to handling lists and indented code blocks in the editor. 1. Pressing enter when in a list item or code block will keep the indention and adds a new list point 2. Pressing space at the start of a list item will indent the item to the next level 3. Pressing bckspace at the start of a list item will outdent the item to the previous level or delete the list bullet when you are at the 1st level already 4. A new type of formatting button called formatln is added. It applies formatting to several lines. It's used for the list buttons currently and makes it possible to convert mutiple lines to a list This enhncement are currently only tested in Firefox are most likely to break IE compatibility. A compatibility patch will be submitted later note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090804095707-7ad00-e565c66087c7121188ad7ece8265d9f64f7e6947.gz
* fixed headline level detectionAndreas Gohr2009-06-29
| | | | | | | | Ignore-this: 39675a7f375e3eb619228dbabda857ea This fixes incorrect headline headline level detetion when the text starts with a headline (eg. in most cases) darcs-hash:20090629211200-7ad00-d8a7cbe331806fcdbca70b5da188b387dc2c2a87.gz
* fix JS when compaction is enabledAndreas Gohr2009-05-28
| | | | | | Ignore-this: 4a6d9f3da25a04ec132cca2297328b1 darcs-hash:20090528161552-7ad00-679be8f486462e0b779039443d2af056ef8e5304.gz
* Make sub-toolbars in pickers possibleAndreas Gohr2009-05-28
| | | | | | | | Ignore-this: ace153a4684f7b345df56d796717a172 Now all types of buttons kan also be placed in a toolbar picker window. It should even be possible to create deep nested picker cascades. darcs-hash:20090528153507-7ad00-828c7a9022b7a4021bf8a74bcd0771373deee254.gz
* more javascript refactoringAndreas Gohr2009-05-28
| | | | | | Ignore-this: 10badc0f97ef80fcd366ae4622c43ff1 darcs-hash:20090528121543-7ad00-df34efabe84c632df9ef0c6fd691c991d2c3ac82.gz
* start of toolbar javascript refactoringAndreas Gohr2009-05-15
| | | | | | Ignore-this: 81ef7a71e6910751bf5d6c1b592978c4 darcs-hash:20090515173045-7ad00-e62f075dab9ec4dfa555554f4f50792ceccb97d7.gz
* late add DOKU_BASE for media popupAndreas Gohr2009-04-15
| | | | | | Ignore-this: 172ae2884fca0ee74d3b9c88c829dabe darcs-hash:20090415185449-7ad00-f9689ddbb2cc4a77aeb7a0cde338ca107187c0d5.gz
* stop most of the textarea jumping in IE8 (FS#1667)Anika Henke2009-04-10
| | | | darcs-hash:20090410184810-f7d6d-ce08cfcaa2f0e14992724a1c8e6484a35a5b8f3c.gz
* removed 'ALT+' from all titles of elements with accesskeys (FS#1172)Anika Henke2008-10-12
| | | | darcs-hash:20081012181638-f7d6d-d4614321134f78fc176688d8aaf9d9acccf1952e.gz
* removed all occurrences of onkeypress (FS#1449)Anika Henke2008-07-20
| | | | darcs-hash:20080720110738-d5083-50a92498622bd6ca9850da8f9417974fb39ccc3d.gz
* run summary check when inserting text via the toolbarGabriel Birke2008-07-16
| | | | darcs-hash:20080716191515-79ce3-47817a86b0ca99f576689e8ea8a3c8356e552654.gz
* correctly encode namespace in mediapopup URL FS#1319Andreas Gohr2008-02-15
| | | | darcs-hash:20080215094453-7ad00-a9ed8007f639ab9a163ea39cb6ce5dd43f639983.gz
* make toolbar JS functions accept absolute image pathsAndreas Gohr2007-11-23
| | | | darcs-hash:20071123102814-7ad00-c7060ea1daf8ff4a6d7fcb3ce912d3ce43410b35.gz
* fullpath fix for WindowsAndreas Gohr2007-09-30
| | | | darcs-hash:20070930214958-7ad00-bc8ca26f86ea4c9e68ea2b8f3cacc2a598543122.gz
* Arbitrary Button types in JS toolbarGabriel Birke2007-08-26
| | | | | | | | | | | | | | | | | | | | | This is my patch for creating toolbar buttons with arbitrary button types, tested with Firefox, Opera and IE7. If you want to create a new type of button, you must have a function in the script.js file of your plugin. The function name must begin with "addBtnAction", followed by the type name, for example for the type "myType" the function must be called "addBtnActionMyType" (bear in mind that the first char of the type must be uppercased in the function name). The function has four parameters: "btn" is the HTML element for the button where you attach the onclick handler "props" is an associative array of the array properties that come from the toolbar array that was created by toolbar.php "edid" (optional) is the id of the editor textarea "id" (optional) is a "unique" number for each button: the index variable of the for loop where the buttons get created. darcs-hash:20070826192206-79ce3-1fe6f49c1eb5d0c10adbadc43f7b2ee1aec1853e.gz
* correct hilighting of empty summary on previewTom N Harris2007-07-05
| | | | darcs-hash:20070705215447-6942e-d3e1124a3cfec6661a7077bc0d9707b156bc2313.gz
* JS checks for .hasOwnPropertywingedfox2007-01-11
| | | | | | | | | This patch includes - several helper functions - is* checks - hasOwnProperty method emulator - checks for .hasOwnProperty in all for..in loops darcs-hash:20070111114236-00f02-50a71681e5d04faf086f1b8032a384648378b744.gz
* use encodeURIComponent instead of encodeURI for variable valueschris2006-11-05
| | | | darcs-hash:20061105135805-9b6ab-c1d7835b9920402389a2d12a309582adae0872a5.gz
* link to media managerAndreas Gohr2006-05-19
| | | | | | | | This patch add a link to the media manager when no JavaScript is available. Users can upload and browse for pictures now without the need for JavaScript only inserting has to be done manually then. darcs-hash:20060519175959-7ad00-5ee77fd00d20bef9a36eee632a1c5897097ba4a8.gz
* new mediamanagerAndreas Gohr2006-05-19
| | | | | | | | | | | | | | | This patch adds a completely rewritten media popup. The following noteworthy changes were made: - media manager uses a collapsible namespace tree - media manager uses AJAX if available - media manager popup can be kept open when selecting a media file - only one template is used for the media manager :!: Template - Editable image metadata is configured in conf/mediameta.php now - The JS cookie mechanism was enhanced to store key/value pairs - Language strings can be exported to JS in js.php darcs-hash:20060519165023-7ad00-4932b4553fc919aa4a8b8187958b823acf4f8cee.gz
* javascript fix to mak sumarry checking use addEventAndreas Gohr2006-05-12
| | | | darcs-hash:20060512073949-7ad00-64c25a5f74939cd4ca17e5928d77f0951c67b3ac.gz
* empty default title for inserted images #770Andreas Gohr2006-05-07
| | | | darcs-hash:20060507165308-7ad00-3526c8c4e5d8c10a8e003068008e2344e94e1739.gz
* fix changecheck in IE FS#785Andreas Gohr2006-05-01
| | | | darcs-hash:20060430221451-7ad00-9729246270f67bcc955a42727595925e6f53a331.gz