Commit a5db5f4a authored by sun's avatar sun

Initial fork of TinyMCE module (2008-05-30).

#118747 by nedjo, sun: Upgraded code for jQuery.
parent b26a55e7
......@@ -8,3 +8,8 @@ Wysiwyg 6.x-1.x, xxxx-xx-xx
---------------------------
Wysiwyg 6.x-0.x, xxxx-xx-xx
---------------------------
#118747 by nedjo, sun: Upgraded code for jQuery.
Initial fork of TinyMCE module (2008-05-30).
/* $Id$ */
-- SUMMARY --
Wysiwyg Editor allows to use what-you-see-is-what-you-get, rich-text, and other
client-side editors for editing contents. This module requires third-party
editor scripts.
Currently supported editors:
- TinyMCE v2.1.x
For a full description visit the project page:
http://drupal.org/project/wysiwyg
Bug reports, feature suggestions and latest developments:
http://drupal.org/project/wysiwyg (category "Wysiwyg Editor")
-- REQUIREMENTS --
* One of the currently supported third-party editors.
-- INSTALLATION --
* Install as usual, see http://drupal.org/node/70151 for further information.
Note: As of now, you need not install Wysiwyg module. Wysiwyg Editor module
is sufficient.
* Download TinyMCE 2.1.x from http://tinymce.moxiecode.com and extract the
contents of the downloaded archive in a new subfolder 'tinymce' of this
module.
* To boost performance of TinyMCE, download the TinyMCE Compressor from
http://tinymce.moxiecode.com/download.php and place tiny_mce_gzip.js and
tiny_mce_gzip.php into the subfolder ./tinymce/jscripts/tiny_mce/ of this
module.
-- CONFIGURATION --
* Configure user permissions in administer >> User management >> Access control
>> Wysiwyg Editor.
* Setup editor profiles in administer >> Site configuration >> Wysiwyg Editor.
* Go to administer >> Site configuration >> Input formats and
- either configure the Full HTML format, assign it to trusted roles, and
disable 'HTML filter', 'Line break converter', and (optionally) 'URL filter'.
- or add a new input format, assign it to trusted roles, and ensure that above
mentioned input filters are disabled.
-- USAGE --
* If enabled in a profile, each user is able to select whether an editor is
loaded by default, or if she needs to enable it manually.
* TinyMCE keyboard shortcuts:
Ctrl+Z Undo
Ctrl+Y Redo
Ctrl+B Bold
Ctrl+I Italic
Ctrl+U Underline
-- CONTACT --
Current maintainers:
* Daniel F. Kudwien (sun) - dev@unleashedmind.com
Previous maintainers:
* kreynen http://drupal.org/user/48877
* Allie Micka http://drupal.org/user/15091
* m3avrck http://drupal.org/user/12932
* nedjo http://drupal.org/user/4481
* Steve McKenzie http://drupal.org/user/45890
* ufku http://drupal.org/user/9910
* Matt Westgate <drupal AT asitis DOT org> and
* Jeff Robbins <robbins AT jjeff DOT com>
* Richard Bennett <richard.b AT gritechnologies DOT com>
This project has been sponsored by:
* UNLEASHED MIND
Specialized in consulting and planning of Drupal powered sites, UNLEASHED
MIND offers installation, development, theming, customization, and hosting
to get you started. Visit http://www.unleashedmind.com for more information.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
# Copyright YEAR NAME <EMAIL@ADDRESS>
# Generated from files:
# tinymce.module,v 1.90.4.11 2006/12/31 10:48:37 thenicespider
# tinymce.info,v 1.0 2006/12/24 17:51:48 Wendy
#
msgid ""
msgstr ""
"Project-Id-Version: 5.x\n"
"POT-Creation-Date: 2007-01-19 18:37+0100\n"
"PO-Revision-Date: 2007-01-19 18:58+0100\n"
"Last-Translator: Beregszászi Attila <melon@m42.hu>\n"
"Language-Team: Drupal.hu Fordítói Csapat <forditas [at] drupal.hu>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Country: HUNGARY\n"
#: tinymce.module:7
#: tinymce.info:0
msgid "The most popular WYSIWYG editor for advance content."
msgstr "A legnépszerűbb WYSIWYG szerkesztő bonyolultabb tartalmakhoz."
#: tinymce.module:14
msgid "Enable WYSIWYG Editor to your site."
msgstr "WYSIWYG szerkesztő enegedélyezése a honlapon."
#: tinymce.module:31
#: tinymce.info:0
msgid "TinyMCE"
msgstr "TinyMCE"
#: tinymce.module:32
msgid "Tinymce settings."
msgstr "Tinymce beállítások."
#: tinymce.module:48
msgid "Basic settings"
msgstr "Alapbeállítások"
#: tinymce.module:55
msgid "Editor Mode"
msgstr "Szerkesztő mód"
#: tinymce.module:57
msgid "Full"
msgstr "Teljes"
#: tinymce.module:57
msgid "Compact"
msgstr "Tömörített"
#: tinymce.module:57
msgid "Simple"
msgstr "Egyszerű"
#: tinymce.module:58
msgid "FULL: enable all TinyMCE features. COMPACT: enable most used features. SIMPLE: just enable simple editor.<hr>"
msgstr "TELJES: az összes TinyMCE funkció engedélyezése. TÖMÖRÍTETT: a leggyakrabban használt funkció engedélyezése. EGYSZERŰ: egyszerű szerkesztő engedélyezése.<hr>"
#: tinymce.module:63
msgid "Enable TinyMCE for"
msgstr "TinyMCE engedélyezése"
#: tinymce.module:65
msgid "Edit-body only"
msgstr "Csak szövegtörzsnél"
#: tinymce.module:65
msgid "Edit-comment only"
msgstr "Csak hozzászólásnál"
#: tinymce.module:65
msgid "Both"
msgstr "Mindkettő"
#: tinymce.module:66
msgid "If you want TinyMCE available for textarea of edit-body and comment then you should select <b>Both</b> option."
msgstr "A szövegtörzs és hozzászólás mezők TinyMCE-vel szerkesztésének engedélyezéséhez a <b>Mindkettő</b> beállítást kell választani."
#: tinymce.module:0
#: tinymce.info:0
msgid "tinymce"
msgstr "tinymce"
#: tinymce.info:0
msgid "5.x-1.x-dev"
msgstr "5.x-1.x-dev"
# $Id$
#
# LANGUAGE translation of Drupal (tinymce.module)
# Copyright YEAR NAME <EMAIL@ADDRESS>
# Generated from files:
# tinymce.module,v 1.90.4.12 2007/01/30 06:58:37 thenicespider
# tinymce.info,v 1.0 2006/12/24 17:51:48 Wendy
#
msgid ""
msgstr ""
"Project-Id-Version: Drupal TinyMCE Module\n"
"POT-Creation-Date: 2007-01-31 21:42+0200\n"
"PO-Revision-Date: 2007-01-31 21:49+0200\n"
"Last-Translator: Erdem Köse <erdemkose@erdemkose.com>\n"
"Language-Team: Drupal Turkish <ceviri@drupaltr.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Poedit-Language: Turkish\n"
"X-Poedit-Country: Turkey\n"
"X-Poedit-SourceCharset: utf-8\n"
#: tinymce.module:7 tinymce.info:0
msgid "The most popular WYSIWYG editor for advance content."
msgstr "Gelişmiş içerikler için en gözde görsel düzenleyici."
#: tinymce.module:8
msgid "<p><ul><li>Editor mode: full, compact and simple.</li></ul></p>"
msgstr "<p><ul><li>Düzenleyici kipi: Tam, sade ve basit.</li></ul></p>"
#: tinymce.module:11
msgid "Enable WYSIWYG Editor to your site."
msgstr "Sitenizde görsel düzenleyiciyi etkinleştirin."
#: tinymce.module:28
#: tinymce.info:0
msgid "TinyMCE"
msgstr "TinyMCE"
#: tinymce.module:29
msgid "Tinymce settings."
msgstr "Tinymce ayarları"
#: tinymce.module:45
msgid "Basic settings"
msgstr "Temel ayarlar"
#: tinymce.module:52
msgid "Editor Mode"
msgstr "Düzenleyici kipi"
#: tinymce.module:54
msgid "Full"
msgstr "Tam"
#: tinymce.module:54
msgid "Compact"
msgstr "Sade"
#: tinymce.module:54
msgid "Simple"
msgstr "Basit"
#: tinymce.module:55
msgid "FULL: enable all TinyMCE features. COMPACT: enable most used features. SIMPLE: just enable simple editor.<hr>"
msgstr "TAM: tüm TinyMCE özellekleri etkinleştirilir. SADE: en çok kullanılan özellikler etkinleştirilir. BASİT: sadece temel özellikler etkinleştirilir.<hr>"
#: tinymce.module:60
msgid "Enable TinyMCE for"
msgstr "TinyMCE etkin olsun"
#: tinymce.module:62
msgid "Edit-body only"
msgstr "Sadece gövde için (Edit-body)"
#: tinymce.module:62
msgid "Edit-comment only"
msgstr "Sadece yorum için (Edit-comment)"
#: tinymce.module:62
msgid "Both"
msgstr "Her ikisi için"
#: tinymce.module:63
msgid "If you want TinyMCE available for textarea of edit-body and comment then you should select <b>Both</b> option."
msgstr "Eğer TinyMCE'nin hem içerik gövdesinde hem de yorumlarda etkin olmasını istiyorsanız <b>Her ikisi için</b> seçeneğini seçin."
#: tinymce.module:68
msgid "Enable TinyMCE for this node types"
msgstr "TinyMCE eklentisini bu düğüm çeşitleri için etkinleştir"
#: tinymce.module:70
msgid "Node type in case-sensitive name, i.e: page,story,data_product,blog"
msgstr "İçerik türü, küçük büyük harf duyarlı. ör: page, story, data_product, blog"
#: tinymce.module:0
#: tinymce.info:0
msgid "tinymce"
msgstr "tinymce"
; $Id$
name = TinyMCE
description = The most popular WYSIWYG editor for advanced content editing.
<?php
// $Id$
/**
* Implementation of hook_install()
*
* This will automatically install the database tables for the TinyMCE module for both the MySQL and PostgreSQL databases.
*
* If you are using another database, you will have to install the tables by hand, using the queries below as a reference.
*
* Note that the curly braces around table names are a drupal-specific feature to allow for automatic database table prefixing,
* and will need to be removed.
*/
function tinymce_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {tinymce_settings} (
name varchar(128) NOT NULL default '',
settings text,
PRIMARY KEY (name)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
db_query("CREATE TABLE {tinymce_role} (
name varchar(128) NOT NULL default '',
rid tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (name,rid)
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
break;
case 'pgsql':
db_query("CREATE TABLE {tinymce_settings} (
name varchar(128) NOT NULL default '',
settings text,
PRIMARY KEY (name)
);");
db_query("CREATE TABLE {tinymce_role} (
name varchar(128) NOT NULL default '',
rid smallint NOT NULL default '0',
PRIMARY KEY (name,rid)
);");
break;
}
}
function tinymce_update_1() {
return _system_update_utf8(array('tinymce_settings', 'tinymce_role'));
}
/**
* Implementation of hook_uninstall()
*/
function tinymce_uninstall() {
db_query('DROP TABLE {tinymce_settings}');
db_query('DROP TABLE {tinymce_role}');
}
// $Id$
/**
* Initialize each tinyMCE configuration.
*
* This function needs to be called before the page is fully loaded, as
* calling tinyMCE.init() after the page is loaded breaks in IE 6.
*/
Drupal.tinymceInit = function () {
for (var theme in Drupal.settings.tinymce.configs) {
// Clone so we are not passing by reference. Otherwise the
// settings will get overwritten.
var config = Drupal.tinymceCloneObject(Drupal.settings.tinymce.configs[theme]);
tinyMCE.init(config);
}
}
/**
* Attach tinyMCE to textareas.
*
* This function can be called to process AJAX-loaded content.
*/
Drupal.tinymceAttach = function () {
for (var theme in Drupal.settings.tinymce.configs) {
var config = Drupal.tinymceCloneObject(Drupal.settings.tinymce.configs[theme]);
// Set configuration options for this theme.
for (var setting in config) {
tinyMCE.settings[setting] = config[setting];
}
$('textarea.tinymce-' + theme + ':not(.tinymce-processed)').each(function () {
// Show toggle link if set.
if (Drupal.settings.tinymce.showToggle) {
Drupal.tinymceAttachToggleLink(this, theme);
}
// Attach tinyMCE control if default is on.
if (Drupal.settings.tinymce.status) {
tinyMCE.execCommand('mceAddControl', true, this.id);
}
$(this).addClass('tinymce-processed');
});
}
}
/**
* Toggle the tinyMCE control and related link text for a textarea.
*/
Drupal.tinymceToggle = function (id, theme) {
if (tinyMCE.getEditorId(id) == null) {
var config = Drupal.tinymceCloneObject(Drupal.settings.tinymce.configs[theme]);
// Set configuration options for this theme.
for (var setting in config) {
tinyMCE.settings[setting] = config[setting];
}
tinyMCE.addMCEControl($('#' + id).get(0), id);
$('#wysiwyg4' + id)
.html(Drupal.settings.tinymce.disable)
.blur();
}
else {
tinyMCE.removeMCEControl(tinyMCE.getEditorId(id));
$('#wysiwyg4' + id)
.html(Drupal.settings.tinymce.enable)
.blur();
}
}
/**
* Append toggle link to textarea.
*/
Drupal.tinymceAttachToggleLink = function (elt, theme) {
if (typeof(document.execCommand) == 'undefined') {
$(elt).after('<div style="font-size:x-small">' + Drupal.settings.tinymce.noWysiwyg + '</div>');
}
else {
var text = document.createTextNode(Drupal.settings.tinymce.status ? Drupal.settings.tinymce.disable : Drupal.settings.tinymce.enable);
var a = document.createElement('a');
$(a)
.click(function() {
Drupal.tinymceToggle(elt.id, theme);
})
.attr('id', 'wysiwyg4' + elt.id)
.css('cursor', 'pointer')
.append(text);
var div = document.createElement('div');
$(div).append(a);
$(elt).after(div);
}
}
Drupal.tinymceCloneObject = function (obj) {
var clone = {};
for (i in obj) {
if ((typeof obj[i] == 'object') || (typeof obj[i] == 'array')) {
clone[i] = Drupal.tinymceCloneObject(obj[i]);
}
else {
clone[i] = obj[i];
}
}
return clone;
}
/**
* Global killswitch.
*/
if (Drupal.jsEnabled) {
$(document).ready(Drupal.tinymceAttach);
}
/**
* Call tinyMCE initialization.
*/
Drupal.tinymceInit();
This diff is collapsed.
<?php
// $Id$
/**
* @file
* Registers TinyMCE plugins for the Drupal TinyMCE module. Note these settings
* can be overridden by each Drupal theme.
*/
function _tinymce_plugins() {
/**
* A couple of notes about adding plugins.
*
* 1) Don't use any of the *_add or *_add_before hooks for theme button placement.
* Stick with theme_advanced_buttons1, theme_advanced_buttons2,
* theme_advanced_buttons3 only.
*
* 2) You can change the order of the buttons by moving the plugins around in
* this code. You can also change the order of the button array for each plugin.
*/
$plugins['advhr'] = array();
$plugins['advhr']['theme_advanced_buttons3'] = array('advhr');
$plugins['advhr']['extended_valid_elements'] = array('hr[class|width|size|noshade]');
$plugins['advimage'] = array();
$plugins['advimage']['extended_valid_elements'] = array('img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name]');
$plugins['advlink'] = array();
$plugins['advlink']['extended_valid_elements'] = array('a[name|href|target|title|onclick]');
$plugins['autosave'] = array();
$plugins['contextmenu'] = array();
// Note this isn't a true plugin, rather it's buttons made available by the advanced theme.
$plugins['default'] = array();
$plugins['default']['theme_advanced_buttons1'] = array('bold', 'italic', 'underline', 'strikethrough', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'bullist', 'numlist', 'outdent', 'indent', 'undo', 'redo', 'link', 'unlink', 'anchor');
$plugins['default']['theme_advanced_buttons2'] = array('image', 'cleanup', 'forecolor', 'backcolor', 'sup', 'sub', 'code', 'hr');
$plugins['default']['theme_advanced_buttons3'] = array('cut', 'copy', 'paste', 'visualaid', 'removeformat', 'charmap', 'help');
$plugins['directionality'] = array();
$plugins['directionality']['theme_advanced_buttons3'] = array('ltr', 'rtl');
$plugins['emotions'] = array();
$plugins['emotions']['theme_advanced_buttons3'] = array('emotions');
$plugins['filemanager'] = array();
$plugins['flash'] = array();
$plugins['flash']['theme_advanced_buttons3'] = array('flash');
$plugins['flash']['extended_valid_elements'] = array('img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|obj|param|embed]');
// Note this isn't a true plugin, rather it's buttons made available by the advanced theme.
$plugins['font'] = array();
$plugins['font']['theme_advanced_buttons1'] = array('formatselect', 'fontselect', 'fontsizeselect', 'styleselect');
$plugins['font']['extended_valid_elements'] = array('font[face|size|color|style],span[class|align|style]');
$plugins['fullscreen'] = array();
$plugins['fullscreen']['theme_advanced_buttons3'] = array('fullscreen');
$plugins['iespell'] = array();
$plugins['iespell']['theme_advanced_buttons3'] = array('iespell');
$plugins['imagemanager'] = array();
$plugins['inlinepopups'] = array();
$plugins['insertdatetime'] = array();
$plugins['insertdatetime']['theme_advanced_buttons2'] = array('insertdate', 'inserttime');
$plugins['insertdatetime']['plugin_insertdate_dateFormat'] = array('%Y-%m-%d');
$plugins['insertdatetime']['plugin_insertdate_timeFormat'] = array('%H:%M:%S');
$plugins['layer'] = array();
$plugins['layer']['theme_advanced_buttons3'] = array('insertlayer', 'moveforward', 'movebackward', 'absolute');
$plugins['paste'] = array();
$plugins['paste']['theme_advanced_buttons3'] = array('pastetext', 'pasteword', 'selectall');
$plugins['preview'] = array();
$plugins['preview']['theme_advanced_buttons2'] = array('preview');
$plugins['print'] = array();
$plugins['print']['theme_advanced_buttons3'] = array('print');
$plugins['searchreplace'] = array();
$plugins['searchreplace']['theme_advanced_buttons2'] = array('search', 'replace');
if (is_dir(drupal_get_path('module', 'tinymce') . '/tinymce/jscripts/tiny_mce/plugins/spellchecker/')) {
$plugins['spellchecker'] = array();
$plugins['spellchecker']['theme_advanced_buttons3'] = array('spellchecker');
}
$plugins['style'] = array();
$plugins['style']['theme_advanced_buttons3'] = array('styleprops');
$plugins['table'] = array();
$plugins['table']['theme_advanced_buttons3'] = array('tablecontrols');
$plugins['zoom'] = array();
$plugins['zoom']['theme_advanced_buttons2'] = array('zoom');
return $plugins;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment