22847 Posts in 9642 Topics by 2802 members
Page: 1 2
|Go to End||Next >|
3 June 2009 at 6:42am
It is obviously different in 2.3.1
Specifically, I am trying to do a simple url selector drop down with an OnChange that opens the selected url in a new window.
Any help greatly appreciated!
16 June 2009 at 6:15am
Did you find the new settings file for TinyMCE?
i also wanted to modify tinymce.template.js because site search doesn't work with special characters transformed to html entities.
i need to change encoding to: entity_encoding : "raw"
using SS 2.3.2 rc2
16 June 2009 at 11:09pm
allright i finally found it - you can now modify tinymce config in php
and look at (was much more helpful for me):
there the settings for tiny in the main tab are put together, around line 158 and following
now i simply put this in my _config.php:
4 August 2009 at 4:31am
I have managed to change the valid elements in my /leftandmain.php file but when I tried to change the settings in my config.php file nothing was changing. I was changing the settings so I could put form elements in and then insert paypal buttons, I adjusted the equation the same way in both files but silverstripe only recognized the changes when they were made in leftandmain.php .
Here is the code I used perhaps someone can see an error I missed?
Thanks for any suggestions.
4 August 2009 at 9:45am Last edited: 4 August 2009 10:01am
I'm trying to get this working properly myself, I've read up on TinyMCE and tried to figure out what I can from the code.
You might want to try extended_valid_elements instead of valid elements.
I have a couple of sites deployed on SS2.3.0 and this used the old method, what I did find on this version was that SS has a callback function which strips out a whole bunch of other stuff (like all on* attributes!) regardless of how you configure TinyMCE, I have yet to find if this is being done in the latest implementation of TinyMCE on SS (although callback is deprecated in the latest version of TinyMCE)
Let us know how you get on, I'll be taking another look at this soon.
Perhaps I should have taken a quick look at the code again before posting this. In SSv2.3.2 the cleanup callback function is still being used. As much as I hate to edit core files I will be removing 'cleanup_callback' => "sapphiremce_cleanup" from LeftAndMain and anywhere else I find it. unless I can override this in _config.php
Just noticed Will that you are using SetOption instead of setOptions
7 August 2009 at 9:44am Last edited: 7 August 2009 9:44am
Thanks for the quick reply. I tried both setoption with one element and setoptions with an array and no luck. I also tried the same with extended_valid_elements and none of these worked. You can see the methods I tried below. Anyway I still have it working by editing leftandmain.php but would be nice not to have to go into source files and be able to do it either from config.php or perhaps a class extension in the /code diterectory but not sure how this would be possible.
HtmlEditorConfig::get('cms')->setOptions(array('valid_elements' => "+form[method|action|target],
HtmlEditorConfig::get('cms')->setOptions(array('extended_valid_elements' => "+form[method|action|target],
HtmlEditorConfig::get('cms')->setOption('extended_valid_elements' , "+form[method|action|target],
29 October 2009 at 3:07am Last edited: 29 October 2009 3:07am
Did anyone ever get this figured out? I want to include an aweber.com form into my page, but it get stripped out. I have tried all what was mentioned already without success. Please help.
19 May 2010 at 12:19am
After hours of longdesc being stripped out of HTML editor I found this line entered into mysite/_config.php to work in 2.3.7:
Hope this helps someone.
Page: 1 2
|Go to Top||Next >|