Go to file
Ingo Schommer 3b8fb42654 Remove TinyMCE change detection on insert (breaks IE8)
The detection is triggered on first load, and in IE8 the
inserted value doesn't equal the value already in the textarea field.
That's possibly due to whitespace or encoding differences,
but they have the same character length.

Tried fixing this by whitespace removal, didn't work:
if((original || '').replace(/[\s\t\n\r]/g, '') != (value || '').replace(/[\s\t\n\r]/g, '')) {

In the end, we're already detecting changes through a 5s interval
triggering the save() method on the editor if the field is focused.
The impact of this removal is that after inserting an image,
it'll take a few seconds for the change detection to kick in
(and thus highlight the "save" button and ask for confirmation
when navigating away without saving).

See d12ae82f70 for context.
2013-10-31 14:40:28 +01:00
_config FIX: Move stage choosing into a pre-request filter. 2013-10-23 18:29:13 +13:00
.tx Translations: Switch to Transifex format 2013-08-07 00:25:16 +02:00
admin Set default encoding for compass 2013-10-30 16:11:11 +00:00
api FIX Changing public static $priority to private 2013-10-17 11:55:59 +01:00
cache Correct line length and indentation 2013-08-21 18:54:05 +12:00
cli API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
conf Merge remote-tracking branch 'origin/3.0' into 3.1 2013-06-19 14:03:43 +02:00
control FIX: Move stage choosing into a pre-request filter. 2013-10-23 18:29:13 +13:00
core Add backwards compatibility for has_extension 2013-10-11 10:18:00 -04:00
css GridField 'Add existing' action styling improvements 2013-10-22 16:44:28 +01:00
dev Removed deprecated log/email logic from Debug (fixes #2573) 2013-10-23 11:22:34 +02:00
docs Merge pull request #2592 from kinglozzer/docs-localhost-urls 2013-10-23 12:37:53 -07:00
email Email fluent API regression (fixes #2581) 2013-10-22 20:31:29 +02:00
filesystem BUGFIX: Without casting TreeTitle as HTMLText, unescape HTML appears in TreeDropdownField 2013-09-27 14:46:17 +12:00
forms Merge pull request #2411 from simonwelsh/circ_ref 2013-10-28 14:05:13 -07:00
i18n Feature to allow that changing the SSTemplateParser through the Injector system 2013-10-18 12:42:39 +13:00
images BUG: Display of AssetUpload upload fields 2013-05-25 18:01:07 +12:00
javascript Remove TinyMCE change detection on insert (breaks IE8) 2013-10-31 14:40:28 +01:00
lang Change default message to be credential agnostic. 2013-10-11 11:22:15 +13:00
model BUG Fix undefined index ID 2013-10-30 10:34:09 +13:00
oembed FIX oembed to avoid mixed media issues 2013-10-17 17:06:40 +13:00
parsers API: Pass extra context information to shortcode handlers. 2013-10-09 15:05:17 +11:00
scss GridField 'Add existing' action styling improvements 2013-10-22 16:44:28 +01:00
search Quote table/column names when falling back to $fullName 2013-07-05 10:41:18 +12:00
security Bad redirect in ChangePasswordForm->doChangePassword() 2013-10-30 09:57:28 +01:00
tasks NEW Merge i18nTextCollector with existing (fixes #1838) 2013-06-02 20:17:28 +02:00
templates HTML attr encoding for UploadField config 2013-10-17 10:55:11 +02:00
tests Merge pull request #2604 from chillu/pulls/versioned-single-stage 2013-10-29 01:40:40 -07:00
thirdparty Trailing semicolon to fix TinyMCE bug (fixes #2408) 2013-09-16 01:09:37 +02:00
view Feature to allow that changing the SSTemplateParser through the Injector system 2013-10-18 12:42:39 +13:00
_config.php Update the deprecation notification version to 3.1 2013-03-19 19:33:05 +11:00
_register_database.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
.gitignore ENHANCEMENT Message colours updated 2012-11-06 13:23:20 +13:00
.htaccess API: Remove static main and dev/buildcache 2012-09-21 19:56:56 +12:00
.scrutinizer.yml Exclude docs and images foldes from Scrutinizer 2013-08-21 18:53:58 +12:00
.travis.yml Running Behat tests on PHP 5.4 (needs integrated webserver) 2013-10-16 14:51:40 +02:00
cli-script.php Correct line length and indentation 2013-08-21 18:54:05 +12:00
composer.json Merge remote-tracking branch 'origin/2.4' into 3.0 2013-05-17 00:37:30 +02:00
config.rb Set default encoding for compass 2013-10-30 16:11:11 +00:00
CONTRIBUTING.md Added github-compatible contributing notes 2012-10-11 17:20:00 +02:00
main.php FIX flushing on non-dev when Session::cookie_secure is true 2013-08-21 09:50:07 +12:00
main.php5 MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Makefile ENHANCEMENT Allowing JSTestDriver execution in tests/javascript/ by adding bash scripts and new Makefile command ("make jasmine") 2011-03-22 18:05:43 +13:00
README.md Fixed broken github issue tracker link 2013-07-04 16:41:53 +01:00
sake API-CHANGE sapphire folder can now be renamed. 2012-04-15 10:50:19 +12:00
silverstripe_version API CHANGE silverstripe_version file now contains the plain version number, rather than an SVN path 2012-02-01 18:42:21 +01:00
web.config BUGFIX Disallow web access to sapphire/silverstripe_version to avoid information leakage 2010-12-09 22:53:24 +00:00

SilverStripe Framework

Build Status

PHP5 framework forming the base for the SilverStripe CMS (http://silverstripe.org). Requires a silverstripe-installer base project. Typically used alongside the cms module.

Installation

See installation on different platforms, and installation from source.

Bugtracker

Bugs are tracked on github.com. Please read our issue reporting guidelines.

Development and Contribution

If you would like to make changes to the SilverStripe core codebase, we have an extensive guide to contributing code.

License

Copyright (c) 2007-2013, SilverStripe Limited - www.silverstripe.com
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the 
      documentation and/or other materials provided with the distribution.
    * Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software 
      without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

Attribution