Zum Inhalt springen

Türkische Sonderzeichen im Insertcharacter-Bereich?

Erstellt am 14. Dezember 2006 · 5 Antworten · letzte Antwort am 15. Dezember 2006

Tags: Frage

Unbekannter Benutzer ·

Hallo allen,

gibt es eine Möglichkeit, den Inhalt der Sonderzeichen (button: insercharacter) im Rte zu modifizieren bzw. zu erweitern? Ich suche sowas wie die Möglichkeit eigene Farben in die Palette aufzunehmen.
Grund: Deutsches BE, deutsche Tastatur, deutsches Windows und es soll türkischer Text erfasst werden. Meinen Partnerinnen will ich das andauerende kopieren & einfügen von den türkischen Zeichen ersparen.

Gruss Mensch

PS: meine Suchen (insertcharacter, türkische Sonderzeichen...) hier und in google haben als Ergebnis Themen geliefert mit
showbutton = insertcharacter
oder Multilanguage.

Unbekannter Benutzer ·

Vermute es gibt keine andere Möglichkeit, würde gerne eines besseren belehrt werden. Also habe ich das HTML des Plugin meinen Anforderungen angepasst:

typo3/sysext/rtehtmlarea/htmlarea/plugins/CharacterMap/popups/select_character.html

Gruss Mensch

steffenk ·

da musst Du wohl selber ran:

typo3/sysext/rethtmlarea/plugins/CharacterMap/popups/select_character.html

Das kannst Du gerne erweitern (ich kann kein türkisch 😃)

**überschnitten :p **

wäre schön, wenn Du Dein Ergebnis präsentieren könntest, ich kanns auch gebrauchen ...

btw - kann einer Russisch ?

Unbekannter Benutzer ·

Hab ich doch schon Steffenk, blieb mir ja keine andere Lösung, da weder meine deutsche noch englische Suche bis auf die Meldung mit dem "add space" = nbsp; irgendetwas lieferte.
Gruss Mensch

Unbekannter Benutzer ·

Ach soooo - also
Dateipfad und Name: typo3/sysext/rethtmlarea/plugins/CharacterMap/popups/select_character.html
Durchgeführte Änderungen: der Bereich ist mit Beginn und Ende kommentiert.
Achtung: Hier sind die Zeichenmaskierungen bereits interpretiert, also guckt nochmal in der Originaldatei wie diese eingetragen werden.
Tipp: vorher die Datei sichern #paralyzed#

<!--
/***************************************************************
*  Copyright notice
*
*  (c) 2004 Bernhard Pfeifer novocaine@gmx.net
*  (c) 2004 systemconcept.de. Authored by Holger Hees based on HTMLArea XTD 1.5 (http://mosforge.net/projects/htmlarea3xtd/).
*  (c) 2005, 2006 Stanislas Rolland <stanislas.rolland(arobas)fructifor.ca>
*  All rights reserved
*
*  This script is part of the TYPO3 project. The TYPO3 project 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 2 of the License, or
*  (at your option) any later version.
*
*  The GNU General Public License can be found at
*  http://www.gnu.org/copyleft/gpl.html.
*  A copy is found in the textfile GPL.txt and important notices to the license
*  from the author is found in LICENSE.txt distributed with these scripts.
*
*
*  This script 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.
*
*  This script is a modified version of a script published under the htmlArea License.
*  A copy of the htmlArea License may be found in the textfile HTMLAREA_LICENSE.txt.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/*
 * Character Map Plugin for TYPO3 htmlArea RTE
 *
 * TYPO3 CVS ID: $Id: select_character.html 1421 2006-04-10 09:27:15Z mundaun $
 */
