Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
544 lines (515 sloc) 23.5 KB
Version 1.5.0:
Updated French translation.
- Thanks to @KaseiFR
Updated shortcuts to be prettier.
- Thanks to @KaseiFR
Fixed bug with wrong button state with autofocus.
- Thanks to @OlafvdSpek for reporting.
Fixed IE selection bug when repeatedly opening dropdowns.
- Thanks to @q2apro for reporting.
Fixed bug with selection being modified when calling val().
- Thanks to @q2apro for reporting.
Fixed bug with dropdown not being removed when the editor is destroyed.
- Thanks to @odungern for reporting.
Fixed bug with getOuterText() not always getting all the text.
Fixed bug with selectOuterText() not selecting text across adjacent nodes.
Fixed bug with lists in WebKit which could cause infinite loops.
- Thanks to @taekvideo for reporting.
Removed more button from emoticons unless there are actually more.
- Thanks to @Destroy666x for reporting and @brunoais for fixing.
Fixed bug with emoticonsCompat sometimes removing surrounding text
when typing emoticons.
Fixed bug with XHTML plugin when input value contains invalid attributes.
- Thanks to Tim for reporting
Version 1.4.7:
Fixed bug with XHTML plugin not wrapping inline nodes in paragraphs.
- Thanks to @Heart1010 for reporting
Fixed bug with buttons appearing disabled in source mode.
- Thanks to @brunoais for reporting.
Fixed bug with undo plugin when the valueChanged event is triggered before
the ready event.
Fixed bug with undo plugin and IE < 8 compatibility.
Fixed bug in IE where styles are not applied to text inside of a table cell.
- Thanks to @AlbertPraveen for reporting.
Fixed bug with IE placing cursor at the start of the editor when a dropdown
contains a textarea or input.
Fixed bug with FF showing the cursor in the wrong position when it hasn't
had focus before.
- Thanks to @cyphix333 for reporting.
Fixed bug with IE placing cursor inside table tag when inserted.
- Thanks to @jetand for reporting.
Fixed bug with IE placing the cursor before emoticons after inserting them.
Version 1.4.6:
Fixed resize issue with Android browsers.
- Thanks to @scripple for fixing.
Fixed bug with table being turned into paragraphs.
- Thanks to @jetand for fixing.
Refactored the code so that it's in modules.
The code is now much more readable and far easier to maintain and test.
This change is 100% backwards compatible with the minified version and
running the build will also create a backwards compatible non-minified
version.
The non-minified non-built code will require an AMD module loader to
load it.
Refactored all the unit tests for the new modules.
Added manual tests.
Fixed bug with RangeHelper.getOuterText() in IE < 9 when getting text after
Fixed bug with RangeHelper.insertNode() in IE < 9 when inserting a documentFragment
Fixed bug with dom.extractContents() method moving extracted element
children into the returned documentFragment
Fixed bug with valueChanged event causing an error if the editor is
destroyed before it has finished its checks.
Enabled valueChanged on sourceMode.
Updated the Brazilian Portuguese translation.
- Thanks to @martec
Fixed HTML to BBCode newline handling causing extra newlines to be added.
- Thanks to @jetand for reporting.
Added SaurceLabs integration to automatically run QUnit tests in multiple
browsers.
Added undo plugin.
- Thanks to @brunoais for creating.
Added galician and catalan translations and updated Spanish translation.
- Thanks to @FranSobrino for translating.
Fixed bug with FF causing newline to appear when something is typed.
- Thanks to @q2apro for reporting.
Fixed bug with spaces sometimes disappearing from pasted text when using the
XHTML plugin.
- Thanks to @q2apro for reporting.
Fixed issue with YouTube not showing fullscreen button inside the editor.
- Thanks to @kron-1 for reporting.
Fixed bug causing window to scroll when blur is called in FF.
- Thanks to @spuds for reporting.
Remove deprecated keyPress property from commands.
Fixed bug with button states not being updated when called via shortcuts.
- Thanks to @echteinfachtv for reporting.
Added Lithuanian translation.
- Thanks to @q2apro for translating.
Fixed bug causing newlines to not always be added when return is pressed
at the end of quotes and code blocks.
- Thanks to @barbuslex for reporting.
Changed the http:// value in inputs to be a placeholder.
Changed createDropDown() to focus on the first input or textarea element.
Fixed bug with lists inside quote blocks.
- Thanks to @barbuslex for reporting.
Fixed bug with code blocks not being removed when backspace is pressed.
Fixed bug with IE not removing blocks when backspace is pressed.
Added optional description to email dropdown.
- Thanks to @PaulBender for suggesting.
Fixed bug with autoUpdate causing double clicking on [sub]/[sup] to not
remove styling.
- Thanks to @q2apro for reporting.
Fixed possible XSS attack in IE <= 8 when using BBCode plugin to edit
malicious BBCode.
Improved build and added CSS autoprefixer.
- Thanks to @Gazenwagen for improving
Added Czech translation
- Thanks to Daniel Vítek for translating
Fixed source button not showing as active when in source mode.
- Thanks to @cyphix333 for reporting.
Fixed bug with extra newlines being added.
- Thanks to @cyphix333 for reporting.
Version 1.4.5:
Added command shortcuts to tooltips.
- Thanks to @brunoais
Added Portuguese translation.
- Thanks to @brunoais
Added list indent and outdent commands.
- Thanks to @brunoais
Added Ukrainian translation.
Thanks to @aqrln for translating
Fixed bug with BBCode source editor creating links with [img] tags selected.
- Thanks to @liamdawe for reporting.
Fixed issue with insert() and FF.
- Thanks to @martec for reporting.
Fixed in IE8 and below with XHTML font size attribute conversion.
Fixed typo in German translation.
- Thanks to Ulf for reporting.
Removed build.sh as grunt now does everything build.sh could.
Added Italian translation.
- Thanks to Tropico for translating.
Fixed bug when insert empty node.
- Thanks to @spuds for reporting.
Fixed FF bug with dropdowns not opening via shortcuts.
- Thanks to @echteinfachtv for reporting.
Improved inserting so only scrolls if the end of the inserted HTML isn't in view.
Added zh-TW translation.
- Thanks to @gan068 for translating.
Updated Polish translation.
- Thanks to @gnysek for updating.
Fix possible XSS if editing loading BBCode that someone else has written.
- Thanks to for Sergiu reporting.
Fixed default font size.
- Thanks to @jetand for fixing.
Added Japanese translation.
- Thanks to @PyYoshi for translating.
Fixed bug with XHTML plugin stripping iframes.
- Thanks to @tim-se for reporting.
Fixed bug with IE11 newline handling.
Version 1.4.4:
Fixed height auto expanding when resized.
- Thanks to @TimWardC3 for reporting
Fixed emoticons with greater than (>) not being converted.
- Thanks to @imansa for reporting.
Improved emoticonsCompat support so emoticons are converted to text if whitespace is removed.
- Thanks to @ostinelli for reporting
Fixed bug causing spaces to not be inserted when an emoticon is inserted in emoticonsCompat mode.
- Thanks to @ostinelli for reporting
Fixed bug with toolbar not being removed by destroy() when in a custom toolbarContainer.
- Thanks to @imansa for reporting.
Added currentBlockNode() method.
Improved multiline lists in source mode.
- Thanks to @liamdawe for reporting.
Improve theme compatibility.
Fixed issue with iOS not breaking long words.
- Thanks to Francesco for reporting.
Fixed bug with IE not releasing focus when autoUpdate is enabled.
- Thanks to @LeeMcNeil for reporting.
Improved IE range handling.
Fixed IE height bug where blur() method increased the editors height.
Fixed IE6/7 bug where there was a 2px height difference between WYSIWYG and source modes.
Fixed new line auto appending after code/quote blocks not working.
- Thanks to @Dr1ks for reporting.
Fixed issue with Opera adding blank lines.
- Thanks to @Dr1ks for reporting.
Improved unlink to remove links without selecting the whole link.
- Thanks to @liamdawe for reporting.
Fixed newline after [quote] being stripped.
- Thanks to @liamdawe for reporting.
Fixed IE bug loading initially loading shorthand colors.
- Thanks to @Olive140 for reporting.
Added bbcodeTrim option.
Fixed bug with stripWhiteSpace and saved ranges causing a space after the caret to be removed.
Added spellcheck option to disable the browsers built in spellchecker.
Added ability to remove block level elements by placing the cursor at the start of them and
pressing backspace.
Added Greek translation.
- Thanks to Nikos Aggelis for translating.
Improved insert and pasting to scroll to after the inserted/pasted content.
Fixed bug with emoticons sometimes getting converted in code blocks.
Added Hungarian translation
- Thanks to Ángyán László for translating.
Version 1.4.3:
Added css() method which allows getting/setting inline CSS for the WYSIWYG editor.
Added Simplified Chinese translation.
- Thanks to Yorgo for translating.
Fixed bug with insert() and setting filtering to false.
Added Travis-CI testing and improved tests
Fixed bug with emoticons preloading even if disabled.
- Thanks to @novadk for reporting.
Fixed error when editor is hidden and autofocus is enabled.
Fixed bug with insert() removing first or last div even if it has styling.
Fixed error with IE 8 height.
- Thanks to @arjunasuresh3 for reporting and fixing.
Added toBBCode() and fromBBCode() methods.
Fixed bug with spaces being removed if they are the only content of a tag.
Renamed Norwegian translation from no-NB to nb-NO.
- Thanks to @tim-se for reporting
Fixed bug with jQuery UI dialogs appearing behind the editor.
- Thanks to @OmarHawk for reporting
Added toolbarExclude option.
- Thanks to @tim-se for suggestion
Fixed bug with unclosed BBCode tags being parsed as if they had a closing tag.
- Thanks to @KN4CK3R for reporting
Added Polish translation.
- Thanks to @TheKerimek for translating
Fixed bug with IE 10 not being able to select outside of the editor.
- Thanks to @novadk for reporting
Added getBody() method which gets the WYSIWYG body node.
- Thanks to @arjunasuresh3 for adding
Made selectOuterText() and getOuterText() methods on the rangeHelper accessible.
Greatly increased the number of tests.
Improved the XHTML plugin.
Fixed bug with XHTML plugin outputting <br /> when editor is empty.
- Thanks to @tim-se for reporting
Fixed Mozilla's junk attributes, type="_moz", _moz_dirty="" and _moz_editor_bogus_node.
- Thanks to @tim-se for reporting
Added XHTML format plugin.
Added shortcut support.
Added Persian translation.
- Thanks to @ebadgh for translating!
Version 1.4.2:
Added emoticons() method which allows enabling/disabling emoticons at runtime.
Fixed bug with jQuery UI dialogs and SCEditor dropdowns appearing behind them.
- Thanks to @EugeneAksyonov for reporting
Fixed bug with multiple editors and maximise.
- Thanks to Tauno for reporting
Fixed whitespace handling bug causing new lines to be removed from text pasted from Word.
- Thanks to @lpuig for reporting
Improved dropdowns to close if the button is clicked twice.
- Thanks to @hhy89 for updating
Fixed bug with Chrome losing the selection when using autoUpdate option.
- Thanks to @lpuig for reporting
Added support for auto focus to place the cursor at the end.
Fixed bug where pasted emoticons ":)" were not being converted into emoticon images.
- Thanks to @shaoner for reporting
Fixed bug where if the BBCode styles property was null it caused an error.
- Thanks to @OmarHawk for reporting
Fixed bug with iOS losing focus.
- Thanks to @coder4u for reporting.
Fixed bug with emoticonsRoot option not working at startup.
- Thanks to @tucan39 for reporting
Fixed bug with unknown BBCodes being handled incorrectly.
- Thanks to @KN4CK3R for reporting
Fixed bug with % based widths and heights.
Fixed bug with editor height when created in a hidden div.
- Thanks to @berridgeab for reporting
Fixed bug with new lines and when two block level elements are next to each other.
- Thanks to @martec for reporting
Fixed bug with emoticonsRoot being preprended multiple times if more than one editor instance.
- Thanks to @KN4CK3R for reporting
Version 1.4.1:
Dropped GPL to match jQuery license.
The editor can still be used under the GPLv2, GPLv3 or any other MIT compatible
license. Changes can't be submitted back unless they are licensed under the MIT
but then they couldn't before either as it was dual licensed under the MTI so
really there isn't any change, just a bit simpler.
Added blur, keyDown, keyPress and KeyUp helpers
Added Turkish translation
- Thanks to @MYaman34 for translating.
Added button state support
Added better plugin system
Fixed emoticons now showing their code as a tooltip.
Added support for custom emoticon tooltips.
- Thanks to @Spuds for reporting
Added nodechanged event.
Improved BBCode attribute quoting support.
- Thanks to @Spuds for reporting
Added Arabic translation.
- Thanks to @Atramez-Zeton for translating
Added disablePasting option.
Fixed problem with HTML5 form validation not working when using the editor.
The editor will now just remove the required attribute from the original textarea
so validation will either need to be done server side or manually.
Added tabindex support. The tabindex will be picked up from the original textarea.
- Thanks to @bmxgrover for reporting
- Thanks to @Spuds for reporting
Fixed bug with nested lists.
- Thanks to @brunoais for reporting.
Improved IE resize speed.
Update themes to support showing active commands.
Update themes to support showing a commands icon, text or both.
Added new Monocon icons, licensed under the MIT license.
Added selectionchanged event
Fixed bug with LTR command not working.
- Thanks to @charafweb for reporting
Added zIndex option to allow setting the containers z-index.
Fixes bug with modal jQuery UI dialogs.
- Thanks to @prdatur for reporting and the fix.
Fixed bug with percentage based widths.
- Thanks to @charafweb for reporting.
Improved RTL support. Added rtl() helper and improved all themes RTL support.
Added maximize command and maximize() helper.
Fixed bug with sentences wrapped in [] sometimes causing problems.
- Thanks to @liamdawe for reporting
Version 1.4.0:
New theme "square" added
Some none-backwards compatible tidying:
All occurrences of textEditor have been changed to sourceEditor
updateTextareaValue has been changed to updateOriginal
destory has finally been renamed to destroy
Removed deprecated setCommand and commandExists functions.
Added resizeWidth and resizeHeight options to allow disabling of either
width or height resizing while keeping the other
Improved resize handling
Updated build.php
Fixed bug with emoticons containing backslashes.
- Thanks to emanuele45 for the fix.
Fixed bug when pasting from Word.
- Thanks to @Spuds for reporting.
Fixed bug causing scrollbar to change when inserting BBCode in source mode.
- Thanks to Martec for reporting
Fixed bug causing cursor position to be lost in FF when getting the editors value.
- Thanks to @Spuds for reporting
Improve IE support
Moved roadmap from GitHub wiki to source directory
for easier editing.
Added a new much more flexible BBCode parser
Added new option to auto-update original textbox on blur event occurring on SCEditor.
- Thanks to @maiiku for adding this feature
Updated sceditor() to return the instance/instances of the editor by passing "instance"
to sceditor() and protect against re-initialization.
- Thanks to @maiiku for reporting
Updated sceditor() to return the current state of the editor by passing
state to sceditor().
- Thanks to @maiiku
Added IE 10 support
Added Vietnamese translation.
- Thanks to Chien for translating
Added plugins option
- Thanks to @maiiku
Updated editor to force new line after code and quote tags so that text can
be entered after them.
- Thanks to Logan
Version 1.3.7:
Fix emoticon "more" button closing the dropdown
Fix blur() function causing small box to appear in IE
Update theme so that the container has no z-index set
Version 1.3.6:
Added Spanish translation
- Thanks to Maxpower for translating
Fixed YouTube command not matching youtu.be URLs
Added form reset support
Added autoExpand option
Fixed bug related to inserting BBCodes in source mode when textarea is empty.
- Thanks to Martec for reporting
Fixed stripQuotes bug
- Thanks to Maxpower for reporting
Fixed destory() to stop memory leak
Fixed iOS bug with content overflowing the container
Fixed font size BBCode bug with WebOS browser
Added blur() function
Fixed list bug where newlines from the end would be removed
- Thanks to Birkoff Keren for reporting
Fixed whitespace removal bug causing some whitespace to be left.
- Thanks to Martec for reporting
Fixed val() helper function bug returning HTML when in source mode.
- Thanks to Maxpower for reporting
Fixed bug with IE compatibility modes "Quirks" and "IE 7" causing new lines
not to show.
Version 1.3.5:
Fixed bug in FF making pasting via right click difficult when empty
- Thanks to Nibogo2 for reporting
Added readonly method and option
Added expandToContent method
Reorganised themes to their own directory.
Changed themes to be in .less format and added to build file
Added modern, office-toolbar and office themes
Added autofocus option
Added a roadmap to the GitHub wiki
Added height and width methods
Added method to check for WYSIWYG support
Changed so that by default the editor won't start in browsers
that do not support WYSIWYG editing (old mobile browsers)
Added rtl option along with rtl & ltr commands
Added id option
Added sourceMode, val, insertText and insert methods
Fixed quote bug where author from nested quotes would be removed
Added Estonian language file
- Thanks to Rivo for translating
Fixed bug with dom.fixNesting when fixing certain tags
Improve adding/updating/removing of commands and BBCodes
Fixed bug causing elements that are styled with display: block to be treated
as block level elements
- Thanks to Rene for reporting
Added Brazilian Portuguese language file
- Thanks to Martec for translating
Version 1.3.4:
Updated focus method to work in source mode
Added public inSourceMode method
Fixed bug causing BBCodes to be striped
- Thanks to Nibogo2 for reporting
Version 1.3.3:
Added dropDownCss option, thanks to @esion
Add txtExec option to setCommand function
Updated BBCode plugin to support some BBCodes in source mode
Updated editor to disable AYT emotion conversion if emotions is not in toolbar
Fixed rare problem with value not being submitted
- Thanks to Marco for reporting
Added experimental paste filtering
Version 1.3.2:
Created rangeHelper class to improve code quality
Fix bug with IE8 and below related to newlines
Updated to remove empty BBCodes such as [b][/b]
Version 1.3.1:
Add emoticonsRoot option. Allows adding a root URL to be prepended to all emoticons.
- Thanks to @primehalo for the idea
Fix IE9 bug showing resize handles
Fix IE ranges sometimes causing the last typed character to be unselected
- Thanks to Maxime Lemercier for reporting
Version 1.3.0:
Add package.json file
Add Contribute to README
Add GitHub pages page
Fix newline bug. This greatly improves the BBCode to HTML parsers handling of newlines.
Version 1.2.9:
Started on improving accessibility
Added charset option
Updated quote command to support authors
Fix Webkit based bug causing newlines not to be added sometimes
- Thanks to Robin for reporting and extra help providing information
Added Swedish translation kindly submitted by Robin
Added French translation kindly submitted by Nicolas
Fix extra newlines being included in quotes
Removed undo/redo commands as they cause Safari to reopen closed tabs if they have been closed
after the point being undone.
- This happens with other editors and also on plain HTML text inputs. Thanks to Robin for finding and reporting.
Fixed header (h1, h2, h3, ect.) related BBCode bug
Removed Undo/Redo images from the sprite
Small tweak to BBCode parser to improve IE UX
Make BBCode parser strip unused whitespace to improve copying HTML from websites
Fix newline problem with [code] tag
Started adding unit tests to what can be tested
- WYSIWYG will still need manual testing as faking user input is ugly or just not possible
Fix IE < 8 newlines bug
Version 1.2.8:
Updated to use contentEditable if supported. This fixes some selection issues in IE9
Fixed problem with YouTube videos hiding after switching between WYSIWYG and source modes
Added new build page
Fixed bug causing quotes with author attributes to lose their content
Fixed HTML5 form required attribute compatibility
Added destroy function to enable removing the editor
Updated editor to only pre-load emoticons when they are in the toolbar.
Idea from kaen25's[https://github.com/kaen25/] fork.
Added Dutch translation kindly submitted by Samuel
Added German translation kindly submitted by Tina
Changed I18n to default to just the ISO 639-1 and only include the dialect when needed
Version 1.2.7:
Added options for emoticons to require spaces around them for compatibility.
i.e. If you have the emoticon :/ it will not replace http://. This
mode currently has limited As You Tyne emoticon conversion.
Fixed problem with YouTube dropdown
Fixed Opera problem with [url]
Fixed problem with default style causing table to have size tags wrapped around them
Fixed dropdowns being hidden behind YouTube videos
Fixed empty tables being inserted if columns and rows are set to 0
Updated so that when enter is pressed on code or quotes a new line is always inserted
Updated quote behaviour to insert selected text into the quote rather than replace it
Updated editor to not allow block level elements inside inline elements
Fixed problem with Opera not allowing text to be aligned after switching from WYSIWYG to source modes and back again
Updated so there is always a newline at the end of the editor if a quote or code is inserted. Allows to get out of them.
Updated to allow only certain bbcode tags within tags
Fix bug with IE selection
Version 1.2.6:
Added i18n support
Added support for text mode commands and disabling all non-text mode commands when in text mode
Fixed date bug that caused the month to be out by -1
Fixed newlines being removed from [code] tags
Fixed newlines being added to tables when switching between source and design mode
Fixed error when attempting to insert HTML before anything has been entered in the editor
Version 1.2.5:
Fixed IE select problem.
Fixed percent based width/height problem.
Version 1.2.4:
Added custom commands support.
Added date format option.
Added ability for % to be set as width/height.
Improved IE support.
Version 1.2.3:
Added resize support.
Fixed IE 9 bug.
Fixed Opera colour picker bug.
Added hidden emoticons option.
Version 1.2.2:
Improved the code to update the forms textarea value.
Improved As You Type emoticon support.
General code tidying.
Fix typo with image insert.
Added YouTube embedding.
Version 1.2.1:
Fix BBCode color bug.
Improved colour picker speed.
Improved styling.
Fix IE6 bug where colour picker boxes are slightly bigger.
Add optional width/height to image insert.
Version 1.2:
Fix typo stopping value getting posted
Added code tag.
Added Quote tag.
Improved how HTML is inserted.
Version 1.1:
Improved colour picker performance
Fixed BBCode bold bug with FF 3.5
Changed toolbar CSS to use a sprite
Fixed rounded corners CSS in Chrome
Version 1:
First version
Something went wrong with that request. Please try again.