This commit is contained in:
Marat 2015-07-29 10:47:29 +02:00
parent 6ccb334f67
commit aa6f0ee9b9
42 changed files with 467 additions and 1151 deletions

View File

@ -1,4 +0,0 @@
{
"allow_root": true,
"directory": "copy_this/modules/bla/"
}

View File

@ -1,13 +1,22 @@
## TinyMCE 4.1.10 for OXID eShop
### hdi-tinymce module version: ![module version](copy_this/modules/bla/bla-tinymce/version.jpg)
TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL.
## bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop 1.5.0
TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL.
More information here: http://www.tinymce.com/
and here: https://github.com/tinymce
# bitte entfernen Sie vollständig das alte bla-TinyMCE Modul, bevor Sie das neue hochladen!
* Modul im Backend deaktivieren
* modules/bla/bla-tinymce löschen
* tmp/ leeren
# please completely remove the older module version before update!
* deactivate module in backend
* remove modules/bla/bla-tinymce
* clear tmp/
## more info here: [http:/marat.ws/bla-tinymce/](http:/marat.ws/bla-tinymce/)
### LICENSE AGREEMENT
bestlife AG - TinyMCE for OXID eShop
### LICENSE AGREEMENT
bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop
Copyright (C) 2015 bestlife AG
info: oxid@bestlife.ag

View File

@ -1,11 +0,0 @@
{
"name": "bla-tinymce OXID Module",
"version": "1.4.0",
"homepage": "http://marat.ws/bla-tinymce/",
"private": true,
"main": "copy_this/modules/bla/",
"ignore":"",
"dependencies": {
"bla-tinymce": "https://github.com/vanilla-thunder/bla-tinymce.git#module"
}
}

View File

@ -1,13 +0,0 @@
{
"name": "bla-tinymce",
"homepage": "https://github.com/vanilla-thunder/bla-tinymce",
"_release": "4bb4ba86a6",
"_resolution": {
"type": "branch",
"branch": "module",
"commit": "4bb4ba86a6284fe9dc951880aeb98510eb1a9041"
},
"_source": "https://github.com/vanilla-thunder/bla-tinymce.git",
"_target": "module",
"_originalSource": "https://github.com/vanilla-thunder/bla-tinymce.git"
}

View File

@ -1,2 +0,0 @@
node_modules/
npm-debug.log

View File

@ -1,15 +1,29 @@
## [bla] TinyMCE for OXID eShop 4.7 & 4.8
#### raw module branch, also contains development files
### installation
* navigate into modules/ directory of your shop
* $ git clone https://github.com/vanilla-thunder/bla.git
* $ cd bla
* $ git clone -b module https://github.com/vanilla-thunder/bla-tinymce.git
### development / updating (node.js required)
* nagivate into bla-tinymce/ directory
* $ npm install
* $ node update.js- will update tinymce and language files
* $ node update.js version 1.5 - will get new update.jpg for version 1.5
## bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop 1.5.0
TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor control released as Open Source under LGPL.
More information here: http://www.tinymce.com/
and here: https://github.com/tinymce
# bitte entfernen Sie vollständig das alte bla-TinyMCE Modul, bevor Sie das neue hochladen!
* Modul im Backend deaktivieren
* modules/bla/bla-tinymce löschen
* tmp/ leeren
# please completely remove the older module version before update!
* deactivate module in backend
* remove modules/bla/bla-tinymce
* clear tmp/
## more info here: [http:/marat.ws/bla-tinymce/](http:/marat.ws/bla-tinymce/)
### LICENSE AGREEMENT
bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop
Copyright (C) 2015 bestlife AG
info: oxid@bestlife.ag
This program is free software;
you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>

View File

@ -1,403 +0,0 @@
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 to problems with Chrome and IE.
Version 4.0.5 (2013-08-27)
Added visuals for UL, LI and BR to visualblocks plugin. Patch contributed by Dan Ransom.
Added new autosave_restore_when_empty option to autosave plugin. Enabled by default.
Fixed bug where an exception was thrown when inserting images if valid_elements didn't include an ID for the image.
Fixed bug where the advlist plugin wouldn't properly render the splitbutton controls.
Fixed bug where visual blocks menu item wouldn't be marked checked when using the visualblocks_default_state option.
Fixed bug where save button in save plugin wouldn't get properly enabled when contents was changed.
Fixed bug where it was possible to insert images without any value for it's source attribute.
Fixed bug where altering image attributes wouldn't add a new undo level.
Fixed bug where import rules in CSS files wouldn't be properly imported by the importcss plugin.
Fixed bug where selectors could be imported multiple times. Producing duplicate formats.
Fixed bug where IE would throw exception if selection was changed while the editor was hidden.
Fixed so complex rules like .class:before doesn't get imported by default in the importcss plugin.
Fixed so it's possible to remove images by setting the src attribute to a blank value.
Fixed so the save_enablewhendirty setting in the save plugin is enabled by default.
Fixed so block formats drop down for classic mode can be translated properly using language packs.
Fixed so hr menu item and toolbar button gets the same translation string.
Fixed so bullet list toolbar button gets the correct translation from language packs.
Fixed issue with Chrome logging CSS warning about border styling for combo boxes.
Fixed issue with Chrome logging warnings about deprecated keyLocation property.
Fixed issue where custom_elements would not remove the some of the default rules when cloning rules from div and span.
Version 4.0.4 (2013-08-21)
Added new importcss plugin. Lets you auto import classes from CSS files similar to the 3.x behavior.
Fixed bug where resize handles would be positioned incorrectly when inline element parent was using position: relative.
Fixed bug where IE 8 would throw Unknown runtime error if the editor was placed within a P tag.
Fixed bug where removing empty lists wouldn't produce blocks or brs where the old list was in the DOM.
Fixed bug where IE 10 wouldn't properly initialize template dialog due to async loading issues.
Fixed bug where autosave wouldn't properly display the warning about content not being saved due to isDirty changes.
Fixed bug where it wouldn't be possible to type if a touchstart event was bound to the parent document.
Fixed bug where code dialog in code plugin wouldn't wouldn't add a proper undo level.
Fixed issue where resizing the editor in vertical mode would set the iframe width to a pixel value.
Fixed issue with naming of insertdatetime settings. All are now prefixed with the plugin name.
Fixed so an initial change event is fired when the user types the first character into the editor.
Fixed so swf gets mapped to object element in media plugin. Enables embedding of flash with alternative poster.
Version 4.0.3 (2013-08-08)
Added new code_dialog_width/code_dialog_height options to control code dialog size.
Added missing pastetext button that works the same way as the pastetext menu item.
Added missing smaller browse button for the classical smaller toolbars.
Fixed bug where input method would produce new lines when inserting contents to an empty editor.
Fixed bug where pasting single indented list items from Word would cause a JS exception.
Fixed bug where applying block formats inside list elements in inline mode would apply them to whole document.
Fixed bug where link editing in inline mode would cause exception on IE/WebKit.
Fixed bug where IE 10 wouldn't render the last button group properly in inline mode due to wrapping.
Fixed bug where localStorage initialization would fail on Firefox/Chrome with disabled support.
Fixed bug where image elements would get an __mce id when undo/redo:ing to a level with image changes.
Fixed bug where too long template names wouldn't fit the listbox in template plugin.
Fixed bug where alignment format options would be marked disabled when forced_root_block was set to false.
Fixed bug where UI listboxes such as fontsize, fontfamily wouldn't update properly when switching editors in inline mode.
Fixed bug where the formats select box would mark the editable container DIV as a applied format in inline mode.
Fixed bug where IE 7/8 would scroll to empty editors when initialized.
Fixed bug where IE 7/8 wouldn't display previews of format options.
Fixed bug where UI states wasn't properly updated after code was changed in the code dialog.
Fixed bug with setting contents in IE would select all contents within the editor.
Fixed so the undoManages transact function disables any other undo levels from being added while within the transaction.
Fixed so sub/sup elements gets removed when the Clear formatting action is executed.
Fixed so text/javascript type value get removed by default from script elements to match the HTML5 spec.
Version 4.0.2 (2013-07-18)
Fixed bug where formatting using menus or toolbars wasn't possible on Opera 12.15.
Fixed bug where IE 8 keyboard input would break after paste using the paste plugin.
Fixed bug where IE 8 would throw an error when populating image size in image dialog.
Fixed bug where image resizing wouldn't work properly on latest IE 10.0.9 version.
Fixed bug where focus wasn't moved to the hovered menu button in a menubar container.
Fixed bug where paste would produce an extra uneeded undo level on IE and Gecko.
Fixed so anchors gets listed in the link dialog as they where in TinyMCE 3.x.
Fixed so sub, sup and strike though gets passed through when pasting from Word.
Fixed so Ctrl+P can be used to print the current document. Patch contributed by jashua212.
Version 4.0.1 (2013-06-26)
Added new paste_as_text config option to force paste as plaintext mode.
Added new pastetext menu item that lets you toggle paste as plain text mode on/off.
Added new insertdatetime_element option to insertdatetime plugin. Enables HTML5 time element support.
Added new spellchecker_wordchar_pattern option to allow configuration of language specific characters.
Added new marker to formats menu displaying the formats used at the current selection/caret location.
Fixed bug where the position of the text color picker would be wrong if you switched to fullscreen.
Fixed bug where the link plugin would ask to add the mailto: prefix multiple times.
Fixed bug where list outdent operation could produce empty list elements on specific selections.
Fixed bug where element path wouldn't properly select parent elements on IE.
Fixed bug where IE would sometimes throw an exception when extrancting the current selection range.
Fixed bug where line feeds wasn't properly rendered in source view on IE.
Fixed bug where word count wouldn't be properly rendered on IE 7.
Fixed bug where menubuttons/listboxes would have an incorrect height on IE 7.
Fixed bug where browser spellchecking was enabled while editing inline on IE 10.
Fixed bug where spellchecker wouldn't properly find non English words.
Fixed bug where deactivating inline editor instances would force padding-top: 0 on page body.
Fixed bug where jQuery would initialize editors multiple times since it didn't check if the editor already existed.
Fixed bug where it wasn't possible to paste contents on IE 10 in modern UI mode when paste filtering was enabled.
Fixed bug where tabfocus plugin wouldn't work properly on inline editor instances.
Fixed bug where fullpage plugin would clear the existing HTML head if contents where inserted into the editor.
Fixed bug where deleting all table rows/columns in a table would cause an exception to be thrown on IE.
Fixed so color button panels gets toggled on/off when activated/deactivated.
Fixed so format menu items that can't be applied to the current selection gets disabled.
Fixed so the icon parameter for addButton isn't automatically filled if a button text is provided.
Fixed so image size fields gets updated when selecting a new image in the image dialog.
Fixed so it doesn't load any language pack if the language option is set to "en".
Fixed so ctrl+shift+z works as an alternative redo shortcut to match a common Mac OS X shortcut.
Fixed so it's not possible to drag/drop in images in Gecko by default when paste plugin is enabled.
Fixed so format menu item texts gets translated using the specified language pack.
Fixed so the image dialog title is the same as the insert/edit image button text.
Fixed so paste as plain text produces BR:s in PRE block and when forced_root_block is disabled.
Version 4.0 (2013-06-13)
Added new insertdate_dateformat, insertdate_timeformat and insertdate_formats options to insertdatetime.
Added new font_formats, fontsize_formats and block_formats options to configure fontselect, fontsizeselect and formatselect.
Added new table_clone_elements option to table plugin. Enables you to specify what elements to clone when adding columns/rows.
Added new auto detect logic for site and email urls in link plugin to match the logic found in 3.x.
Added new getParams/setParams to WindowManager to make it easier to handle params to iframe based dialogs. Contributed by Ryan Demmer.
Added new textcolor options that enables you to specify the colors you want to display. Contributed by Jennifer Arsenault.
Added new external file support for link_list and image_list options. The file format is a simple JSON file.
Added new "both" mode for the resize option. Enables resizing in both width and height.
Added new paste_data_images option that allows you to enable/disable paste of data images.
Added new fixed_toolbar_container option that allows you to add a fixed container for the inline toolbar.
Fixed so font name, font size and block format select boxes gets updated with the current format.
Fixed so the resizeTo/resizeBy methods for the theme are exposed as it as in 3.x.
Fixed so the textcolor controls are splitbuttons as in 3.x. Patch contributed by toxalot/jashua212.
Fixed bug where the theme content css wasn't loaded into the preview dialog.
Fixed bug where the template description in template dialog wouldn't display the text correctly.
Fixed bug where various UI elements wasn't properly removed when an editor instance was removed.
Fixed bug where editing links in inline mode would fail on WebKit.
Fixed bug where the pagebreak_separator option in the pagebreak plugin wasn't working properly.
Fixed bug where the child panels of the float panel in inline mode wasn't properly placed.
Fixed bug where the float panel children of windows wasn't position fixed.
Fixed bug where the size of the ok button was hardcoded, caused issues with i18n.
Fixed bug where single comment in editor would cause exceptions due to resolve path logic not detecting elements only.
Fixed bug where switching alignment of tables in dialogs wouldn't properly remove existing alignments.
Fixed bug where the table properties dialog would show columns/rows textboxes.
Fixed bug where jQuery wasn't used instead of Sizzle in the jQuery version of TinyMCE.
Fixed bug where setting resize option to false whouldn't properly render the word count.
Fixed bug where table row type change would produce multiple table section elements.
Fixed bug where table row type change on multiple rows would add them in incorrect order.
Fixed bug where fullscreen plugin would maximize the editor on resize after toggling it off.
Fixed bug where context menu would be position at an incorrect coordinate in inline mode.
Fixed bug where inserting lists in inline mode on IE would produce errors since the body would be converted.
Fixed bug where the body couldn't be styled properly in custom content_css files.
Fixed bug where template plugins menu item would override the image menu item.
Fixed bug where IE 7-8 would render the text inside inputs at the wrong vertical location.
Fixed bug where IE configured to IE 7 compatibility mode wouldn't render the icons properly.
Fixed bug where editor.focus wouldn't properly fire the focusin event on WebKit.
Fixed bug where some keyboard shortcuts wouldn't work on IE 8.
Fixed bug where the undo state wasn't updated until the end of a typing level.
Fixed bug where keyboard shortcuts on Mac OS wasn't working correctly.
Fixed bug where empty inline elements would be created when toggling formatting of in empty block.
Fixed bug where applying styles on WebKit would fail in inline mode if the user released the mouse button outside the body.
Fixed bug where the visual aids menu item wasn't selected if the editor was empty.
Fixed so the isDirty/isNotDirty states gets updated to true/false on save() and change events.
Fixed so skins have separate CSS files for inline and iframe mode.
Fixed so menus and tool tips gets constrained to the current viewport.
Fixed so an error is thrown if users load jQuery after the jQuery version of TinyMCE.
Fixed so the filetype for media dialog passes out media instead of image as file type.
Fixed so it's possible to disable the toolbar by setting it to false.
Fixed so autoresize plugin isn't initialized when the editor is in inline mode.
Fixed so the inline editing toolbar will be rendered below elements if it doesn't fit above it.
Version 4.0b3 (2013-05-15)
Added new optional advanced tab for image dialog with hspace, vspace, border and style.
Added new change event that gets fired when undo levels are added to editor instances.
Added new removed_menuitems option enables you to list menu items to remove from menus.
Added new external_plugins option enables you to specify external locations for plugins.
Added new language_url option enables you to specify an external location for the language pack.
Added new table toolbar control that displays a menu for inserting/editing menus.
Fixed bug where IE 10 wouldn't load files properly from cache.
Fixed bug where image dialog wouldn't properly remove width/height if blanked.
Fixed bug where all events wasn't properly unbound when editor instances where removed.
Fixed bug where data- attributes wasn't working properly in the SaxParser.
Fixed bug where Gecko wouldn't properly render broken images.
Fixed bug where Gecko wouldn't produce the same error dialog on paste as other browsers.
Fixed bug where is wasn't possible to prevent execCommands in beforeExecCommand event.
Fixed bug where the fullpage_hide_in_source_view option wasn't working in the fullpage plugin.
Fixed bug where the WindowManager close method wouldn't properly close the top most window.
Fixed bug where it wasn't possible to paste in IE 10 due to JS exception.
Fixed bug where tab key didn't move to the right child control in tabpanels.
Fixed bug where enter inside a form would focus the first button like control in TinyMCE.
Fixed bug where it would match scripts that looked like the tinymce base directory incorrectly.
Fixed bug where the spellchecker wouldn't properly toggle off the spellcheck mode if no errors where found.
Fixed bug in searchreplace plugin where it would remove all spans instead of the marker spans.
Fixed issue where selector wouldn't disable existing mode setting.
Fixed so it's easier to configure the menu and menubar.
Fixed so bodyId/bodyClass is applied to preview as it's done to the editor iframe.
Version 4.0b2 (2013-04-24)
Added new rel_list option to link plugin. Enables you to specify values for a rel drop down.
Added new target_list option to link plugin. Enables you to add to or disable the link targets.
Added new link_list option to link plugin. Enables you to specify a list of links to pick from.
Added new image_list option to image pluigin. Enables you to specify a list of images to pick from.
Added new textcolor plugin. This plugin holds the text color and text background color buttons.
Fixed bug where alignment of images wasn't working properly on Firefox.
Fixed bug where IE 8 would throw error when inserting a table.
Fixed bug where IE 8 wouldn't render the element path properly.
Fixed bug where old IE versions would render a red focus border.
Fixed bug where old IE versions would render a frameborder for iframes.
Fixed bug where WebKit wouldn't properly open the cell properties dialog on edge case selection.
Fixed bug where charmap wouldn't correctly render all characters in grid.
Fixed bug where link dialog wouldn't update the link text properly.
Fixed bug where the focus/blur states on inline editors wasn't handled correctly on IE.
Fixed bug where IE would throw "unknown error" exception sometimes in ForceBlocks logic.
Fixed bug where IE would't properly render disabled buttons in button groups.
Fixed bug where tab key wouldn't properly move to next input field in dialogs.
Fixed bug where resize handles for tables and images would appear at wrong positions on IE 8.
Fixed bug where dialogs would produce stack overflow if title was wider than content.
Fixed bug with table cell/row menu items being enabled even if no cell was selected.
Fixed so the text to display is after the URL field in the link dialog.
Fixed so the width setting applies to the editor panel in modern theme.
Fixed so it's easier to make custom icons for buttons using plain old images.
Version 4.0b1 (2013-04-11)
Added new node.js based build process used uglify, amdlc, jake etc.
Added new package.json to enable easy installation of dependent npm packages used for building.
Added new link, image, charmap, anchor, code, hr plugins since these are now moved out of the theme.
Rewrote all plugins and themes from scratch so they match the new UI framework.
Replaced all events to use the more common <target>.on/off(<event>) methods instead of <target>.<event>.add/remove.
Rewrote the TinyMCE core to use AMD style modules. Gets compiled to an inline library using amdlc.
Rewrote all core logic to pass jshint rules. Each file has specific jshint rules.
Removed all IE6 specific logic since 4.x will no longer support such an old browser.
Reworked the file names and directory structure of the whole project to be more similar to other JS projects.
Replaced tinymce.util.Cookie with tinymce.util.LocalStorage. Fallback to userData for IE 7 native localStorage for the rest.
Replaced the old 3.x UI with a new modern UI framework.
Removed "simple" theme and added new "modern" theme.
Removed advhr, advimage, advlink, iespell, inlinepopups, xhtmlxtras and style plugins.
Updated Sizzle to the latest version.

View File

