PostNuke 0.75
I pulled Tinymce from CVS as I've seen several times on this forum. Everything integrated perfectly except that when I try to add a link to some text, it only puts and around the text and leaves out the hrefs.
I tried swapping out different versions of Tinymce javascript files that I gathered from around the web, but that never seemed to change anything.
Anyone else seen this? Any ideas where to start looking?
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Tinymce hrefs?
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 13
Well, I ended up figuring this one out. From what I can tell, it has to do with PostNuke permissions stripping out attributes from the tags. My resolution was to hack the function.tinymce.php file to include extended attributes. I'm not concerned about security since I'm the only one who will be adding content.
You need to first make sure tags with attributes are permitted in Administration->Settings.
I added this line:
Code
$script .= " extended_valid_elements : \"a[name|href|target|title|onclick|class],img[src]\",\n";
near the end of the file right before:
Code
$script .= " height : \"".pnVarPrepForDisplay(pnModGetVar('tinymce', 'height'))."\",\n";
You can download my hacked file if you want from here: http://www.demeusy.com/Downloads-req-viewdownload-cid-1.html
I enable images and emoticons as well.
-Matthew
- Moderated by:
- Support
