UNPKG

alpaca

Version:

Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide

497 lines 68.8 kB
Version 4.1.7 (2014-11-27) Added HTML5 schema support for srcset, source and picture. Patch contributed by mattheu. Added new cache_suffix setting to enable cache busting by producing unique urls. Added new paste_convert_word_fake_lists option to enable users to disable the fake lists convert logic. Fixed so advlist style changes adds undo levels for each change. Fixed bug where WebKit would sometimes produce an exception when the autolink plugin where looking for URLs. Fixed bug where IE 7 wouldn't be rendered properly due to to aggressive css compression. Fixed bug where DomQuery wouldn't accept window as constructor element. Fixed bug where the color picker in 3.x dialogs wouldn't work properly. Patch contributed by Callidior. Fixed bug where the image plugin wouldn't respect the document_base_url. Fixed bug where the jQuery plugin would fail to append to elements named array prototype names. Version 4.1.6 (2014-10-08) Fixed bug with clicking on the scrollbar of the iframe would cause a JS error to be thrown. Fixed bug where null would produce an exception if you passed it to selection.setRng. Fixed bug where Ctrl/Cmd+Tab would indent the current list item if you switched tabs in the browser. Fixed bug where pasting empty cells from Excel would result in a broken table. Fixed bug where it wasn't possible to switch back to default list style type. Fixed issue where the select all quirk fix would fire for other modifiers than Ctrl/Cmd combinations. Replaced jake with grunt since it is more mainstream and has better plugin support. Version 4.1.5 (2014-09-09) Fixed bug where sometimes the resize rectangles wouldn't properly render on images on WebKit/Blink. Fixed bug in list plugin where delete/backspace would merge empty LI elements in lists incorrectly. Fixed bug where empty list elements would result in empty LI elements without it's parent container. Fixed bug where backspace in empty caret formated element could produce an type error exception of Gecko. Fixed bug where lists pasted from word with a custom start index above 9 wouldn't be properly handled. Fixed bug where tabfocus plugin would tab out of the editor instance even if the default action was prevented. Fixed bug where tabfocus wouldn't tab properly to other adjacent editor instances. Fixed bug where the DOMUtils setStyles wouldn't properly removed or update the data-mce-style attribute. Fixed bug where dialog select boxes would be placed incorrectly if document.body wasn't statically positioned. Fixed bug where pasting would sometimes scroll to the top of page if the user was using the autoresize plugin. Fixed bug where caret wouldn't be properly rendered by Chrome when clicking on the iframes documentElement. Fixed so custom images for menubutton/splitbutton can be provided. Patch contributed by Naim Hammadi. Fixed so the default action of windows closing can be prevented by blocking the default action of the close event. Fixed so nodeChange and focus of the editor isn't automatically performed when opening sub dialogs. Version 4.1.4 (2014-08-21) Added new media_filter_html option to media plugin that blocks any conditional comments, scripts etc within a video element. Added new content_security_policy option allows you to set custom policy for iframe contents. Patch contributed by Francois Chagnon. Fixed bug where activate/deactivate events wasn't firing properly when switching between editors. Fixed bug where placing the caret on iOS was difficult due to a WebKit bug with touch events. Fixed bug where the resize helper wouldn't render properly on older IE versions. Fixed bug where resizing images inside tables on older IE versions would sometimes fail depending mouse position. Fixed bug where editor.insertContent would produce an exception when inserting select/option elements. Fixed bug where extra empty paragraphs would be produced if block elements where inserted inside span elements. Fixed bug where the spellchecker menu item wouldn't be properly checked if spell checking was started before it was rendered. Fixed bug where the DomQuery filter function wouldn't remove non elements from collection. Fixed bug where document with custom document.domain wouldn't properly render the editor. Fixed bug where IE 8 would throw exception when trying to enter invalid color values into colorboxes. Fixed bug where undo manager could incorrectly add an extra undo level when custom resize handles was removed. Fixed bug where it wouldn't be possible to alter cell properties properly on table cells on IE 8. Fixed so the color picker button in table dialog isn't shown unless you include the colorpicker plugin or add your own custom color picker. Fixed so activate/deactivate events fire when windowManager opens a window since. Fixed so the table advtab options isn't separated by an underscore to normalize naming with image_advtab option. Fixed so the table cell dialog has proper padding when the advanced tab in disabled. Version 4.1.3 (2014-07-29) Added event binding logic to tinymce.util.XHR making it possible to override headers and settings before any request is made. Fixed bug where drag events wasn't fireing properly on older IE versions since the event handlers where bound to document. Fixed bug where drag/dropping contents within the editor on IE would force the contents into plain text mode even if it was internal content. Fixed bug where IE 7 wouldn't open menus properly due to a resize bug in the browser auto closing them immediately. Fixed bug where the DOMUtils getPos logic wouldn't produce a valid coordinate inside the body if the body was positioned non static. Fixed bug where the element path and format state wasn't properly updated if you had the wordcount plugin enabled. Fixed bug where a comment at the beginning of source would produce an exception in the formatter logic. Fixed bug where setAttrib/getAttrib on null would throw exception together with any hooked attributes like style. Fixed bug where table sizes wasn't properly retained when copy/pasting on WebKit/Blink. Fixed bug where WebKit/Blink would produce colors in RGB format instead of the forced HEX format when deleting contents. Fixed bug where the width attribute wasn't updated on tables if you changed the size inside the table dialog. Fixed bug where control selection wasn't properly handled when the caret was placed directly after an image. Fixed bug where selecting the contents of table cells using the selection.select method wouldn't place the caret properly. Fixed bug where the selection state for images wasn't removed when placing the caret right after an image on WebKit/Blink. Fixed bug where all events wasn't properly unbound when and editor instance was removed or destroyed by some external innerHTML call. Fixed bug where it wasn't possible or very hard to select images on iOS when the onscreen keyboard was visible. Fixed so auto_focus can take a boolean argument this will auto focus the last initialized editor might be useful for single inits. Fixed so word auto detect lists logic works better for faked lists that doesn't have specific markup. Fixed so nodeChange gets fired on mouseup as it used to before 4.1.1 we optimized that event to fire less often. Removed the finish menu item from spellchecker menu since it's redundant you can stop spellchecking by toggling menu item or button. Version 4.1.2 (2014-07-15) Added offset/grep to DomQuery class works basically the same as it's jQuery equivalent. Fixed bug where backspace/delete or setContent with an empty string would remove header data when using the fullpage plugin. Fixed bug where tinymce.remove with a selector not matching any editors would remove all editors. Fixed bug where resizing of the editor didn't work since the theme was calling setStyles instead of setStyle. Fixed bug where IE 7 would fail to append html fragments to iframe document when using DomQuery. Fixed bug where the getStyle DOMUtils method would produce an exception if it was called with null as it's element. Fixed bug where the paste plugin would remove the element if the none of the paste_webkit_styles rules matched the current style. Fixed bug where contextmenu table items wouldn't work properly on IE since it would some times fire an incorrect selection change. Fixed bug where the padding/border values wasn't used in the size calculation for the body size when using autoresize. Patch contributed by Matt Whelan. Fixed bug where conditional word comments wouldn't be properly removed when pasting plain text. Fixed bug where resizing would sometime fail on IE 11 when the mouseup occurred inside the resizable element. Fixed so the iframe gets initialized without any inline event handlers for better CSP support. Patch contributed by Matt Whelan. Fixed so the tinymce.dom.Sizzle is the latest version of sizzle this resolves the document context bug. Version 4.1.1 (2014-07-08) Fixed bug where pasting plain text on some WebKit versions would result in an empty line. Fixed bug where resizing images inside tables on IE 11 wouldn't work properly. Fixed bug where IE 11 would sometimes throw "Invalid argument" exception when editor contents was set to an empty string. Fixed bug where document.activeElement would throw exceptions on IE 9 when that element was hidden or removed from dom. Fixed bug where WebKit/Blink sometimes produced br elements with the Apple-interchange-newline class. Fixed bug where table cell selection wasn't properly removed when copy/pasting table cells. Fixed bug where pasting nested list items from Word wouldn't produce proper semantic nested lists. Fixed bug where right clicking using the contextmenu plugin on WebKit/Blink on Mac OS X would select the target current word or line. Fixed bug where it wasn't possible to alter table cell properties on IE 8 using the context menu. Fixed bug where the resize helper wouldn't be correctly positioned on older IE versions. Fixed bug where fullpage plugin would produce an error if you didn't specify a doctype encoding. Fixed bug where anchor plugin would get the name/id of the current element even if it wasn't anchor element. Fixed bug where visual aids for tables wouldn't be properly disabled when changing the border size. Fixed bug where some control selection events wasn't properly fired on older IE versions. Fixed bug where table cell selection on older IE versions would prevent resizing of images. Fixed bug with paste_data_images paste option not working properly on modern IE versions. Fixed bug where custom elements with underscores in the name wasn't properly parsed/serialized. Fixed bug where applying inline formats to nested list elements would produce an incorrect formatting result. Fixed so it's possible to hide items from elements path by using preventDefault/stopPropagation. Fixed so inline mode toolbar gets rendered right aligned if the editable element positioned to the documents right edge. Fixed so empty inline elements inside empty block elements doesn't get removed if configured to be kept intact. Fixed so DomQuery parentsUntil/prevUntil/nextUntil supports selectors/elements/filters etc. Fixed so legacyoutput plugin overrides fontselect and fontsizeselect controls and handles font elements properly. Version 4.1.0 (2014-06-18) Added new file_picker_callback option to replace the old file_browser_callback the latter will still work though. Added new custom colors to textcolor plugin will be displayed if a color picker is provided also shows the latest colors. Added new color_picker_callback option to enable you to add custom color pickers to the editor. Added new advanced tabs to table/cell/row dialogs to enable you to select colors for border/background. Added new colorpicker plugin that lets you select colors from a hsv color picker. Added new tinymce.util.Color class to handle color parsing and converting. Added new colorpicker UI widget element lets you add a hsv color picker to any form/window. Added new textpattern plugin that allows you to use markdown like text patterns to format contents. Added new resize helper element that shows the current width & height while resizing. Added new "once" method to Editor and EventDispatcher enables since callback execution events. Added new jQuery like class under tinymce.dom.DomQuery it's exposed on editor instances (editor.$) and globally under (tinymce.$). Fixed so the default resize method for images are proportional shift/ctrl can be used to make an unproportional size. Fixed bug where the image_dimensions option of the image plugin would cause exceptions when it tried to update the size. Fixed bug where table cell dialog class field wasn't properly updated when editing an a table cell with an existing class. Fixed bug where Safari on Mac would produce webkit-fake-url for pasted images so these are now removed. Fixed bug where the nodeChange event would get fired before the selection was changed when clicking inside the current selection range. Fixed bug where valid_classes option would cause exception when it removed internal prefixed classes like mce-item-. Fixed bug where backspace would cause navigation in IE 8 on an inline element and after a caret formatting was applied. Fixed so placeholder images produced by the media plugin gets selected when inserted/edited. Fixed so it's possible to drag in images when the paste_data_images option is enabled. Might be useful for mail clients. Fixed so images doesn't get a width/height applied if the image_dimensions option is set to false useful for responsive contents. Fixed so it's possible to pass in an optional arguments object for the nodeChanged function to be passed to all nodechange event listeners. Fixed bug where media plugin embed code didn't update correctly. Version 4.0.28 (2014-05-27) Fixed critical issue with empty urls producing an exception when converted into absolute urls due to resent bug fix in tinymce.util.URI. Version 4.0.27 (2014-05-27) Added support for definition lists to lists plugin and enter key logic. This can now created by the format menu. Added cmd option for the style_formats menu enables you to toggle commands on/off using the formats menu for example lists. Added definition lists to visualblocks plugin so these are properly visualized like other list elements. Added new paste_merge_formats option that reduces the number of nested text format elements produced on paste. Enabled by default. Added better support for nested link_list/image_list menu items each item can now have a "menu" item with subitems. Added "Add to Dictionary" support to spellchecker plugin when the backend tells that this feature is available. Added new table_default_attributes/table_default_styles options patch contributed by Dan Villiom Podlaski Christiansen. Added new table_class_list/table_cell_class_list/table_row_class_list options to table plugin. Added new invalid_styles/valid_classes options to better control what gets returned for the style/class attribute. Added new file_browser_callback_types option that allows you to specify where to display the picker based on dialog type. Fixed so the selected state is properly handled on nested menu items in listboxes patch contributed by Jelle Kralt. Fixed so the invisiblity css value for TinyMCE gets set to inherit instead of visible to better support dialog scripts like reveal. Fixed bug where Gecko would remove anchors when pasting since the their default built in logic removes empty nodes. Fixed bug where it wasn't possible to paste on Chrome Andoid since it doesn't properly support the Clipboard API yet. Fixed bug where user defined type attribute value of text/javascript didn't get properly serialized. Fixed bug where space in span elements would removed when the element was considered empty. Fixed bug where the undo/redo button states didn't change if you removed all undo levels using undoManager.clear. Fixed bug where unencoded links inside query strings or hash values would get processed by the relative urls logic. Fixed bug where contextmenu would automatically close in inline editing mode on Firefox running on Mac. Fixed bug where Gecko/IE would produce multiple BR elements when forced_root_block was set to false and a table was the last child of body. Fixed bug where custom queryCommandState handlers didn't properly handle boolean states. Fixed bug where auto closing float panels link menus wasn't automatically closed when the window was resized. Fixed bug where the image plugin wouldn't update image dimensions when the current image was changed using the image_list select box. Fixed bug with paste plugin not properly removing paste bin on Safari Mac when using the cmd+shift+v keyboard command. Fixed bug where the paste plugin wouln't properly strip trailing br elements under very specific scenarios. Fixed bug where enter key wouldn't properly place the caret on Gecko when pressing enter in a text block with a br ended line inside. Fixed bug where Safari Mac shortcuts like Cmd+Opt+L didn't get passed through to the browser due to a Quirks fix. Fixed so plain text mode works better when it converts rich text to plain text when pasting from for example Word. Fixed so numeric keycodes can be used in the shortcut format enabling support for any key to be specified. Fixed so table cells can be navigated with tab key and new rows gets automatically added when you are at the last cell. Fixed bug where formatting before cursor gets removed when toggled off for continued content. Version 4.0.26 (2014-05-06) Fixed bug in media plugin where changing existing url did not use media regex patterns to create protocol neutral url. Fixed bug where selection wasn't properly restored on IE 11 due to a browser bug with Element.contains. Version 4.0.25 (2014-04-30) Fixed bug where it wasn't possible to submit forms with editor instances on WebKit/Blink. Version 4.0.24 (2014-04-30) Added new event_root setting for inline editors. Lets you bind all editor events on a parent container. Fixed bug where show/hide/isHidden didn't work properly for inline editor instances. Fixed bug where preview plugin dialog didn't handle relative urls properly. Fixed bug where the autolink plugin would remove the trailing space after an inserted link. Fixed bug in paste plugin where pasting in a page with scrollbars would scroll to top of page in webkit browsers. Fixed bug where the paste plugin on WebKit would remove styles from pasted source code with style attributes. Fixed so image_list/link_list can be a function that allows custom async calls to populate these lists. Version 4.0.23 (2014-04-24) Added isSameOrigin method to tinymce.util.URI it handles default protocol port numbers better. Patch contributed by Matt Whelan. Fixed bug where IE 11 would add br elements to the end of the editor body element each time it was shown/hidden. Fixed bug where the autolink plugin would produce an index out of range exception for some very specific HTML. Fixed bug where the charmap plugin wouldn't properly insert non breaking space characters when selected. Fixed bug where pasting from Excel 2011 on Mac didn't produce a proper table when using the paste plugin. Fixed bug where drag/dropping inside a table wouldn't properly end the table cell selection. Fixed bug where drag/dropping images within tables on Safari on Mac wouldn't work properly. Fixed bug where editors couldn't be re-initialized if they where externally destroyed. Fixed bug where inline editors would produce a range index exception when clicking on buttons like bold. Fixed bug where the preview plugin wouldn't properly handle non encoded upper UTF-8 characters. Fixed so document.currentScript is used when detecting the current script location. Patch contributed by Mickael Desgranges. Fixed issue with the paste_webkit_styles option so is disabled by default since it might produce a lot of extra styles. Version 4.0.22 (2014-04-16) Added lastLevel to BeforeAddUndo level event so it's easier to block undo level creation based. Fixed so multiple list elements can be indented properly. Patch contributed by Dan Villiom Podlaski Christiansen. Fixed bug where the selection would be at the wrong location sometimes for inline editor instances. Fixed bug where drag/dropping content into an inline editor would fail on WebKit/Blink. Fixed bug where table grid wouldn't work properly when the UI was rendered in for RTL mode. Fixed bug where range normalization wouldn't handle mixed contentEditable nodes properly. Fixed so the media plugin doesn't override the existing element rules you now need to manually whitelist non standard attributes. Fixed so old language packs get properly loaded when the new longer language code format is used. Fixed so all track changes junk such as comments, deletes etc gets removed when pasting from Word. Fixed so non image data urls is blocked by default since they might contain scripts. Fixed so it's possible to import styles from the current page stylesheets into an inline editor by using the importcss_file_filter. Fixed bug where the spellchecker plugin wouldn't add undo levels for each suggestion replacement. Reworked the default spellchecker RPC API to match the new PHP Spellchecker package. Fallback documented in the TinyMCE docs. Version 4.0.21 (2014-04-01) Added new getCssText method to formatter to get the preview css text value for a format to be used in UI. Added new table_grid option that allows you to disable the table grid and use a dialog. Added new image_description, image_dimensions options to image plugin. Patch contributed by Pat O'Neill. Added new media_alt_source, media_poster, media_dimensions options to media plugin. Patch contributed by Pat O'Neill. Added new ability to specify high/low dpi versions custom button images for retina displays. Added new getWindows method to WindowManager makes it easier to control the currently opened windows. Added new paste_webkit_styles option to paste plugin to control the styles that gets retained on WebKit. Added preview of classes for the selectboxes used by the link_class_list/image_class_list options. Added support for Sauce Labs browser testing using the new saucelabs-tests build target. Added title input field to link dialog for a11y reasons can be disabled by using the link_title option. Fixed so the toolbar option handles an array as input for multiple toolbar rows. Fixed so the editor renders in XHTML mode apparently some people still use this rendering mode. Fixed so icons gets rendered better on Firefox on Mac OS X by applying -moz-osx-font-smoothing. Fixed so the auto detected external media sources produced protocol relative urls. Patch contributed by Pat O'Neill. Fixed so it's possible to update the text of a button after it's been rendered to page DOM. Fixed bug where iOS 7.1 Safari would open linked when images where inserted into links. Fixed bug where IE 11 would scroll to the top of inline editable elements when applying formatting. Fixed bug where tabindex on elements within the editor contents would cause issues on some browsers. Fixed bug where link text wouldn't be properly updated in gecko if you changed an existing link. Fixed bug where it wasn't possible to close dialogs with the escape key if the focus was inside a textbox. Fixed bug where Gecko wouldn't paste rich text contents from Word or other similar word processors. Fixed bug where binding events after the control had been rendered could fail to produce a valid delegate. Fixed bug where IE 8 would throw and error when removing editors with a cross domain content_css setting. Fixed bug where IE 9 wouldn't be able to select text after an editor instance with caret focus was removed. Fixed bug where the autoresize plugin wouldn't resize the editor if you inserted huge images. Fixed bug where multiple calls to the same init would produce extra editor instances. Fixed bug where fullscreen toggle while having the autoresize plugin enabled wouldn't produce scrollbars. Fixed so screen readers use a dialog instead of the grid for inserting tables. Fixed so Office 365 Word contents gets filtered the same way as content from desktop Office. Fixed so it's possible to override the root container for UI elements defaults to document.body. Fixed bug where tabIndex is set to -1 on inline editable elements. It now keeps the existing tabIndex intact. Fixed issue where the UndoManager transact method couldn't be nested since it only had one lock. Fixed issue where headings/heading where labeled incorrectly as headers/header. Version 4.0.20 (2014-03-18) Fixed so all unit tests can be executed in a headless phantomjs instance for CI testing. Fixed so directionality setting gets applied to the preview dialog as well as the editor body element. Fixed a performance issue with the "is" method in DOMUtils. Patch contributed by Paul Bosselaar. Fixed bug where paste plugin wouldn't paste plain text properly when pasting using browser menus. Fixed bug where focusable SVG elements would throw an error since className isn't a proper string. Fixed bug where the preview plugin didn't properly support the document_base_url setting. Fixed bug where the focusedEditor wouldn't be set to null when that editor was removed. Fixed bug where Gecko would throw an exception when editors where removed. Fixed bug where the FocusManager wouldn't handle selection restoration properly on older IE versions. Fixed bug where the searchreplace plugin would produce an exception on very specific multiple searches. Fixed bug where some events wasn't properly unbound when all editors where removed from page. Fixed bug where tapping links on iOS 7.1 would open the link instead of placing the caret inside. Fixed bug where holding the finger down on iOS 7.1 would open the link/image callout menu. Fixed so the jQuery plugin returns null when getting the the tinymce instance of an element before it's initialized. Fixed so selection normalization gets executed more often to reduce incorrect UI states on Gecko. Fixed so the default action of closing the window on a form submission can be prevented using "preventDefault". Version 4.0.19 (2014-03-11) Added support for CSS selector expressions in object_resizing option. Allows you to control what to resize. Added addToTop compatibility to compat3x plugin enables more legacy 3.x plugins to work properly. Fixed bug on IE where it wasn't possible to align images when they where floated left. Fixed bug where the indent/outdent buttons was enabled though readonly mode was enabled. Fixed bug where the nodeChanged event was fired when readonly mode was enabled. Fixed bug where events like blur could be fired to editor instances that where manually removed on IE 11. Fixed bug where IE 11 would move focus to menubar/toolbar when using the tab key in a form with an editor. Fixed bug where drag/drop in Safari on Mac didn't work properly due to lack of support for modern dataTransfer object. Fixed bug where the remove event wasn't properly executed when the editor instances where removed. Fixed bug where the selection change handler on inline editors would fail if the editor instance was removed. Version 4.0.18 (2014-02-27) Fixed bug where images would get class false/undefined when initially created. Version 4.0.17 (2014-02-26) Added much better wai-aria accessibility support when it comes to keyboard navigation of complex UI controls. Added dfn,code,samp,kbd,var,cite,mark,q elements to the default remove formats list. Patch contributed by Naim Hammadi. Added var,cite,dfn,code,mark,q,sup,sub to the list of elements that gets cloned on enter. Patch contributed by Naim Hammadi. Added new visual_anchor_class option to specify a custom class for inline anchors. Patch contributed by Naim Hammadi. Added support for paste_data_images on WebKit/Blink when the user pastes image data. Added support for highlighting the video icon when a video is added that produces an iframe. Patch contributed by monkeydiane. Added image_class_list/link_class_list options to image/link dialogs to let the user select classes. Fixed bug where the ObjectResizeStart event didn't get fired properly by the ControlSelection class. Fixed bug where the autolink plugin would steal focus when loaded on IE 9+. Fixed bug where the editor save method would remove the current selection when called on an inline editor. Fixed bug where the formatter would merge span elements with parent bookmarks if an id format was used. Fixed bug where WebKit/Blink browsers would scroll to the top of the editor when pasting into an empty element. Fixed bug where removing the editor would cause an error about wrong document on IE 11 under specific circumstances. Fixed bug where Gecko would place the caret at an incorrect location when using backspace. Fixed bug where Gecko would throw "Wrong Document Error" for ranges that pointing to removed nodes. Fixed bug where it wasn't possible to properly update the title and encoding properties in the fullpage plugin. Fixed bug where paste plugin would produce an extra undo level on IE. Fixed bug where the formatter would apply inline formatting outside the current word in if the selection was collapsed. Fixed bug where it wasn't possible to delete tables on Chrome if you placed the selection within all the contents of the table. Fixed bug where older IE versions wouldn't properly insert contents into table cells when editor focus was lost. Fixed bug where older IE versions would fire focus/blur events even though the editor focus didn't change. Fixed bug where IE 11 would add two trailing BR elements to the editor iframe body if the editor was hidden. Fixed bug where the visualchars plugin wouldn't display non breaking spaces if they where inserted while the state was enabled. Fixed bug where the wordcount plugin would be very slow some HTML where to much backtracking occurred. Fixed so pagebreak elements in the editor breaks pages when printing. Patch contributed by penc. Fixed so UndoManager events pass though the original event that created the undo level such as a keydown, blur etc. Fixed so the inserttime button is callsed insertdatetime the same as the menu item and plugin name. Fixed so the word count plugin handles counting properly on most languages on the planet. Fixed bug where the auroreize plugin would throw an error if the editor was manually removed within a few seconds. Fixed bug where the image dialog would get stuck if the src was removed. Patch contribued by monkeydiane. Fixed bug where there is an extra br tag for IE 9/10 that isn't needed. Patch contributed by monkeydiane. Fixed bug where drag/drop in a scrolled editor would fail since it didn't use clientX/clientY cordinates. Patch contributed by annettem. Version 4.0.16 (2014-01-31) Fixed bug where the editor wouldn't be properly rendered on IE 10 depending on the document.readyState. Version 4.0.15 (2014-01-31) Fixed bug where paste in inline mode would produce an exception if the contents was pasted inside non overflow element. Version 4.0.14 (2014-01-30) Fixed a bug in the image plugin where images couldn't be inserted if the image_advtab option wasn't set to true. Version 4.0.13 (2014-01-30) Added language selection menu to spellchecker button similar to the 3.x functionality. Patch contributed by threebytesfull. Added new style_formats_merge option that enables you to append to the default formats instead of replaceing them. Patch contributed by PacificMorrowind. Fixed bug where the DOMUtils getPos API function didn't properly handle the location of the root element. Patch contributed by Andrew Ozz. Fixed bug where the spellchecker wouldn't properly place the spellchecker suggestions menu. Patch contributed by Andrew Ozz. Fixed bug where the tabfocus plugin would prevent the user from suing Ctrl+Tab, Patch contributed by Andrew Ozz. Fixed bug where table resize handles could sometimes be added to elements out side the editable inline element. Fixed bug where the inline mode editor UI would render incorrectly when the stylesheets didn't finish loading on Chrome. Fixed bug where IE 8 would insert the image outside the editor unless it was focused first. Fixed bug where older IE versions would throw an exception on drag/drop since they don't support modern dataTransfer API. Fixed bug where the blockquote button text wasn't properly translated since it had the wrong English key. Fixed bug where the importcss plugin didn't import a.class rules properly as selector formats. Fixed bug where the combobox control couldn't be disabled or set to a specific character size initially. Fixed bug where the FormItem didn't inherit the disabled state from the control to be wrapped. Fixed bug where adding a TinyMCE instance within a TinyMCE dialog wouldn't properly delegate the events. Fixed bug where any overflow parent containers would automatically scroll to the left when pasting in Chrome. Fixed bug where IE could throw an error when search/replacing contents due to an invalid selection being returned. Fixed bug where WebKit would fire focus/blur events incorrectly if the editor was empty due to a WebKit focus bug. Fixed bug where WebKit/Blink would scroll to the top of editor if the height was more than the viewport height. Fixed bug where blurring and removing the editor could cause an exteption to be thrown by the FocusManager. Fixed bug where the media plugin would override specified dimensions for url pattern matches. Patch contributed by penc. Fixed bug where the autoresize plugin wouldn't take margins into account when calculating the body size. Patch contributed by lepoltj. Fixed bug where the image plugin would throw errors some times on IE 8 when it preloaded the image to get it's dimensions. Fixed bug where the image plugin wouldn't update the style if the user closed the dialog before focusing out. Patch contributed by jonparrott. Fixed bug where bindOnReady in EventUtils wouldn't work properly for some edge cases on older IE versions. Patch contributed by Godefroy. Fixed bug where image selector formats wasn't properly handled by the importcss plugin. Fixed bug where the dirty state of the editor wasn't set when editing an existing link URL. Fixed bug where it wasn't possible to prevent paste from happening by blocking the default behavior when the paste plugin was enabled. Fixed bug where text to display in the insert/edit link dialog wouldn't be properly entity encoded. Fixed bug where Safari 7 on Mac OS X would delete contents if you pressed Cmd+C since it passes out a charCode for the event. Fixed bug where bound drop events inside inline editors would get fired on all editor instances instead of the specific instance. Fixed bug where images outlined selection border would be clipped when the autoresize plugin was enabled. Fixed bug where image dimension constrains proportions wouldn't work properly if you altered a value and immediately clicked the submit button. Fixed so you don't need to set language option to false when specifying a custom language_url. Fixed so the link dialog "text to display" field gets automatically hidden if the selection isn't text contents. Patch contributed by Godefroy. Fixed so the none option for the target field in the link dialog gets excluded when specifiying the target_list config option. Fixed so outline styles are displayed by default in the formats preview. Patch contributed by nhammadi. Fixed so the max characters for width/height is more than 3 in the media and image dialogs. Fixed so the old mceSpellCheck command toggles the spellchecker on/off. Fixed so the setupeditor event is fired before the setup callback setting to ease up compatibility with 3.x. Fixed so auto url link creation in IE 9+ is disabled by default and re-enabled by the autolink plugin. Removed the custom scrollbars for WebKit since the default browser scrollbars looks a lot better now days. Version 4.0.12 (2013-12-18) Added new media_scripts option to the media plugin. This makes it possible to embed videos using script elements. Fixed bug where WebKit/Blink would produce random span elements and styles when deleting contents inside the editor. Fixed bug where WebKit/Blink would produce span elements out of link elements when they where removed by the unlink command. Fixed bug where div block formats in inline mode where applied to all paragraphs within the editor. Fixed bug where div blocks where marked as an active format in inline mode when doing non collapsed selections. Fixed bug where the importcss plugin wouldn't append styles if the style_formats option was configured. Fixed bug where the importcss plugin would import styles into groups multiple times for different format menus. Fixed bug where the paste plugin wouldn't properly remove the paste bin element on IE if a tried to paste a file. Fixed bug where selection normalization wouldn't properly handle cases where a range point was after a element node. Fixed bug where the default time format for the inserttime split button wasn't the first item in the list. Fixed bug where the default text for the formatselect control wasn't properly translated by the language pack. Fixed bug where links would be inserted incorrectly when auto detecting absolute urls/emails links in inline mode. Fixed bug where IE 11 would insert contents in the wrong order due to focus/blur async problems. Fixed bug where pasting contents on IE sometimes would place the contents at the end of the editor. Fixed so drag/drop on non IE browsers gets filtered by the paste plugin. IE doesn't have the necessary APIs. Fixed so the paste plugin better detects Word 2007 contents not marked with -mso junk. Fixed so image button isn't set to an active state when selecting control/media placeholder items. Version 4.0.11 (2013-11-20) Added the possibility to update button icon after it's been rendered. Added new autosave_prefix option allows you to set the prefix for the local storage keys. Added new pagebreak_split_block option to make it easier to split block elements with a page break. Fixed bug where IE would some times produce font elements when typing out side the body root blocks. Fixed bug where IE wouldn't properly use the configured root block element but instead use the a paragraph. Fixed bug where IE would throw a stack overflow if control selections non images was made in inline mode. Fixed bug where IE 8 would render an extra enter element if the contents of the editor was empty. Fixed bug where the caret wasn't moved to the first suitable element when updating the source. Fixed bug where protocol relative urls would be forced into http protocol. Fixed bug where internal images with data urls such as video elements would be removed by the paste_data_images option. Fixed bug where the autoresize plugin wouldn't properly resize the editor to initial contents some times. Fixed bug where the templates dialog wouldn't be properly rendered on IE 7. Fixed bug where updating styles in the advanced tab under the image dialog would remove the style attribute on cancel. Fixed bug where tinymce.full.min.js bundle script wasn't detected when looking for the tinymce root path. Fixed bug where the SaxParser would throw a malformed URI sequence for inproperly encoded uris. Fixed bug where enabling table caption wouldn't properly render the caption element on IE 10 and below. Fixed bug where the scrollbar would be placed to the left and on top of the text of menu items in RTL mode. Fixed bug where Firefox on Mac OS X would navigate forward/backward on CMD+Arrow keys. Fixed bug where fullscreen toggle on fixed sized editors wouldn't be properly full screened. Fixed bug where the unlink button would remove all links from the body element in inline mode under running in IE. Fixed bug where iOS wasn't able to place the caret inside an empty editor when clicking below the first line. Fixed so internal document anchors in Word documents are retained when pasting using the paste from word feature. Fixed so menu shortcuts gets rendered with the Apple command icon patch contributed by Andy Keller. Fixed so the CSS compression of styles like "border" is a bit better for mixed values. Fixed so the template_popup_width/template_popup_height option works properly in the template plugin. Fixed so the languages parameter for AddOnManager.requireLangPack works the same way as for 3.x. Fixed so the autosave plugin uses the current page path, query string and editor id as it's default prefix. Fixed so the fullpage plugin adds/removes any link style sheets to the current iframe document. Version 4.0.10 (2013-10-28) Added new forced_root_block_attrs option that allows you to specify attributes for the root block. Fixed bug where the custom resize handles didn't work properly on IE 11. Fixed bug where the code plugin would select all contents in IE when content was updated. Fixed bug where the scroll position wouldn't get applied to floating toolbars. Fixed bug where focusing in/out of the editor would move the caret to the top of the editor on IE 11. Fixed bug where the listboxes for link and image lists wasn't updated when the url/src was changed. Fixed bug where selection bookmark elements would be visible in the elements path list. Version 4.0.9 (2013-10-24) Added support for external template files to template plugin just set the templates option to a URL with JSON data. Added new allow_script_urls option. Enabled by default, trims all script urls from attributes. Fixed bug where IE would sometimes throw a "Permission denied" error unless the Sizzle doc was properly removed. Fixed bug where lists plugin would remove outer list items if inline editable element was within a LI parent. Fixed bug where insert table grid widget would insert a table on item to large when using a RTL language pack. Fixed bug where fullscreen mode wasn't rendering properly on IE 7. Fixed bug where resize handlers wasn't moved correctly when scrolling inline editable elements. Fixed bug where it wasn't possible to paste from Excel and possible other applications due to Clipboard API bugs in browsers. Fixed bug where Shift+Ctrl+V didn't produce a plain text paste on IE. Fixed bug where IE would sometimes move the selection to the a previous location. Fixed bug where the editor wasn't properly scrolled to the content insert location in inline mode. Fixed bug where some comments would be parsed as HTML by the SaxParser. Fixed bug where WebKit/Blink would render tables incorrectly if unapplying formats when having multiple table cells selected. Fixed bug where the paste_data_images option wouldn't strip all kinds of data images. Fixed bug where the GridLayout didn't render items correctly if the contents overflowed the layout container. Fixed bug where the Window wasn't properly positioned if the size of the button bar or title bar was wider than the contents. Fixed bug where psuedo selectors for finding UI controls didn't work properly. Fixed bug where resized splitbuttons would throw an exception if it didn't contain an icon. Fixed bug where setContent would move focus into the editor even though it wasn't active. Fixed bug where IE 11 would sometimes throw an "Invalid function" error when calling setActive on the body element. Fixed bug where the importcss plugin would import styles from CSS files not present in the content_css array. Fixed bug where the jQuery plugin will initialize the editors twice if the core was loaded using the script_url option. Fixed various bugs and issues related to indentation of OL/UL list elements. Fixed so IE 7 renders the classic mode buttons the same size as other browsers. Fixed so document.readyState is checked when loading and initializing TinyMCE manually after page load. Version 4.0.8 (2013-10-10) Added RTL support so all of the UI is rendered right to left if a language pack has a _dir property set to rtl. Fixed bug where layout managers wouldn't handle subpixel values properly. When for example the browser was zoomed in. Fixed bug where the importcss plugin wouldn't import classes from local stylesheets with remote @import rules on Gecko. Fixed bug where Arabic characters wouldn't be properly counted in wordcount plugin. Fixed bug where submit event would still fire even if it was unbound on IE 10. Now the event is simply ignored. Fixed bug where IE 11 would return border-image: none when getting style attributes with borders in them. Fixed various UI rendering issues on older IE versions. Fixed so readonly option renderes the editor in inline mode with all UI elements disabled and all events blocked. Version 4.0.7 (2013-10-02) Added new importcss_selector_filter option to importcss plugin. Makes it easier to select specific classes to import. Added new importcss_groups option to importcss plugin. Enables you separate classes into menu groups based on filters. Added new PastePreProcess/PastePostProcess events and reintroduced paste_preprocess/paste_postprocess paste options. Added new paste_word_valid_elements option lets you control what elements gets pasted when pasting from Word. Fixed so panelbutton is easier to use. It's now possible to set the panel contents to any container type. Fixed so editor.destroy calls editor.remove so that both destroy and remove can be used to remove an editor instance. Fixed so the searchreplace plugin doesn't move focus into the editor until you close the dialog. Fixed so the searchreplace plugin search for next item if you hit enter inside the dialog. Fixed so importcss_selector_converter callback is executed with the scope set to importcss plugin instance. Fixed so the default selector converter function is exposed in importcss plugin. Fixed issue with the tabpanel not expanding properly when the tabs where wider than the body of the panel. Fixed issue with the menubar option producing a JS exception if set to true. Fixed bug where closing a dialog with an opened listbox would cause errors if new dialogs where opened. Fixed bug where hidden input elements wasn't removed when inline editor instances where removed. Fixed bug where editors wouldn't initialize some times due to event logic not working correctly. Fixed bug where pre elements woudl cause searchreplace and spellchecker plugins to mark incorrect locations. Fixed bug where embed elements wouldn't be properly resized if they where configured in using the video_template_callback. Fixed bug where paste from word would remove all BR elements since it was missing in the default paste_word_valid_elements. Fixed bug where paste filtering wouldn't work properly on old WebKit installations pre Clipboard API. Fixed bug where linebreaks would be removed by paste plugin on IE since it didn't properly detect Word contents. Fixed bug where paste plugin would convert some Word paragraphs that looked like lists into lists. Fixed bug where editors wasn't properly initialized if the document.domain is set to the same as the current domain on IE. Fixed bug where an exception was thrown when removing an editor after opening the context menu multiple times. Fixed bug where paste as plain text on Gecko would add extra BR elements when pasting paragraphs. Version 4.0.6 (2013-09-12) Added new compat3x plugin that makes it possible to load most 3.x plugins. Only available in the development package. Added new skin_url option enables you to load local skins when using the CDN version. Added new theme_url option enables you to load local themes when using the CDN version. Added new importcss_file_filter option to importcss to enable users to specify what files to import from. Added new template_preview_replace_values option to template plugin to add example data for variables. Added image option support for addMenuItem calls. Enables you to provide a custom image for menu items. Fixed bug where editor.insertContent wouldn't set format and selection type on events. Fixed bug where inserting BR elements on IE 8 would thrown an exception when the range is at a empty text node. Fixed bug where outdent of single LI element within another LI would produce an empty list element OL/UL. Fixed bug where the bullist/numlist buttons wouldn't be deselected when deleting all contents. Fixed bug where toggling an empty list item off wouldn't produce a new empty block element. Fixed bug where it wasn't possible to apply lists to mixed text blocks and br lines. Fixed bug where it wasn't possible to paste contents on iOS when the paste plugin was enabled. Fixed bug where it wasn't possible to delete HR elements on Gecko. Fixed bug where scrolling and refocusing using the mouse would place the caret incorrectly on IE. Fixed bug where you needed to hit the empty paragraph to get editor focus in IE 11. Fixed bug where activeEditor wasn't set to the correct editor when opening windows. Fixed bug where dirty state wasn't set to false when undoing to the first undo level. Fixed bug where pasting in inline mode on Safari on Mac wouldn't work properly. Fixed bug where content_css wasn't loaded into the insert template dialog. Fixed bug where setting the contents of the editor to non text contents would produce an incorrect selection range. Fixed so code dialog height gets smaller that the viewport height if it doesn't fit. Fixed so inline editable regions scroll when pressing enter/return. Fixed so inline toolbar gets positioned correctly when inline element is within a scrollable container. Fixed various memory leaks when removing editor instances dynamically. Removed CSS for BR elements in visualblocks due t