@ -1,7 +1,7 @@
<?php
/*
* bestlife AG - TinyMCE for OXID eShop
* bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
@ -19,15 +19,22 @@ class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent
{
public function loadTinyMce()
{
$cfg = oxRegistry::getConfig();
$blEnabled = in_array( $this->getActiveClassName(), $cfg->getConfigParam( "aTinyMCE_classes" ) );
$blPlainCms = in_array( $cfg->getActiveView()->getViewDataElement( "edit" )->oxcontents__oxloadid->value, $cfg->getConfigParam( "aTinyMCE_plaincms" ) );
$cfg = oxRegistry::getConfig();
$blEnabled = in_array($this->getActiveClassName(), $cfg->getConfigParam("aTinyMCE_classes"));
$blPlainCms = in_array($cfg->getActiveView()->getViewDataElement("edit")->oxcontents__oxloadid->value,
$cfg->getConfigParam("aTinyMCE_plaincms"));
if (!$blEnabled) return;
if ($blPlainCms) return oxRegistry::getLang()->translateString( "hdi_tinymce_plaincms" );
if (!$blEnabled)
{
return;
}
if ($blPlainCms)
{
return oxRegistry::getLang()->translateString("hdi_tinymce_plaincms");
}
// processind editor config & other stuff
$sLang = oxRegistry::getLang()->getLanguageAbbr( oxRegistry::getLang()->getTplLanguage() );
$sLang = oxRegistry::getLang()->getLanguageAbbr(oxRegistry::getLang()->getTplLanguage());
// array to assign shops lang abbreviations to lang file names of tinymce: shopLangAbbreviation => fileName (without .js )
$aLang = array(
"cs" => "cs",
@ -40,93 +47,78 @@ class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent
);
$aConfig = array(
'browser_spellcheck' => ( $cfg->getConfigParam( "bTinyMCE_browser_spellcheck" ) ? 'true' : 'false' ),
'language' => '"'.( in_array( $sLang, $aLang ) ? $aLang[$sLang] : 'en' ).'"',
'height' => $cfg->getConfigParam( "sTinyMCE_height" ),
'nowrap' => 'true',
// default config
$aDefaultConfig = array(
'selector' => '"textarea:not(.mceNoEditor)"',
'relative_urls' => 'false',
'document_base_url' => '"'.$this->getBaseDir().'"',
'language' => '"' . (in_array($sLang, $aLang) ? $aLang[$sLang] : 'en') . '"',
//'spellchecker_language' => '"' . (in_array($sLang, $aLang) ? $aLang[$sLang] : 'en') . '"',
'nowrap' => 'true',
'entity_encoding' => '"raw"',
// http://www.tinymce.com/wiki.php/Configuration:entity_encoding
'height' => 300,
'menubar' => 'false',
'document_base_url' => '"' . $this->getBaseDir() . '"',
// http://www.tinymce.com/wiki.php/Configuration:document_base_url
'relative_urls' => 'false',
// http://www.tinymce.com/wiki.php/Configuration:relative_urls
'plugin_preview_width' => 'window.innerWidth',
'plugin_preview_height' => 'window.innerHeight-90',
'code_dialog_width' => 'window.innerWidth-50',
'code_dialog_height' => 'window.innerHeight-130',
'image_advtab' => 'true',
'imagetools_toolbar' => '"rotateleft rotateright | flipv fliph | editimage imageoptions"',
'moxiemanager_fullscreen' => 'true',
'insertdatetime_formats' => '[ "%d.%m.%Y", "%H:%M" ]',
'nonbreaking_force_tab' => 'true', // http://www.tinymce.com/wiki.php/Plugin:nonbreaking
'nonbreaking_force_tab' => 'true',
// http://www.tinymce.com/wiki.php/Plugin:nonbreaking
'autoresize_max_height' => '400'
);
//merging with custom config
$aConfig = ( $aCustCfg = $this->_getTinyCustConfig() ) ? array_merge( $aConfig, $aCustCfg ) : $aConfig;
$aConfig = ($aCustomCfg = $this->_getTinyCustConfig()) ? array_merge($aDefaultConfig,
$aCustomCfg) : $aDefaultConfig;
// plugins and their buttons
$aPlugins = array(
"textcolor" => "forecolor backcolor",
"advlist" => false,
"anchor" => "anchor",
"autolink" => false,
"autoresize" => false,
//"autosave" => false , // http://www.tinymce.com/wiki.php/Plugin:autosave // really bad stuff here
//"bbcode" => ,
"charmap" => "charmap",
"colorpicker" => false,
//"compat3x" => ,
//"contextmenu" => , // http://www.tinymce.com/wiki.php/Plugin:contextmenu
//"directionality" => "ltr rtl",
"emoticons" => "emoticons",
//"example" => ,
//"example_dependency" => ,
//"fullpage" => , // nein! http://www.tinymce.com/wiki.php/Plugin:fullpage
"hr" => "hr",
"image" => "image", // http://www.tinymce.com/wiki.php/Plugin:image
"insertdatetime" => "insertdatetime",
//"layer" => , // This plugin adds some layer controls. Only works on some browsers. Will probably be removed in the future. http://www.tinymce.com/wiki.php/Plugin:layer
"legacyoutput" => false,
"link" => "link unlink",
"lists" => false,
//"importcss" => false, // http://www.tinymce.com/wiki.php/Plugin:importcss
"media" => "media",
"nonbreaking" => "nonbreaking",
//"noneditable" => false, // http://www.tinymce.com/wiki.php/Plugin:noneditable
"pagebreak" => "pagebreak",
"paste" => "pastetext",
//"print" => "print",
//"save" => "save cancel",
"searchreplace" => "searchreplace",
//"spellchecker" => "spellchecker", // http://www.tinymce.com/wiki.php/Plugin:spellchecker
// "tabfocus" => false, // http://www.tinymce.com/wiki.php/Plugin:tabfocus
"table" => "table",
//"template" => "template",
// "textpattern" => false, // sowas wie markdown http://www.tinymce.com/wiki.php/Plugin:textpattern
"visualblocks" => "visualblocks",
"visualchars" => "visualchars",
"wordcount" => false,
"code" => "code",
"fullscreen" => "fullscreen",
"preview" => "preview"
// default plugins and their buttons
$aPluginsControls = array(
'advlist' => false,
'anchor' => 'anchor',
'autolink' => false,
'autoresize' => false,
'charmap' => 'charmap',
'code' => 'code',
'colorpicker' => false,
//'emoticons' => 'emoticons',
'fullscreen' => 'fullscreen',
'hr' => 'hr',
'image' => 'image',
'imagetools' => false,
'insertdatetime' => 'insertdatetime',
'link' => 'link unlink',
'lists' => false,
'media' => 'media',
'nonbreaking' => false,
'pagebreak' => 'pagebreak',
'paste' => 'pastetext',
'preview' => 'preview',
'searchreplace' => 'searchreplace',
//'spellchecker' => 'spellchecker',
'table' => 'table',
'textcolor' => 'forecolor backcolor',
'visualblocks' => false,
//'visualchars' => 'visualchars',
'wordcount' => false
);
if ($this->getActiveClassName()=="newsletter_main")
{
$aPlugins["legacyoutput"] = false;
$aPlugins["fullpage"] = "fullpage";
}
// plugin override
if($aOverride = $cfg->getConfigParam("aTinyMCE_plugins_override"))
$aPlugins = $cfg->getConfigParam("aTinyMCE_plugins");
if (empty($aPlugins) || !is_array($aPlugins)) $aPlugins = array_keys($aPluginsControls);
if ($this->getActiveClassName() == "newsletter_main")
{
foreach( $aOverride AS $key => $value)
{
unset($aPlugins[$value]);
}
$aPlugins["legacyoutput"] = false;
$aPlugins["fullpage"] = "fullpage";
}
$aConfig['plugins'] = '"'.implode( ' ', array_keys($aPlugins)).'"';
$aConfig['plugins'] = '"' . implode(' ', $aPlugins) . '"';
// external plugins
if ($aExtPlugins = $this->_getTinyExtPlugins())
@ -134,47 +126,37 @@ class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent
$aConfig['external_plugins'] = '{ ';
foreach ($aExtPlugins AS $plugin => $file)
{
$aConfig['external_plugins'] .= '"'.$plugin.'": "'.$file.'", ';
$aConfig['external_plugins'] .= '"' . $plugin . '": "' . $file . '", ';
}
$aConfig['external_plugins'] .= ' }';
}
// default tollbar buttons
$aButtons = $cfg->getConfigParam("aTinyMCE_buttons");
if(!is_array($aButtons) || empty($aButtons))
{
// fallback
$aButtons = array(
"undo redo",
"bold italic underline strikethrough",
"alignleft aligncenter alignright alignjustify",
"bullist numlist",
"outdent indent",
"blockquote",
"removeformat",
"subscript",
"superscript",
"formatselect",
"fontselect",
"fontsizeselect"
);
}
$aDefaultButtons = array(
"undo redo",
"bold italic underline strikethrough",
"alignleft aligncenter alignright alignjustify",
"bullist numlist",
"outdent indent",
"blockquote",
"removeformat",
"subscript",
"superscript",
"formatselect",
"fontselect",
"fontsizeselect",
"subscript superscript"
);
$aButtons = $this->_getTinyToolbarControls();
if (!is_array($aButtons) || empty($aButtons)) $aButtons = $aDefaultButtons;
// buttons for plugins, enable only if plugin is active
$aButtons = array_merge($aButtons, array_filter(array_values($aPlugins)));
$aPluginButtons = array_values(array_intersect_key($aPluginsControls, array_flip($aPlugins)));
// custom buttons
$aButtons[] = $this->_getTinyCustControls();
$aButtons = array_merge($aButtons, $aPluginButtons);
$aConfig['toolbar'] = '"'.implode( " | ", $aButtons ).'"';
$aConfig['toolbar'] = '"' . implode(" | ", $aButtons) . '"';
/*
$aConfig['toolbar1'] = '"undo redo searchreplace preview print fullscreen code paste | image media emoticons table inserttable bullist numlist outdent indent | ';
$aConfig['toolbar1'] .= 'ltr rtl | blockquote subscript superscript '.( $cfg->getConfigParam( "bTinyMCE_charmap" ) ? 'charmap' : '' ).' hr nonbreaking anchor link unlink ';
$aConfig['toolbar1'] .= $this->_getTinyCustControls().'"';
$aConfig['toolbar2'] = '"bold italic underline strikethrough | forecolor backcolor | alignleft aligncenter alignright alignjustify | fontselect fontsizeselect formatselect | removeformat | spellchecker visualchars | insertdatetime"';
*/
// compile the whole config stuff
$sConfig = '';
@ -184,7 +166,7 @@ class blaTinyMceOxViewConfig extends blaTinyMceOxViewConfig_parent
}
// add init script
$sInit = 'tinymce.init({ '.$sConfig.' });';
$sInit = 'tinymce.init({ ' . $sConfig . ' });';
$sCopyLongDescFromTinyMCE = 'function copyLongDescFromTinyMCE(sIdent)
{
@ -208,17 +190,17 @@ copyLongDesc = function(sIdent)
}';
// adding scripts to template
$smarty = oxRegistry::get( "oxUtilsView" )->getSmarty();
$sSufix = ( $smarty->_tpl_vars["__oxid_include_dynamic"] ) ? '_dynamic' : '';
$smarty = oxRegistry::get("oxUtilsView")->getSmarty();
$sSufix = ($smarty->_tpl_vars["__oxid_include_dynamic"]) ? '_dynamic' : '';
$aScript = (array) $cfg->getGlobalParameter( 'scripts'.$sSufix );
$aScript = (array)$cfg->getGlobalParameter('scripts' . $sSufix);
$aScript[] = $sCopyLongDescFromTinyMCE;
$aScript[] = $sInit;
$cfg->setGlobalParameter( 'scripts'.$sSufix, $aScript );
$cfg->setGlobalParameter('scripts' . $sSufix, $aScript);
$aInclude = (array) $cfg->getGlobalParameter( 'includes'.$sSufix );
$aInclude[3][] = $this->getModuleUrl( 'bla-tinymce', 'tinymce/tinymce.min.js' );
$cfg->setGlobalParameter( 'includes'.$sSufix, $aInclude );
$aInclude = (array)$cfg->getGlobalParameter('includes' . $sSufix);
$aInclude[3][] = $this->getModuleUrl('bla-tinymce', 'tinymce/tinymce.min.js');
$cfg->setGlobalParameter('includes' . $sSufix, $aInclude);
return '<li style="margin-left: 50px;">
<button style="border: 1px solid #0089EE; color: #0089EE;padding: 3px 10px; margin-top: -10px; background: white;" onclick="tinymce.each(tinymce.editors, function(editor) { if(editor.isHidden()) { editor.show(); } else { editor.hide(); } });">
@ -228,24 +210,33 @@ copyLongDesc = function(sIdent)
// javascript:tinymce.execCommand(\'mceToggleEditor\',false,\'editor1\');
}
protected function _getTinyCustControls()
protected function _getTinyToolbarControls()
{
$sControls = oxRegistry::getConfig()->getConfigParam( "sTinyMCE_custom_controls" );
if (method_exists( get_parent_class( __CLASS__ ), __FUNCTION__ )) $sControls = parent::_getTinyCustControls()." ".$sControls;
return $sControls;
$aControls = oxRegistry::getConfig()->getConfigParam("aTinyMCE_buttons");
if (method_exists(get_parent_class(__CLASS__), __FUNCTION__))
{
$aControls = array_merge($aControls, parent::_getTinyToolbarControls());
}
return $aControls;
}
protected function _getTinyExtPlugins()
{
$aPlugins = oxRegistry::getConfig()->getConfigParam( "aTinyMCE_external_plugins" );
if (method_exists( get_parent_class( __CLASS__ ), __FUNCTION__ )) $aPlugins = array_merge( parent::_getTinyExtPlugins(), $aPlugins );
$aPlugins = oxRegistry::getConfig()->getConfigParam("aTinyMCE_external_plugins");
if (method_exists(get_parent_class(__CLASS__), __FUNCTION__))
{
$aPlugins = array_merge(parent::_getTinyExtPlugins(), $aPlugins);
}
return $aPlugins;
}
protected function _getTinyCustConfig()
{
$aConfig = oxRegistry::getConfig()->getConfigParam( "aTinyMCE_custom_config" );
if (method_exists( get_parent_class( __CLASS__ ), __FUNCTION__ )) $aConfig = array_merge( parent::_getTinyCustConfig(), $aConfig );
$aConfig = oxRegistry::getConfig()->getConfigParam("aTinyMCE_config_override");
if (method_exists(get_parent_class(__CLASS__), __FUNCTION__))
{
$aConfig = array_merge(parent::_getTinyCustConfig(), $aConfig);
}
return $aConfig;
}
}

