42 Commits

Author SHA1 Message Date
Ian
d5eae21a9c suggested fix for the Serendipity fallback chaining
This fixes the plugin tpl fallback for all plugins, already using the parseTemplate() method. All others, which may still follow the themes fallback (like contactform etc), would need to always be part of the user template $serendipity['template'], or be fixed later on.

This also fixes the backend chaining, which now simply follows the force with a possible engine and then uses $serendipity['template_backend'] (2k11), $serendipity['defaultTemplate'] (2k11), 'default'.

As a third, this now uses the correct preview_iframe.tpl file on save and checks for a correct set jquery_backend.js in the user theme $serendipity['template'].

Please double check this approach for cases I did not find yet. Thanks! :)


References #343
2015-08-16 18:05:59 +02:00
Ian
ffe93c92fc allow php class_exists in smarty security and better 0ffd02c
Rferences #245
2014-12-10 12:01:15 +01:00
Ian
0ffd02cf1c assign has_freetag in backend
Fixes commit f60df79b152a63e4fa5f2bf36e4e797d0dfeb7dc
References #245
2014-12-06 15:52:31 +01:00
onli
92afc37753 Introduce serendipity_specialchars-wrapper for encoding bug (#236)
PHP 5.4 sets UTF-8 as the default for htmlspecialchars, htmlentities and html_entity_decode. The first two will echo an empty string when given a string with umlauts. This commits introduces serendipity_specialchar-wrapper that are meant to be a temporary solution for the s9y-core until PHP 5.6 fixed the bug, so the native charset option of s9y continues to work.
2014-11-23 23:41:08 +01:00
Ian
a22f0ec65e space cleanup 2014-11-02 15:05:12 +01:00
onli
1b80ba69a1 Restore wysiwyg plugin api (#147)
Partly. Plugins still need to use a different JS, fitting for the ckeditor. And plugins are bundled in the other-part of the toolbar instead of trying to follow the (xinha-)toolbar parameter
2014-05-12 21:09:58 +02:00
onli
0d54063c5e Use old method to init ckeditor
Instead of using global JS-variables and ignoring serendipity[textarea]={$view}, this
approach actually uses the variable and therefore reinstates wysiwyg_init.tpl.

ckeditor_custom_config.js (Thx Ian!) is still respected, but the toolbar got restored to the old version. We need an easy way to remove _underline_, for example. It could be extended though.

This fixes #{107} somewhat, as serendipity_image_selector.php is useable now, but still with display errors (and without an upload widget). Probably still a good idea to copy the ML-eapproach of the normal textareas

This also works with htmlnuggets, without using spawnnugget from the core, instead wysiwyg_init.tpl gets reused in the plugin-config.

ckeditor_custom_plugin.js got emptied, the relevant code (which should only be the part that adds the plugins into the toolbar) should be integrated into wysiwyg_init.tpl).
2014-03-23 23:03:09 +01:00
Ian
5fddf72bed include ckeditor.js in case of entryform, staticpages, html nuggets only
References #72
2014-03-16 16:26:21 +01:00
Ian
faae4b0533 fix core to read ckeditor and handle hook-ins
This supports custom ckeditor plugins and a custom ckeditor config
and reads $eventData for
- normal entry form (case1) textareas,
- staticpage (case2) textareas and
- other nugget plugins (case3) textareas.
They all are build differently, therfore we needed three cases.
Please test!

Based to following commits
 8e26bd9 prepare core ckeditor for custom config and plugins
 44ea050 fix virtual js
 40609d8 add backend_footer hook

References #72
2014-03-15 19:02:13 +01:00
onli
068767c80d Load ckeditor for html-nugget (#27)
Need still to be tested and adapted for other editors
2013-07-23 23:30:02 +02:00
onli
9d3d04a00c upport (from falks 1.7-2.0-merge) 2013-07-05 14:08:24 +02:00
onli
4c95630c4c Replace xinha with ckeditor
Removes also a lot of the code needed by the wysiwyg-plugins, but the whole spawn()-logic has to get checked anyway
2013-06-25 01:05:19 +02:00
onli
a654b13a9a Complete include_once usage, romove constants 2013-06-22 12:32:54 +02:00
onli
cbe07715fd use include_once 2013-06-21 18:11:03 +02:00
onli
c7162adf31 fix entries-preview 2013-06-16 15:13:18 +02:00
onli
faa0781c8b smartified serendipity_emit_htmlarea_code 2013-06-14 20:39:29 +02:00
onli
38f71856a2 further smartified serendipity_printEntryForm 2013-06-14 19:42:22 +02:00
Ian
48750943db upport 7fb6b5a
serendipity_emit_htmlarea_code() does not need to return true which can note badly as 1 in 'backend_wysiwyg' hooks
2013-05-08 21:14:16 +03:00
onli
efbe7a8fb3 removed (broken) browser-sniffing in php-code to emit targeted non-wysiwyg-buttons further 2013-02-24 19:22:37 +01:00
onli
fb2abdbe1e removed (broken) browser-sniffing in php-code to emit targeted non-wysiwyg-buttons 2013-02-24 19:19:39 +01:00
Ian
6d7d2cd893 entry form toolbar document.write replacement 2013-01-13 15:36:16 +01:00
Matthias Mees
7288ffdef8 Fixed most of the redundant br elements in the core. 2012-12-03 13:35:59 +01:00
Ian
a3f03a40af forward thinking - added error / success / notice classes and
removed their img inline styles to default/admin/style.css
2012-05-23 19:23:41 +02:00
Garvin Hicking
2749dc54ad Smarty3 2011-11-24 12:16:02 +01:00
Garvin Hicking
589b92bd7c no short open tags req 2009-08-21 12:24:13 +00:00
Garvin Hicking
4e258686fb Remove eregi calls 2009-08-21 12:22:35 +00:00
Garvin Hicking
81f08a5cb0 Spelling error of the toolbar name 2009-07-28 12:04:07 +00:00
Garvin Hicking
6d90049416 Added possibility to customize the xinha editor through a my_custom.js
file. See http://board.s9y.org/viewtopic.php?f=4&t=15286
2009-07-27 08:47:47 +00:00
Garvin Hicking
97710fe021 * Removed inline styles of the s9y media insertion, they will now
properly utilize CSS classes (defined in the new file
      style_fallback.css). Also added support for entering "ALT"
      attributes to an <img> tag, can be used as a media property if
      you add "ALT" to the list of "Media properties" in the
      main configuration. (garvinhicking)
2009-07-14 09:22:06 +00:00
Garvin Hicking
37b427b26d Allow javascript inside XINHA WYSIWYG textarea 2009-01-26 13:09:56 +00:00
Jude Anthony
0eb387d7b4 Custom WYSIWYG button interface, with HTMLArea/Xinha implementation. 2008-12-19 04:30:58 +00:00
Garvin Hicking
17a1e5534a * Fix WYSIWYG media insertion when being called on pages with
multiple HTML portions/nuggets, and also the staticpage plugin
      (garvinhicking)
2008-11-05 12:03:29 +00:00
Garvin Hicking
94fd5e4e8c (Experimental) Replace htmlarea with XINHA. Thanks to abdussamad! 2008-09-09 07:52:18 +00:00
Garvin Hicking
b3b0440bfe Fix bad spelling 2007-10-15 11:33:39 +00:00
Garvin Hicking
a0d950b320 HTML and images by Don 2007-08-06 10:18:26 +00:00
Garvin Hicking
472432b1b9 Merge patch from Don Chambers for better input classes in admin 2007-07-12 09:40:04 +00:00
Garvin Hicking
22c02491e6 Fix bugs in the new backend templates 2007-06-11 14:32:32 +00:00
Garvin Hicking
049336103e Allow plugins to set different entry templates for the editing form.
This can allow a plugin to offer dedicated entry templates depending on the selected category, based on the user or other cool stuff.
2007-05-30 20:18:33 +00:00
Garvin Hicking
cff33ccb4d Allow possibility to style the backend (surrounding layout + entry editor so far) 2007-05-30 11:20:53 +00:00
Garvin Hicking
f03841587a Ensure to not be able to call s9y files under circumstances where .htaccess does not deny request AND register_globals is turned on 2006-11-30 21:34:29 +00:00
Garvin Hicking
e06556d476 Fix more entry sorting 2006-08-09 07:28:41 +00:00
Garvin Hicking
80e14346a5 Also support "last X" REST interface 2006-08-02 10:07:34 +00:00