-->
<html class="popupwin">
<head>
	<title>Insert special character</title>
	<meta http-equiv="Content-Style-Type" content="text/css" />
	<script type="text/javascript" src="../../../popups/popup.js"></script>
	<script type="text/javascript">
		/*<![CDATA[*/
		<!--
		
		HTMLArea = window.opener.HTMLArea;
		_editor_CSS = window.opener._editor_CSS;
		__dlg_loadStyle(_editor_CSS);
		CharacterMap = window.opener.CharacterMap;

		function Init() {
			__dlg_translate(CharacterMap.I18N);
			__dlg_init();
			document.body.onkeypress = __dlg_close_on_esc;
			var character = '';
			View( null, character );
		};

		var oldView = null;
		function View(td, character) {
			if (oldView) oldView.className = oldView.className.replace(/\s+character-hilite/, '');
			document.getElementById( 'characterPreview' ).value = character;
			document.getElementById( 'showCharacter' ).value = character;
			if (td)
			(oldView = td).className += " character-hilite";
		};

		function Set(string) {
			var character = string;
			if(window.opener && window.opener.Dialog) window.opener.Dialog._return(character);
			return false;
		};

		function onCancel() {
			__dlg_close(null);
			return false;
		};
		// -->
		/*]]>*/
	</script>
	<style>
		/*<![CDATA[*/
		td.character { font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; text-align: center; background: #FFF; padding: 4px; }
		td.character-hilite { background: Highlight; color: HighlightText; }
		/*]]>*/
	</style>
</head>
<body class="popupwin" onload="Init();">
<div class="title">Insert special character</div>
<form method="get" style="margin:2px; padding:2px" onSubmit="Set(document.getElementById('showCharacter').value); return false;">
<table cellspacing="0" cellpadding="4" style="border-style: none; width: 100%;">
	<tr>
		<td style="vertical-align: middle;"><div style="padding: 1px; white-space: nowrap; font-family: tahoma,arial,sans-serif; font-size: 11px; font-weight: normal;">HTML value:<div id="characterPreview"></div></div></td>
		<td style="vertical-align: middle;"><input type="text" name="showcharacter" id="showCharacter" value="" size="15" style="background: #fff; font-size: 11px;" /></td>
		<td style="width: 100%;"></td>
	</tr>
</table>
<table cellspacing="1" cellpadding="0" style="cursor: pointer; background: #ADAD9C; border: 1px inset; width: 100%; margin-top: 5px;">

<!-- Beginn der Änderung -->
<tr>
<td class="character" onMouseOver="View(this,'&amp;nbsp;')" onClick="Set('&nbsp;')">&nbsp;</td>
<td class="character" onMouseOver="View(this,'&amp;226;')" onClick="Set('&#226;')">&#226;</td>
<td class="character" onMouseOver="View(this,'&amp;199;')" onClick="Set('&#199;')">&#199;</td>
<td class="character" onMouseOver="View(this,'&amp;231;')" onClick="Set('&#231;')">&#231;</td>
<td class="character" onMouseOver="View(this,'&amp;286;')" onClick="Set('&#286;')">&#286;</td>
<td class="character" onMouseOver="View(this,'&amp;287;')" onClick="Set('&#287;')">&#287;</td>
<td class="character" onMouseOver="View(this,'&amp;304;')" onClick="Set('&#304;')">&#304;</td>
<td class="character" onMouseOver="View(this,'&amp;305;')" onClick="Set('&#305;')">&#305;</td>
<td class="character" onMouseOver="View(this,'&amp;350;')" onClick="Set('&#350;')">&#350;</td>
<td class="character" onMouseOver="View(this,'&amp;351;')" onClick="Set('&#351;')">&#351;</td>
<td class="character" onMouseOver="View(this,'&amp;nbsp;')" onClick="Set('&nbsp;')">&nbsp;</td>
</tr>
<!-- Ende der Änderung -->

</table>
	<div class="space"></div>
	<div class="buttons">
		<button type="button" name="cancel" onclick="return onCancel();">Close</button>
	</div>
</form>
</body>
</html>

Gruss Mensch