View File

@ -1,136 +1,148 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
/*
* bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
$v = "https://raw.githubusercontent.com/vanilla-thunder/bla-tinymce/master/copy_this/modules/bla/bla-tinymce/version.jpg";
$v = "https://raw.githubusercontent.com/vanilla-thunder/bla-tinymce/master/copy_this/modules/bla/bla-tinymce/version.jpg";
$sMetadataVersion = '1.1';
$aModule = array(
'id' => 'bla-tinymce',
'title' => '<strong style="color:#95b900;font-size:125%;">best</strong><strong style="color:#c4ca77;font-size:125%;">life</strong> <strong>TinyMCE</strong>',
'description' => 'TinyMCE 4.1.10 WYSIWYG Editor for OXID eShop 4.7 - 4.9<br/>visit <a href="http://www.tinymce.com/" target="_blank">http://www.tinymce.com/</a> for demo and more details<hr/><b style="display: inline-block; float:left;">newest version:</b><img src="' . $v . '" style=" float:left;"/><a style="display: inline-block; padding: 1px 25px; background: dodgerblue; border: 1px solid #585858; color: white;" href="http://bit.ly/bla-TinyMCE" target="_blank">info</a>&nbsp;<a style="display: inline-block; padding: 1px 25px; background: forestgreen; border: 1px solid #585858; color: white;" href="https://github.com/vanilla-thunder/bla-tinymce/archive/master.zip">download</a>',
'thumbnail' => 'tinymce.png',
'version' => '1.4.0 (2015-05-06)',
'author' => 'Marat Bedoev, bestlife AG',
'email' => 'oxid@bestlife.ag',
'url' => 'http://www.bestlife.ag',
'extend' => array(
'oxviewconfig' => 'bla/bla-tinymce/core/blatinymceoxviewconfig'
),
'templates' => array(
'tinymce.tpl' => 'bla/bla-tinymce/views/tinymce.tpl',
),
'blocks' => array(
array(
'template' => 'bottomnaviitem.tpl',
'block' => 'admin_bottomnaviitem',
'file' => '/views/blocks/admin/bottomnaviitem_admin_bottomnaviitem.tpl'
)
),
'settings' => array(
/* enabling tinyMCE for this classes */
array(
'group' => 'tinyMceMain',
'name' => 'aTinyMCE_classes',
'type' => 'arr',
'value' => array(
"article_main",
"category_text",
"content_main",
"newsletter_main",
"news_text"
),
'position' => 0
),
array(
'group' => 'tinyMceMain',
'name' => 'aTinyMCE_plaincms',
'type' => 'arr',
'value' => array(
"oxadminorderplainemail",
"oxadminordernpplainemail", // bestellbenachrichtigung admin + fremdländer
"oxuserorderplainemail",
"oxuserordernpplainemail",
"oxuserorderemailendplain", // bestellbenachrichtigung user + fremdländer + abschluss
"oxordersendplainemail", // versandbestätigung
"oxregisterplainemail",
"oxregisterplainaltemail", // registrierung
"oxupdatepassinfoplainemail", // passwort update
"oxnewsletterplainemail", // newsletter
"oxemailfooterplain", // email fußtext
"oxrighttocancellegend",
"oxrighttocancellegend2", // widerrufsrecht
"oxstartmetadescription",
"oxstartmetakeywords" // META Tags
),
'position' => 1
),
array(
'group' => 'tinyMceMain',
'name' => 'sTinyMCE_height',
'type' => 'str',
'value' => '300',
'position' => 0
),
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_buttons',
'type' => 'arr',
'value' => array(
"undo redo",
"bold italic underline strikethrough",
"alignleft aligncenter alignright alignjustify",
"bullist numlist",
"outdent indent",
"blockquote",
"removeformat",
"subscript",
"superscript",
"formatselect",
"fontselect",
"fontsizeselect"
),
'position' => 0
),
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_plugins_override',
'type' => 'arr',
'value' => array(),
'position' => 1
),
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_external_plugins',
'type' => 'aarr',
'value' => array(),
'position' => 2
),
array(
'group' => 'tinyMceSettings',
'name' => 'sTinyMCE_custom_controls',
'type' => 'str',
'value' => '',
'position' => 3
),
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_custom_config',
'type' => 'aarr',
'value' => array(),
'position' => 4
),
$sMetadataVersion = '1.1';
$aModule = array(
'id' => 'bla-tinymce',
'title' => '<strong style="color:#95b900;font-size:125%;">best</strong><strong style="color:#c4ca77;font-size:125%;">life</strong> <strong>TinyMCE</strong>',
'description' => 'TinyMCE WYSIWYG Editor for OXID eShop 4.7 - 4.9<br/><b style="display:inline-block;float:left;line-height:18px;">newest version:</b><img src="' . $v . '"/><br/>(no need to update if you already have this version)',
'thumbnail' => 'tinymce.png',
'version' => '1.5.0',
'author' => 'Marat Bedoev, bestlife AG',
'email' => 'oxid@bestlife.ag',
'url' => 'https://github.com/vanilla-thunder/bla-tinymce',
'extend' => array(
'oxviewconfig' => 'bla/bla-tinymce/core/blatinymceoxviewconfig'
),
'blocks' => array(
array(
'template' => 'bottomnaviitem.tpl',
'block' => 'admin_bottomnaviitem',
'file' => '/views/blocks/admin/bottomnaviitem_admin_bottomnaviitem.tpl'
)
);
),
'settings' => array(
/* enabling tinyMCE for this classes */
array(
'group' => 'tinyMceMain',
'name' => 'aTinyMCE_classes',
'type' => 'arr',
'value' => array(
"article_main",
"category_text",
"content_main",
"newsletter_main",
"news_text"
),
'position' => 0
),
array(
'group' => 'tinyMceMain',
'name' => 'aTinyMCE_plaincms',
'type' => 'arr',
'value' => array(
"oxadminorderplainemail",
"oxadminordernpplainemail", // bestellbenachrichtigung admin + fremdländer
"oxuserorderplainemail",
"oxuserordernpplainemail",
"oxuserorderemailendplain", // bestellbenachrichtigung user + fremdländer + abschluss
"oxordersendplainemail", // versandbestätigung
"oxregisterplainemail",
"oxregisterplainaltemail", // registrierung
"oxupdatepassinfoplainemail", // passwort update
"oxnewsletterplainemail", // newsletter
"oxemailfooterplain", // email fußtext
"oxrighttocancellegend",
"oxrighttocancellegend2", // widerrufsrecht
"oxstartmetadescription",
"oxstartmetakeywords" // META Tags
),
'position' => 1
),
// ################################################################# tinymce settings
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_config_override',
'type' => 'aarr',
'value' => array(),
'position' => 0
),
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_buttons',
'type' => 'arr',
'value' => array(
"undo redo",
"bold italic underline strikethrough",
"alignleft aligncenter alignright alignjustify",
"bullist numlist",
"outdent indent",
"blockquote",
"removeformat",
"subscript",
"superscript",
"formatselect",
"fontselect",
"fontsizeselect",
"subscript superscript"
),
'position' => 1
),
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_plugins',
'type' => 'arr',
'value' => array(
'advlist',
'anchor',
'autolink',
'autoresize',
'charmap',
'code',
'colorpicker',
'fullscreen',
'hr',
'image',
'imagetools',
'insertdatetime',
'link',
'lists',
'media',
'nonbreaking',
'pagebreak',
'paste',
'preview',
'searchreplace',
'spellchecker',
'table',
'textcolor',
'visualblocks',
'wordcount'
),
'position' => 2
),
array(
'group' => 'tinyMceSettings',
'name' => 'aTinyMCE_external_plugins',
'type' => 'aarr',
'value' => array(),
'position' => 3
)
)
);

View File

@ -1,27 +0,0 @@
{
"name": "bla-tinymce",
"version": "1.4.0",
"description": "TinyMCE integration for OXID eShop CE",
"author": "Marat Bedoev, bestlife AG <oxid@bestlife.ag>",
"license": "GPLv3",
"repository": {
"type": "git",
"url": "git://github.com/vanilla-thunder/bla-tinymce.git"
},
"bugs": {
"url": "https://github.com/vanilla-thunder/bla-tinymce/issues"
},
"keywords": [
"tinymce",
"oxid",
"oxid",
"eshop",
"editor",
"wysiwyg"
],
"devDependencies": {
"request": "*",
"cheerio": "*",
"adm-zip": "*"
}
}

View File

@ -66,6 +66,9 @@ tinymce.addI18n('cs',{
"Restore last draft": "Obnovit posledn\u00ed koncept",
"Special character": "Speci\u00e1ln\u00ed znak",
"Source code": "Zdrojov\u00fd k\u00f3d",
"B": "B",
"R": "R",
"G": "G",
"Color": "Barva",
"Right to left": "Zprava doleva",
"Left to right": "Zleva doprava",
@ -80,12 +83,9 @@ tinymce.addI18n('cs',{
"Fullscreen": "Na celou obrazovku",
"Horizontal line": "Vodorovn\u00e1 \u010d\u00e1ra",
"Horizontal space": "Horizont\u00e1ln\u00ed mezera",
"B": "B",
"Insert\/edit image": "Vlo\u017eit \/ upravit obr\u00e1zek",
"General": "Obecn\u00e9",
"Advanced": "Pokro\u010dil\u00e9",
"G": "G",
"R": "R",
"Source": "URL",
"Border": "R\u00e1me\u010dek",
"Constrain proportions": "Zachovat proporce",

View File

@ -94,6 +94,25 @@ tinymce.addI18n('de',{
"Style": "Stil",
"Dimensions": "Abmessungen",
"Insert image": "Bild einf\u00fcgen",
"Zoom in": "Ansicht vergr\u00f6\u00dfern",
"Contrast": "Kontrast",
"Back": "Zur\u00fcck",
"Gamma": "Gamma",
"Flip horizontally": "Horizontal spiegeln",
"Resize": "Skalieren",
"Sharpen": "Sch\u00e4rfen",
"Zoom out": "Ansicht verkleinern",
"Image options": "Bildeigenschaften",
"Apply": "Anwenden",
"Brightness": "Helligkeit",
"Rotate clockwise": "Im Uhrzeigersinn drehen",
"Rotate counterclockwise": "Gegen den Uhrzeigersinn drehen",
"Edit image": "Bild bearbeiten",
"Color levels": "Farbwerte",
"Crop": "Bescheiden",
"Orientation": "Ausrichtung",
"Flip vertically": "Vertikal spiegeln",
"Invert": "Invertieren",
"Insert date\/time": "Datum\/Uhrzeit einf\u00fcgen ",
"Remove link": "Link entfernen",
"Url": "URL",

View File

@ -66,6 +66,9 @@ tinymce.addI18n('fr_FR',{
"Restore last draft": "Restaurer le dernier brouillon",
"Special character": "Caract\u00e8res sp\u00e9ciaux",
"Source code": "Code source",
"B": "B",
"R": "R",
"G": "V",
"Color": "Couleur",
"Right to left": "Droite \u00e0 gauche",
"Left to right": "Gauche \u00e0 droite",
@ -80,12 +83,9 @@ tinymce.addI18n('fr_FR',{
"Fullscreen": "Plein \u00e9cran",
"Horizontal line": "Ligne horizontale",
"Horizontal space": "Espacement horizontal",
"B": "B",
"Insert\/edit image": "Ins\u00e9rer\/modifier une image",
"General": "G\u00e9n\u00e9ral",
"Advanced": "Avanc\u00e9",
"G": "V",
"R": "R",
"Source": "Source",
"Border": "Bordure",
"Constrain proportions": "Conserver les proportions",
@ -94,6 +94,25 @@ tinymce.addI18n('fr_FR',{
"Style": "Style",
"Dimensions": "Dimensions",
"Insert image": "Ins\u00e9rer une image",
"Zoom in": "Zoomer",
"Contrast": "Contraste",
"Back": "Retour",
"Gamma": "Gamma",
"Flip horizontally": "Retournement horizontal",
"Resize": "Redimensionner",
"Sharpen": "Affiner",
"Zoom out": "D\u00e9zoomer",
"Image options": "Options de l'image",
"Apply": "Appliquer",
"Brightness": "Luminosit\u00e9",
"Rotate clockwise": "Rotation horaire",
"Rotate counterclockwise": "Rotation anti-horaire",
"Edit image": "Modifier l'image",
"Color levels": "Niveaux de couleur",
"Crop": "Rogner",
"Orientation": "Orientation",
"Flip vertically": "Retournement vertical",
"Invert": "Inverser",
"Insert date\/time": "Ins\u00e9rer date\/heure",
"Remove link": "Enlever le lien",
"Url": "Url",

View File

@ -66,6 +66,9 @@ tinymce.addI18n('nl',{
"Restore last draft": "Herstel het laatste concept",
"Special character": "Speciale karakters",
"Source code": "Broncode",
"B": "Blauw",
"R": "Rood",
"G": "Groen",
"Color": "Kleur",
"Right to left": "Rechts naar links",
"Left to right": "Links naar rechts",
@ -80,12 +83,9 @@ tinymce.addI18n('nl',{
"Fullscreen": "Volledig scherm",
"Horizontal line": "Horizontale lijn",
"Horizontal space": "Horizontale ruimte",
"B": "Blauw",
"Insert\/edit image": "Afbeelding invoegen\/bewerken",
"General": "Algemeen",
"Advanced": "Geavanceerd",
"G": "Groen",
"R": "Rood",
"Source": "Bron",
"Border": "Rand",
"Constrain proportions": "Verhoudingen behouden",

View File

@ -66,6 +66,9 @@ tinymce.addI18n('ru',{
"Restore last draft": "\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430",
"Special character": "\u0421\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b",
"Source code": "\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434",
"B": "B",
"R": "R",
"G": "G",
"Color": "\u0426\u0432\u0435\u0442",
"Right to left": "\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u043b\u0435\u0432\u043e",
"Left to right": "\u041d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e",
@ -80,12 +83,9 @@ tinymce.addI18n('ru',{
"Fullscreen": "\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c",
"Horizontal line": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u0430\u044f \u043b\u0438\u043d\u0438\u044f",
"Horizontal space": "\u0413\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b",
"B": "B",
"Insert\/edit image": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c\/\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",
"General": "\u041e\u0431\u0449\u0435\u0435",
"Advanced": "\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u043d\u044b\u0435",
"G": "G",
"R": "R",
"Source": "\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a",
"Border": "\u0420\u0430\u043c\u043a\u0430",
"Constrain proportions": "\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0438",
@ -94,6 +94,25 @@ tinymce.addI18n('ru',{
"Style": "\u0421\u0442\u0438\u043b\u044c",
"Dimensions": "\u0420\u0430\u0437\u043c\u0435\u0440",
"Insert image": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",
"Zoom in": "\u041f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u044c",
"Contrast": "\u041a\u043e\u043d\u0442\u0440\u0430\u0441\u0442",
"Back": "\u041d\u0430\u0437\u0430\u0434",
"Gamma": "\u0413\u0430\u043c\u043c\u0430",
"Flip horizontally": "\u041e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438",
"Resize": "\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440",
"Sharpen": "\u0427\u0435\u0442\u043a\u043e\u0441\u0442\u044c",
"Zoom out": "\u041e\u0442\u0434\u0430\u043b\u0438\u0442\u044c",
"Image options": "\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f",
"Apply": "\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c",
"Brightness": "\u042f\u0440\u043a\u043e\u0441\u0442\u044c",
"Rotate clockwise": "\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u043e \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0435",
"Rotate counterclockwise": "\u041f\u043e\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043f\u0440\u043e\u0442\u0438\u0432 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u043a\u0438",
"Edit image": "\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435",
"Color levels": "\u0426\u0432\u0435\u0442\u043e\u0432\u044b\u0435 \u0443\u0440\u043e\u0432\u043d\u0438",
"Crop": "\u041e\u0431\u0440\u0435\u0437\u0430\u0442\u044c",
"Orientation": "\u041e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f",
"Flip vertically": "\u041e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438",
"Invert": "\u0418\u043d\u0432\u0435\u0440\u0441\u0438\u044f",
"Insert date\/time": "\u0412\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u0442\u0443\/\u0432\u0440\u0435\u043c\u044f",
"Remove link": "\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",
"Url": "\u0410\u0434\u0440\u0435\u0441 \u0441\u0441\u044b\u043b\u043a\u0438",

View File

@ -1 +1 @@
!function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a){var b=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.on("beforeSetContent",function(a){a.content=b["_"+c+"_bbcode2html"](a.content)}),a.on("postProcess",function(a){a.set&&(a.content=b["_"+c+"_bbcode2html"](a.content)),a.get&&(a.content=b["_"+c+"_html2bbcode"](a.content))})},getInfo:function(){return{longname:"BBCode Plugin",author:"Moxiecode Systems AB",authorurl:"http://www.tinymce.com",infourl:"http://www.tinymce.com/wiki.php/Plugin:bbcode"}},_punbb_html2bbcode:function(a){function b(b,c){a=a.replace(b,c)}return a=tinymce.trim(a),b(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),b(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),b(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),b(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),b(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),b(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),b(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),b(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),b(/<font>(.*?)<\/font>/gi,"$1"),b(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),b(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),b(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),b(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),b(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),b(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),b(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),b(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),b(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),b(/<\/(strong|b)>/gi,"[/b]"),b(/<(strong|b)>/gi,"[b]"),b(/<\/(em|i)>/gi,"[/i]"),b(/<(em|i)>/gi,"[i]"),b(/<\/u>/gi,"[/u]"),b(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),b(/<u>/gi,"[u]"),b(/<blockquote[^>]*>/gi,"[quote]"),b(/<\/blockquote>/gi,"[/quote]"),b(/<br \/>/gi,"\n"),b(/<br\/>/gi,"\n"),b(/<br>/gi,"\n"),b(/<p>/gi,""),b(/<\/p>/gi,"\n"),b(/&nbsp;|\u00a0/gi," "),b(/&quot;/gi,'"'),b(/&lt;/gi,"<"),b(/&gt;/gi,">"),b(/&amp;/gi,"&"),a},_punbb_bbcode2html:function(a){function b(b,c){a=a.replace(b,c)}return a=tinymce.trim(a),b(/\n/gi,"<br />"),b(/\[b\]/gi,"<strong>"),b(/\[\/b\]/gi,"</strong>"),b(/\[i\]/gi,"<em>"),b(/\[\/i\]/gi,"</em>"),b(/\[u\]/gi,"<u>"),b(/\[\/u\]/gi,"</u>"),b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),b(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),b(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),b(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;'),b(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;'),a}}),tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)}();
!function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(a){var b=this,c=a.getParam("bbcode_dialect","punbb").toLowerCase();a.on("beforeSetContent",function(a){a.content=b["_"+c+"_bbcode2html"](a.content)}),a.on("postProcess",function(a){a.set&&(a.content=b["_"+c+"_bbcode2html"](a.content)),a.get&&(a.content=b["_"+c+"_html2bbcode"](a.content))})},getInfo:function(){return{longname:"BBCode Plugin",author:"Ephox Corp",authorurl:"http://www.tinymce.com",infourl:"http://www.tinymce.com/wiki.php/Plugin:bbcode"}},_punbb_html2bbcode:function(a){function b(b,c){a=a.replace(b,c)}return a=tinymce.trim(a),b(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),b(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),b(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),b(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),b(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),b(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),b(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),b(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),b(/<font>(.*?)<\/font>/gi,"$1"),b(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),b(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),b(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),b(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),b(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),b(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),b(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),b(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),b(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),b(/<\/(strong|b)>/gi,"[/b]"),b(/<(strong|b)>/gi,"[b]"),b(/<\/(em|i)>/gi,"[/i]"),b(/<(em|i)>/gi,"[i]"),b(/<\/u>/gi,"[/u]"),b(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),b(/<u>/gi,"[u]"),b(/<blockquote[^>]*>/gi,"[quote]"),b(/<\/blockquote>/gi,"[/quote]"),b(/<br \/>/gi,"\n"),b(/<br\/>/gi,"\n"),b(/<br>/gi,"\n"),b(/<p>/gi,""),b(/<\/p>/gi,"\n"),b(/&nbsp;|\u00a0/gi," "),b(/&quot;/gi,'"'),b(/&lt;/gi,"<"),b(/&gt;/gi,">"),b(/&amp;/gi,"&"),a},_punbb_bbcode2html:function(a){function b(b,c){a=a.replace(b,c)}return a=tinymce.trim(a),b(/\n/gi,"<br />"),b(/\[b\]/gi,"<strong>"),b(/\[\/b\]/gi,"</strong>"),b(/\[i\]/gi,"<em>"),b(/\[\/i\]/gi,"</em>"),b(/\[u\]/gi,"<u>"),b(/\[\/u\]/gi,"</u>"),b(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),b(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),b(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),b(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),b(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span>&nbsp;'),b(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span>&nbsp;'),a}}),tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)}();

View File

@ -1 +1 @@
tinymce.PluginManager.add("contextmenu",function(a){var b,c=a.settings.contextmenu_never_use_native;a.on("contextmenu",function(d){var e,f=a.getDoc();if(!d.ctrlKey||c){if(d.preventDefault(),tinymce.Env.mac&&tinymce.Env.webkit&&2==d.button&&f.caretRangeFromPoint&&a.selection.setRng(f.caretRangeFromPoint(d.x,d.y)),e=a.settings.contextmenu||"link image inserttable | cell row column deletetable",b)b.show();else{var g=[];tinymce.each(e.split(/[ ,]/),function(b){var c=a.menuItems[b];"|"==b&&(c={text:b}),c&&(c.shortcut="",g.push(c))});for(var h=0;h<g.length;h++)"|"==g[h].text&&(0===h||h==g.length-1)&&g.splice(h,1);b=new tinymce.ui.Menu({items:g,context:"contextmenu"}).addClass("contextmenu").renderTo(),a.on("remove",function(){b.remove(),b=null})}var i={x:d.pageX,y:d.pageY};a.inline||(i=tinymce.DOM.getPos(a.getContentAreaContainer()),i.x+=d.clientX,i.y+=d.clientY),b.moveTo(i.x,i.y)}})});
tinymce.PluginManager.add("contextmenu",function(a){var b,c=a.settings.contextmenu_never_use_native;a.on("contextmenu",function(d){var e,f=a.getDoc();if(!d.ctrlKey||c){if(d.preventDefault(),tinymce.Env.mac&&tinymce.Env.webkit&&2==d.button&&f.caretRangeFromPoint&&a.selection.setRng(f.caretRangeFromPoint(d.x,d.y)),e=a.settings.contextmenu||"link image inserttable | cell row column deletetable",b)b.show();else{var g=[];tinymce.each(e.split(/[ ,]/),function(b){var c=a.menuItems[b];"|"==b&&(c={text:b}),c&&(c.shortcut="",g.push(c))});for(var h=0;h<g.length;h++)"|"==g[h].text&&(0===h||h==g.length-1)&&g.splice(h,1);b=new tinymce.ui.Menu({items:g,context:"contextmenu",classes:"contextmenu"}).renderTo(),a.on("remove",function(){b.remove(),b=null})}var i={x:d.pageX,y:d.pageY};a.inline||(i=tinymce.DOM.getPos(a.getContentAreaContainer()),i.x+=d.clientX,i.y+=d.clientY),b.moveTo(i.x,i.y)}})});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -60,4 +60,24 @@
<glyph unicode="&#xe033;" d="M128 416l288-288 480 480-128 128-352-352-160 160z" />
<glyph unicode="&#xe034;" d="M928 832h-416l-32 64h-352l-64-128h896zM904.34 256h74.86l44.8 448h-1024l64-640h484.080c-104.882 37.776-180.080 138.266-180.080 256 0 149.982 122.018 272 272 272 149.98 0 272-122.018 272-272 0-21.678-2.622-43.15-7.66-64zM1002.996 46.25l-198.496 174.692c17.454 28.92 27.5 62.814 27.5 99.058 0 106.040-85.96 192-192 192s-192-85.96-192-192 85.96-192 192-192c36.244 0 70.138 10.046 99.058 27.5l174.692-198.496c22.962-26.678 62.118-28.14 87.006-3.252l5.492 5.492c24.888 24.888 23.426 64.044-3.252 87.006zM640 196c-68.484 0-124 55.516-124 124s55.516 124 124 124 124-55.516 124-124-55.516-124-124-124z" />
<glyph unicode="&#xe035;" d="M512 448v-128h32l32 64h64v-256h-48v-64h224v64h-48v256h64l32-64h32v128zM832 640v160c0 17.6-14.4 32-32 32h-224v64c0 35.2-28.8 64-64 64h-128c-35.204 0-64-28.8-64-64v-64h-224c-17.602 0-32-14.4-32-32v-640c0-17.6 14.398-32 32-32h288v-192h640v704h-192zM384 895.886c0.034 0.038 0.072 0.078 0.114 0.114h127.768c0.042-0.036 0.082-0.076 0.118-0.114v-63.886h-128v63.886zM192 704v64h512v-64h-512zM960 0h-512v576h512v-576z" />
<glyph unicode="&#xe600;" d="M483.2 320l-147.2 336c-9.6 25.6-19.2 44.8-25.6 54.4s-16 12.8-25.6 12.8c-16 0-25.6-3.2-28.8-3.2v70.4c9.6 6.4 25.6 6.4 38.4 9.6 32 0 57.6-6.4 73.6-22.4 6.4-6.4 12.8-16 19.2-25.6 6.4-12.8 12.8-25.6 16-41.6l121.6-291.2 150.4 371.2h92.8l-198.4-470.4v-224h-86.4v224zM0 960v-1024h1024v1024h-1024zM960 0h-896v896h896v-896z" />
<glyph unicode="&#xe601;" d="M627.2 80h-579.2v396.8h579.2v-396.8zM553.6 406.4h-435.2v-256h435.2v256zM259.2 732.8c176 176 457.6 176 633.6 0s176-457.6 0-633.6c-121.6-121.6-297.6-160-454.4-108.8 121.6-28.8 262.4 9.6 361.6 108.8 150.4 150.4 160 384 22.4 521.6-121.6 121.6-320 128-470.4 19.2l86.4-86.4-294.4-22.4 22.4 294.4 92.8-92.8z" />
<glyph unicode="&#xe602;" d="M892.8-22.4l-89.6 89.6c-70.4-80-172.8-131.2-288-131.2-208 0-380.8 166.4-384 377.6 0 0 0 0 0 0 0 3.2 0 3.2 0 6.4s0 3.2 0 6.4v0c0 0 0 0 0 3.2 0 0 0 3.2 0 3.2 3.2 105.6 48 211.2 105.6 304l-192 192 44.8 44.8 182.4-182.4c0 0 0 0 0 0l569.6-569.6c0 0 0 0 0 0l99.2-99.2-48-44.8zM896 326.4c0 0 0 0 0 0 0 3.2 0 6.4 0 6.4-9.6 316.8-384 627.2-384 627.2s-108.8-89.6-208-220.8l70.4-70.4c6.4 9.6 16 22.4 22.4 32 41.6 51.2 83.2 96 115.2 128v0c32-32 73.6-76.8 115.2-128 108.8-137.6 169.6-265.6 172.8-371.2 0 0 0-3.2 0-3.2v0 0c0-3.2 0-3.2 0-6.4s0-3.2 0-3.2v0 0c0-22.4-3.2-41.6-9.6-64l76.8-76.8c16 41.6 28.8 89.6 28.8 137.6 0 0 0 0 0 0 0 3.2 0 3.2 0 6.4s0 3.2 0 6.4z" />
<glyph unicode="&#xe914;" d="M768 416v-352h-640v640h352l128 128h-512c-52.8 0-96-43.2-96-96v-704c0-52.8 43.2-96 96-96h704c52.798 0 96 43.2 96 96v512l-128-128zM864 960l-608-608v-160h160l608 608c0 96-64 160-160 160zM416 320l-48 48 480 480 48-48-480-480z" />
<glyph unicode="&#xe934;" d="M864.626 486.838c-65.754 183.44-205.11 348.15-352.626 473.162-147.516-125.012-286.87-289.722-352.626-473.162-40.664-113.436-44.682-236.562 12.584-345.4 65.846-125.14 198.632-205.438 340.042-205.438s274.196 80.298 340.040 205.44c57.27 108.838 53.25 231.962 12.586 345.398zM738.764 201.044c-43.802-83.252-132.812-137.044-226.764-137.044-55.12 0-108.524 18.536-152.112 50.652 13.242-1.724 26.632-2.652 40.112-2.652 117.426 0 228.668 67.214 283.402 171.242 44.878 85.292 40.978 173.848 23.882 244.338 14.558-28.15 26.906-56.198 36.848-83.932 22.606-63.062 40.024-156.34-5.368-242.604z" />
<glyph unicode="&#xeaa8;" d="M704 896c-247.424 0-448-200.576-448-448h-224l288-288 288 288h-224c0 176.73 143.27 320 320 320 176.732 0 320-143.27 320-320 0-176.732-143.268-320-320-320v-128c247.424 0 448 200.576 448 448s-200.576 448-448 448z" horiz-adv-x="1152" />
<glyph unicode="&#xeaa9;" d="M448 896c247.424 0 448-200.576 448-448h224l-288-288-288 288h224c0 176.73-143.27 320-320 320-176.732 0-320-143.27-320-320 0-176.732 143.268-320 320-320v-128c-247.424 0-448 200.576-448 448s200.576 448 448 448z" horiz-adv-x="1152" />
<glyph unicode="&#xeaaa;" d="M0 576h1024v384zM1024 0v384h-1024z" />
<glyph unicode="&#xeaac;" d="M576 960v-1024h384zM0-64h384v1024z" />
<glyph unicode="&#xeb35;" d="M992.262 88.604l-242.552 206.294c-25.074 22.566-51.89 32.926-73.552 31.926 57.256 67.068 91.842 154.078 91.842 249.176 0 212.078-171.922 384-384 384-212.076 0-384-171.922-384-384s171.922-384 384-384c95.098 0 182.108 34.586 249.176 91.844-1-21.662 9.36-48.478 31.926-73.552l206.294-242.552c35.322-39.246 93.022-42.554 128.22-7.356s31.892 92.898-7.354 128.22zM384 320c-141.384 0-256 114.616-256 256s114.616 256 256 256 256-114.616 256-256-114.614-256-256-256zM448 768h-128v-128h-128v-128h128v-128h128v128h128v128h-128z" />
<glyph unicode="&#xeb36;" d="M992.262 88.604l-242.552 206.294c-25.074 22.566-51.89 32.926-73.552 31.926 57.256 67.068 91.842 154.078 91.842 249.176 0 212.078-171.922 384-384 384-212.076 0-384-171.922-384-384s171.922-384 384-384c95.098 0 182.108 34.586 249.176 91.844-1-21.662 9.36-48.478 31.926-73.552l206.294-242.552c35.322-39.246 93.022-42.554 128.22-7.356s31.892 92.898-7.354 128.22zM384 320c-141.384 0-256 114.616-256 256s114.616 256 256 256 256-114.616 256-256-114.614-256-256-256zM192 640h384v-128h-384z" />
<glyph unicode="&#xeba7;" d="M768 832h-512l-256-256 512-576 512 576-256 256zM512 181.334v2.666h-2.37l-14.222 16h16.592v16h-30.814l-14.222 16h45.036v16h-59.258l-14.222 16h73.48v16h-87.704l-14.222 16h101.926v16h-116.148l-14.222 16h130.37v16h-144.592l-14.222 16h158.814v16h-173.038l-14.222 16h187.26v16h-201.482l-14.222 16h215.704v16h-229.926l-14.222 16h244.148v16h-258.372l-14.222 16h272.594v16h-286.816l-14.222 16h301.038v16h-315.26l-14.222 16h329.482v16h-343.706l-7.344 8.262 139.072 139.072h211.978v-3.334h215.314l16-16h-231.314v-16h247.314l16-16h-263.314v-16h279.314l16-16h-295.314v-16h311.314l16-16h-327.314v-16h343.312l7.738-7.738-351.050-394.928z" />
<glyph unicode="&#xec6a;" d="M64 768h896v-192h-896zM64 512h896v-192h-896zM64 256h896v-192h-896z" />
<glyph unicode="&#xeccc;" d="M512 128c35.346 0 64-28.654 64-64v-64c0-35.346-28.654-64-64-64s-64 28.654-64 64v64c0 35.346 28.654 64 64 64zM512 768c-35.346 0-64 28.654-64 64v64c0 35.346 28.654 64 64 64s64-28.654 64-64v-64c0-35.346-28.654-64-64-64zM960 512c35.346 0 64-28.654 64-64s-28.654-64-64-64h-64c-35.348 0-64 28.654-64 64s28.652 64 64 64h64zM192 448c0-35.346-28.654-64-64-64h-64c-35.346 0-64 28.654-64 64s28.654 64 64 64h64c35.346 0 64-28.654 64-64zM828.784 221.726l45.256-45.258c24.992-24.99 24.992-65.516 0-90.508-24.994-24.992-65.518-24.992-90.51 0l-45.256 45.256c-24.992 24.99-24.992 65.516 0 90.51 24.994 24.992 65.518 24.992 90.51 0zM195.216 674.274l-45.256 45.256c-24.994 24.994-24.994 65.516 0 90.51s65.516 24.994 90.51 0l45.256-45.256c24.994-24.994 24.994-65.516 0-90.51s-65.516-24.994-90.51 0zM828.784 674.274c-24.992-24.992-65.516-24.992-90.51 0-24.992 24.994-24.992 65.516 0 90.51l45.256 45.254c24.992 24.994 65.516 24.994 90.51 0 24.992-24.994 24.992-65.516 0-90.51l-45.256-45.254zM195.216 221.726c24.992 24.992 65.518 24.992 90.508 0 24.994-24.994 24.994-65.52 0-90.51l-45.254-45.256c-24.994-24.992-65.516-24.992-90.51 0s-24.994 65.518 0 90.508l45.256 45.258zM512 704c-141.384 0-256-114.616-256-256 0-141.382 114.616-256 256-256 141.382 0 256 114.618 256 256 0 141.384-114.616 256-256 256zM512 288c-88.366 0-160 71.634-160 160s71.634 160 160 160 160-71.634 160-160-71.634-160-160-160z" />
<glyph unicode="&#xeccd;" d="M715.812 895.52c-60.25 34.784-124.618 55.904-189.572 64.48 122.936-160.082 144.768-384.762 37.574-570.42-107.2-185.67-312.688-279.112-512.788-252.68 39.898-51.958 90.376-97.146 150.628-131.934 245.908-141.974 560.37-57.72 702.344 188.198 141.988 245.924 57.732 560.372-188.186 702.356z" />
<glyph unicode="&#xecd4;" d="M512 960c-282.77 0-512-229.23-512-512s229.23-512 512-512 512 229.23 512 512-229.23 512-512 512zM128 448c0 212.078 171.922 384 384 384v-768c-212.078 0-384 171.922-384 384z" />
<glyph unicode="&#xed6a;" d="M893.254 738.746l-90.508 90.508-290.746-290.744-290.746 290.744-90.508-90.506 290.746-290.748-290.746-290.746 90.508-90.508 290.746 290.746 290.746-290.746 90.508 90.51-290.744 290.744z" />
<glyph unicode="&#xedc0;" d="M672-64l192 192-320 320 320 320-192 192-512-512z" />
<glyph unicode="&#xedf9;" d="M0 896v-384c0-35.346 28.654-64 64-64s64 28.654 64 64v229.488l677.488-677.488h-229.488c-35.346 0-64-28.652-64-64 0-35.346 28.654-64 64-64h384c35.346 0 64 28.654 64 64v384c0 35.348-28.654 64-64 64s-64-28.652-64-64v-229.488l-677.488 677.488h229.488c35.346 0 64 28.654 64 64s-28.652 64-64 64h-384c-35.346 0-64-28.654-64-64z" />
<glyph unicode="&#xee78;" d="M832 704l192 192-64 64-192-192h-448v192h-128v-192h-192v-128h192v-512h512v-192h128v192h192v128h-192v448zM320 640h320l-320-320v320zM384 256l320 320v-320h-320z" />
</font></defs></svg>

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 29 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,122 +0,0 @@
var r = require('request');
var c = require('cheerio');
var fs = require('fs');
var AdmZip = require('adm-zip');
var error = function (err) {
console.error(" ############################################################");
console.error(" # " + err);
console.error(" ############################################################");
process.exit();
};
var log = function(msg) {
var shlomo = " |";
console.log(" | " + msg + shlomo.substring(msg.length));
}
var deleteFolderRecursive = function (path) {
try {
if (fs.existsSync(path)) {
fs.readdirSync(path).forEach(function (file, index) {
var curPath = path + "/" + file;
if (fs.lstatSync(curPath).isDirectory()) { // recurse
deleteFolderRecursive(curPath);
} else { // delete file
fs.unlinkSync(curPath);
}
});
fs.rmdirSync(path);
}
} catch (e) {
error(e);
}
};
console.log("");
console.log(" ___________________________ updating TinyMCE started ___________________________");
log("");
var fnc = process.argv[2];
if (!fnc) {
r("http://www.tinymce.com/download/download.php", function (err, res, body) {
if (err || res.statusCode != 200) error(err);
// (re)moving old tinymce files
if (fs.existsSync("tinymce")) {
log("-> removing old files");
fs.renameSync("tinymce", "old_tinymce");
deleteFolderRecursive("old_tinymce");
log("");
}
var tinymceurl = c.load(body)('#twocolumns a.track-tinymce').eq(0).attr('href');
log("-> downloading newest TinyMCE");
log(" "+tinymceurl);
log("");
r(tinymceurl).pipe(
fs.createWriteStream('tmp_tinymce.zip')
.on('close', function () {
//console.log("tinymce download finished");
log("-> extracting TinyMCE");
var tinymce = new AdmZip('tmp_tinymce.zip');
tinymce.getEntries().forEach(function (e) {
if (e.entryName.indexOf("tinymce/js/tinymce/") === 0) {
tinymce.extractEntryTo(e.entryName, e.entryName.replace("tinymce/js/tinymce", "tinymce").replace(e.name, ""), false, true);
}
});
fs.unlink('tmp_tinymce.zip');
log("");
})
);
log("-> downloading latest language files:");
log(" CS, DA, DE, FR, IT, NL, RU");
log("");
r("http://www.tinymce.com/i18n/download.php?download[]=cs&download[]=da&download[]=de&download[]=fr_FR&download[]=it&download[]=nl&download[]=ru").pipe(
fs.createWriteStream('tmp_languages.zip')
.on('close', function () {
//console.log("language files download finished");
log("-> extracting lamguage files");
var languages = new AdmZip('tmp_languages.zip');
languages.extractAllTo("tinymce/", true);
fs.unlink('tmp_languages.zip');
log("");
})
);
});
}
else if (fnc == "version") {
// update version.jpg
var version = process.argv[3];
if (!version) {
var runner = require('child_process');
runner.exec('php -r \'include("metadata.php"); print $aModule["version"];\'',
function (err, stdout, stderr) {
//console.log(stdout);
if(err) error(err);
if(stderr) error(stderr);
version = stdout.split(" ")[0];
}
);
}
log("-> updating version.jpg to " + version);
url = "http://dev.marat.ws/v/?raw=1&v=" + version;
r(url).pipe(fs.createWriteStream('version.jpg', true));
log(" +++ successful +++");
}
process.on('exit', function(code) {
log("");
console.log(" |__________________________ update process finished ___________________________|");
console.log("");
});

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -1,36 +1,2 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
$sLangName = 'English';
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>general module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">list of backend classes, TinyMCE will be active for:</b><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (newsletter)</li><li>news_text (news text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents of CMS pages TinyMCE will be excluded for</b> (e.g. plain Emails)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">editor height in px</b> (without units)',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE settings &amp; plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">default toolbar controls <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">it concerns core buttons only!</b> The other buttons depend on active plugins and will be loaded automaticaly.<br/>default value:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">disable TinyMCE core plugins</b><br/>enter one plugin per row,<br/>e.g. type "emoticons" to deactivate the emoticons plugin',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">external plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>format:<br/>pluginname => path/to/the/file.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">additional toolbar controls</b> e.g. for external plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">custom configuration params <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank">(?)</a></b><br/>e.g. for external plugins or for overriding default config<br/><b>parameter => "value"</b> (with quotes if required!)',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
);
include("../en/module_options.php");

View File

@ -1,36 +1,2 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
$sLangName = 'English';
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>general module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">list of backend classes, TinyMCE will be active for:</b><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (newsletter)</li><li>news_text (news text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents of CMS pages TinyMCE will be excluded for</b> (e.g. plain Emails)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">editor height in px</b> (without units)',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE settings &amp; plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">default toolbar controls <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">it concerns core buttons only!</b> The other buttons depend on active plugins and will be loaded automaticaly.<br/>default value:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">disable TinyMCE core plugins</b><br/>enter one plugin per row,<br/>e.g. type "emoticons" to deactivate the emoticons plugin',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">external plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>format:<br/>pluginname => path/to/the/file.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">additional toolbar controls</b> e.g. for external plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">custom configuration params <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank">(?)</a></b><br/>e.g. for external plugins or for overriding default config<br/><b>parameter => "value"</b> (with quotes if required!)',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
);
include("../en/module_options.php");

View File

@ -1,8 +1,8 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2014 bestlife AG
/*
* bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
@ -15,22 +15,21 @@
*/
$sLangName = 'Deutsch';
$aLang = array(
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>Moduleinstellungen',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">Liste der Backend-Klassen, wo TinyMCE angezeigt werden soll</b></li><li>article_main (Artikelbeschreibung)</li><li>content_main (CMS Seiten)</li><li>category_text (Kategorienbeschreibung)</li><li>newsletter_main (Newsletter)</li><li>news_text (Nachrichten-Text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents der CMS Seiten, für die TinyMCE nicht geladen werden soll</b> (plain Emails etc)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">Höhe des Editors</b> (eine reine Zahl ohne Einheiten)',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size:medium;color:#ff3600;}.groupExp dt input.txt {width:430px !important} .groupExp dl {display:block !important;} input.confinput {position:fixed;top:20px;right:70px;background:#008B2D;padding:10px 25px;color:white;border:1px solid black;cursor:pointer;font-size:125%;} input.confinput:hover {outline:3px solid #ff3600;} .groupExp dt textarea.txtfield {width:430px;height:150px;}</style>Moduleinstellungen',
'SHOP_MODULE_aTinyMCE_classes' => '<h3>Liste der Backend-Klassen, wo TinyMCE angezeigt werden soll</h3><ul><li>article_main (Artikelbeschreibung)</li><li>content_main (CMS Seiten)</li><li>category_text (Kategorienbeschreibung)</li><li>newsletter_main (Newsletter)</li><li>news_text (Nachrichten-Text)</li></ul>',
'HELP_SHOP_MODULE_aTinyMCE_classes' => 'für die Benutzung von TinyMCE in eigenen Admin Views muss hier die entsprechende View Klasse eingetragen werden, dann werden für jedes textarea je ein Editor erzeugt',
'SHOP_MODULE_aTinyMCE_plaincms' => '<h3>plaintext CMS Seiten</h3>bei CMS Seiten mit diesen Idents wird kein Editor geladen. Z.B: Plaintext Emails, Email Betreffzeilen, etc',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE Einstellungen &amp; Plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">Basis-Buttons auf der Toolbar<a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">es betrifft nur die Buttons unter dem ersten Punkt: "core"!</b> Alle anderen werden über Plugins automatisch hinzugefügt bzw. entfernt.<br/>Standardwert:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">Basis-Plugins von TinyMCE ausschalten</b><br/>jeweils ein Plugin pro Zeile,<br/>z.B. um Plugin "emoticons" zu deaktivieren, "emoticons" eintragen',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">externe Plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>Eingabeformat:<br/>Pluginname => Pfad/zur/Datei.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">zusätzliche Toolbar-Buttons</b> z.B. für externe Plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">eigene Konfigurationsparameter <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank" title="mehr Infos">(?)</a></b><br/>z.B. für externe Plugins oder um bestehende zu überschreiben<br/><b>parameter => "wert"</b> (mit Anführungszeichen, falls erforderlich!)',
'SHOP_MODULE_aTinyMCE_config_override' => '<h3>eigene Editor Konfiguration <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank" title="mehr Infos">(?)</a></h3>z.B. für externe Plugins oder um standard Parameter zu überschreiben<br/><b>parameter => "wert"</b> (mit Anführungszeichen, falls erforderlich!)',
'SHOP_MODULE_aTinyMCE_buttons' => '<h3>Toolbar Buttons <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></h3><b style="color:#ff3600;">es betrifft nur die Buttons (Toolbar controls) unter dem ersten Punkt: "core"</b> und buttons für eigene / externe plugins.<br/>Buttons von standard Plugins werden über Plugins-Konfiguration automatisch hinzugefügt bzw. entfernt.<br/>Standardwerte finden Sie in dem Hilfe-Popup',
'HELP_SHOP_MODULE_aTinyMCE_buttons' => "<textarea rows='7' cols='55'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect\nsubscript superscript</textarea>",
'SHOP_MODULE_aTinyMCE_plugins' => '<h3>aktive Editor Plugins <a href="http://www.tinymce.com/wiki.php/Plugins" target="_blank">(?)</a></h3>jeweils ein Plugin pro Zeile.<br/>Standardwerte finden Sie in dem Hilfe-Popup',
'HELP_SHOP_MODULE_aTinyMCE_plugins' => "<textarea rows='7' cols='55'>advlist\nanchor\nautolink\nautoresize\ncharmap\ncode\ncolorpicker\nfullscreen\nhr\nimage\nimagetools\ninsertdatetime\nlink\nlists\nmedia\nnonbreaking\npagebreak\npaste\npreview\nsearchreplace\nspellchecker\ntable\ntextcolor\nvisualblocks\nwordcount</textarea>",
'SHOP_MODULE_aTinyMCE_external_plugins' => '<h3>externe Plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></h3><br/>Eingabeformat:<br/>Pluginname => Pfad/zur/Datei.js',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE ist für diese Seite deaktiviert, weil sie keine HTML Formatierung enthalten darf </b>'
);

View File

@ -1,7 +1,7 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
/*
* bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
@ -15,22 +15,22 @@
*/
$sLangName = 'English';
$aLang = array(
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>general module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">list of backend classes, TinyMCE will be active for:</b><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (newsletter)</li><li>news_text (news text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents of CMS pages TinyMCE will be excluded for</b> (e.g. plain Emails)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">editor height in px</b> (without units)',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE settings &amp; plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">default toolbar controls <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">it concerns core buttons only!</b> The other buttons depend on active plugins and will be loaded automaticaly.<br/>default value:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">disable TinyMCE core plugins</b><br/>enter one plugin per row,<br/>e.g. type "emoticons" to deactivate the emoticons plugin',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">external plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>format:<br/>pluginname => path/to/the/file.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">additional toolbar controls</b> e.g. for external plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">custom configuration params <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank">(?)</a></b><br/>e.g. for external plugins or for overriding default config<br/><b>parameter => "value"</b> (with quotes if required!)',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<h3>Enable TinyMCE For This Backend Views</h3><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (Newsletter)</li><li>news_text (news text)</li></ul>',
'HELP_SHOP_MODULE_aTinyMCE_classes' => 'if you want to use TinyMCE for your custom views, add here the view\'s class name, then textareas should become editor instances',
'SHOP_MODULE_aTinyMCE_plaincms' => '<h3>Plain Text CMS pages</h3>TinyMCE will not apper for this cms pages. e.g: Plaintext Emails, Email subjects, etc',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE Settings &amp; Plugins',
'SHOP_MODULE_aTinyMCE_config_override' => '<h3>Custom Editor Configuration <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank" title="mehr Infos">(?)</a></h3>e.g. for external plugins or to overwrite default configuration<br/><b>parameter => "value"</b> (with quotes, if required!)',
'SHOP_MODULE_aTinyMCE_buttons' => '<h3>Toolbar Buttons <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></h3>'.
'<b style="color:#ff3600;">only for core toolbar controls and buttons for custom and external plugins!</b><br/>Buttons for standard plugins will be displayd if the plugin is active.<br/>See the help popup for the default value of this setting',
'HELP_SHOP_MODULE_aTinyMCE_buttons' => "<textarea rows='7' cols='55'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect\nsubscript superscript</textarea>",
'SHOP_MODULE_aTinyMCE_plugins' => '<h3>Active Editor Plugins <a href="http://www.tinymce.com/wiki.php/Plugins" target="_blank">(?)</a></h3>enter here the default plugins you want to be enabled<br/>See the help popup for the default value of this setting',
'HELP_SHOP_MODULE_aTinyMCE_plugins' => "<textarea rows='7' cols='55'>advlist\nanchor\nautolink\nautoresize\ncharmap\ncode\ncolorpicker\nfullscreen\nhr\nimage\nimagetools\ninsertdatetime\nlink\nlists\nmedia\nnonbreaking\npagebreak\npaste\npreview\nsearchreplace\nspellchecker\ntable\ntextcolor\nvisualblocks\nwordcount</textarea>",
'SHOP_MODULE_aTinyMCE_external_plugins' => '<h3>External Plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></h3>pluginname => plugin_path/or/url/plugin.js',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
);

View File

@ -1,36 +1,2 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
$sLangName = 'English';
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>general module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">list of backend classes, TinyMCE will be active for:</b><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (newsletter)</li><li>news_text (news text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents of CMS pages TinyMCE will be excluded for</b> (e.g. plain Emails)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">editor height in px</b> (without units)',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE settings &amp; plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">default toolbar controls <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">it concerns core buttons only!</b> The other buttons depend on active plugins and will be loaded automaticaly.<br/>default value:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">disable TinyMCE core plugins</b><br/>enter one plugin per row,<br/>e.g. type "emoticons" to deactivate the emoticons plugin',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">external plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>format:<br/>pluginname => path/to/the/file.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">additional toolbar controls</b> e.g. for external plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">custom configuration params <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank">(?)</a></b><br/>e.g. for external plugins or for overriding default config<br/><b>parameter => "value"</b> (with quotes if required!)',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
);
include("../en/module_options.php");

View File

@ -1,36 +1,2 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
$sLangName = 'English';
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>general module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">list of backend classes, TinyMCE will be active for:</b><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (newsletter)</li><li>news_text (news text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents of CMS pages TinyMCE will be excluded for</b> (e.g. plain Emails)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">editor height in px</b> (without units)',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE settings &amp; plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">default toolbar controls <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">it concerns core buttons only!</b> The other buttons depend on active plugins and will be loaded automaticaly.<br/>default value:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">disable TinyMCE core plugins</b><br/>enter one plugin per row,<br/>e.g. type "emoticons" to deactivate the emoticons plugin',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">external plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>format:<br/>pluginname => path/to/the/file.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">additional toolbar controls</b> e.g. for external plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">custom configuration params <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank">(?)</a></b><br/>e.g. for external plugins or for overriding default config<br/><b>parameter => "value"</b> (with quotes if required!)',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
);
include("../en/module_options.php");

View File

@ -1,36 +1,2 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
$sLangName = 'English';
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>general module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">list of backend classes, TinyMCE will be active for:</b><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (newsletter)</li><li>news_text (news text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents of CMS pages TinyMCE will be excluded for</b> (e.g. plain Emails)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">editor height in px</b> (without units)',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE settings &amp; plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">default toolbar controls <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">it concerns core buttons only!</b> The other buttons depend on active plugins and will be loaded automaticaly.<br/>default value:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">disable TinyMCE core plugins</b><br/>enter one plugin per row,<br/>e.g. type "emoticons" to deactivate the emoticons plugin',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">external plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>format:<br/>pluginname => path/to/the/file.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">additional toolbar controls</b> e.g. for external plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">custom configuration params <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank">(?)</a></b><br/>e.g. for external plugins or for overriding default config<br/><b>parameter => "value"</b> (with quotes if required!)',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
);
include("../en/module_options.php");

View File

@ -1,36 +1,2 @@
<?php
/**
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*/
$sLangName = 'English';
$aLang = array(
'charset' => 'UTF-8',
'SHOP_MODULE_GROUP_tinyMceMain' => '<style type="text/css">.groupExp a.rc b {font-size: medium; color: #ff3600; }.groupExp dt input.txt { width: 430px !important} .groupExp dl { display: block !important; } input.confinput {position: fixed; top: 20px; right: 70px; background: #008B2D; padding: 10px 25px; color: white; border: 1px solid black; cursor:pointer; font-size: 125%; } input.confinput:hover {outline: 3px solid #ff3600;} .groupExp dt textarea.txtfield {width: 430px; height: 150px;}</style>general module settings',
'SHOP_MODULE_aTinyMCE_classes' => '<b style="font-size:125%;">list of backend classes, TinyMCE will be active for:</b><ul><li>article_main (product description)</li><li>content_main (CMS pages)</li><li>category_text (category description)</li><li>newsletter_main (newsletter)</li><li>news_text (news text)</li></ul>',
'SHOP_MODULE_aTinyMCE_plaincms' => '<b style="font-size:125%;">Idents of CMS pages TinyMCE will be excluded for</b> (e.g. plain Emails)',
'SHOP_MODULE_sTinyMCE_height' => '<b style="font-size:125%;">editor height in px</b> (without units)',
'SHOP_MODULE_GROUP_tinyMceSettings' => 'TinyMCE settings &amp; plugins',
'SHOP_MODULE_aTinyMCE_buttons' => '<b style="font-size:125%;">default toolbar controls <a href="http://www.tinymce.com/wiki.php/Controls" target="_blank">(?)</a></b><br/>'.
'<b style="color:#ff3600;">it concerns core buttons only!</b> The other buttons depend on active plugins and will be loaded automaticaly.<br/>default value:<br/>'.
"<textarea rows='7' cols='30'>undo redo\nbold italic underline strikethrough\nalignleft aligncenter alignright alignjustify\nbullist numlist\noutdent indent\nblockquote\nremoveformat\nsubscript\nsuperscript\nformatselect\nfontselect\nfontsizeselect</textarea>",
'SHOP_MODULE_aTinyMCE_plugins_override' => '<b style="font-size:125%;">disable TinyMCE core plugins</b><br/>enter one plugin per row,<br/>e.g. type "emoticons" to deactivate the emoticons plugin',
'SHOP_MODULE_aTinyMCE_external_plugins' => '<b style="font-size:125%;">external plugins <a href="http://www.tinymce.com/wiki.php/Configuration:external_plugins" target="_blank">(?)</a></b><br/>format:<br/>pluginname => path/to/the/file.js',
'SHOP_MODULE_sTinyMCE_custom_controls' => '<b style="font-size:125%;">additional toolbar controls</b> e.g. for external plugins',
'SHOP_MODULE_aTinyMCE_custom_config' => '<b style="font-size:125%;">custom configuration params <a href="http://www.tinymce.com/wiki.php/Configuration" target="_blank">(?)</a></b><br/>e.g. for external plugins or for overriding default config<br/><b>parameter => "value"</b> (with quotes if required!)',
'hdi_tinymce_plaincms' => '<b class="errorbox">TinyMCE was deactivated from this page because it may not contain HTML code</b>'
);
include("../en/module_options.php");

View File

@ -1,17 +1,17 @@
[{*
* bestlife AG - TinyMCE for OXID eShop
* Copyright (C) 2014 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*}]
[{$smarty.block.parent}]
[{*
* bestlife AG - TinyMCE WYSIWYG Editor for OXID eShop
* Copyright (C) 2015 bestlife AG
* info: oxid@bestlife.ag
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>
*}]
[{$smarty.block.parent}]
[{if method_exists($oViewConf,'loadTinyMce') }][{ $oViewConf->loadTinyMce() }][{/if}]