Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian".
upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian".
upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos".
upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos".
upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos".
upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum".
upgrade now! [54.2] (what's this?)
code-schnipsel:redaxo:ckeditor
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| code-schnipsel:redaxo:ckeditor [2018/08/06 09:13] – angelegt tietz | code-schnipsel:redaxo:ckeditor [2024/01/05 13:07] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== CKEditor für Redaxo 5.x ====== | ||
| + | |||
| + | ===== Alle HTML-Elemente zulassen ===== | ||
| + | Wenn der CKEditor HTML-Elemente entfernt (macht er übrigens nur, wenn der Editor geladen wird, also beim Editieren eines Textes und nicht beim speichern!) hilft folgendes: | ||
| + | Linke Spalte unter AddOns-> | ||
| + | https:// | ||
| + | \\ \\ | ||
| + | |||
| + | |||
| + | ===== Link per Default in neuem Fenster öffnen lassen ===== | ||
| + | |||
| + | Siehe: http:// | ||
| + | In die Datei // | ||
| + | < | ||
| + | /* Here we are latching on an event ... in this case, the dialog open event */ | ||
| + | |||
| + | CKEDITOR.on(' | ||
| + | |||
| + | try { | ||
| + | |||
| + | /* this just gets the name of the dialog */ | ||
| + | |||
| + | var dialogName = ev.data.name; | ||
| + | |||
| + | /* this just gets the contents of the opened dialog */ | ||
| + | |||
| + | var dialogDefinition = ev.data.definition; | ||
| + | |||
| + | |||
| + | |||
| + | /* Make sure that the dialog opened is the link plugin ... otherwise do nothing */ | ||
| + | |||
| + | if(dialogName == ' | ||
| + | |||
| + | /* Getting the contents of the Target tab */ | ||
| + | |||
| + | var informationTab = dialogDefinition.getContents(' | ||
| + | |||
| + | /* Getting the contents of the dropdown field " | ||
| + | |||
| + | var targetField = informationTab.get(' | ||
| + | |||
| + | /* Now that we have the field, we just set the default to _blank | ||
| + | |||
| + | A good modification would be to check the value of the URL field | ||
| + | |||
| + | and if the field does not start with " | ||
| + | |||
| + | then set the value to " | ||
| + | |||
| + | targetField[' | ||
| + | |||
| + | } | ||
| + | |||
| + | } catch(exception) { | ||
| + | |||
| + | alert(' | ||
| + | |||
| + | } | ||
| + | |||
| + | }); | ||
| + | </ | ||