Loading...
 

WYSIWYG_6x - Anchor flag not saving

Status
Open
Subject
WYSIWYG_6x - Anchor flag not saving
Version
6.x
Category
  • Usability
  • Regression
  • Consistency
Feature
WYSIWYG (What You See is What You Get)
Wiki Plugin (extends basic syntax)
Toolbars, Quicktags and Smileys
Wiki Syntax (text area, parser, external wiki, etc)
Submitted by
tpinet
Lastmod by
tpinet
Rating
(0)
Description

We are running Tiki 6.2 (clean install), on a Windows 2003 Server, Apache 2.2.16 w SSL, PHP 5.3.3, remote MySQL 5 database.

This bug is across all browsers.

Our users are editing in the CKEditor WYSIWYG and trying to add anchors. When using the WYSIWYG_6x default profile of:
Editing and Plugins
   Wiki Paragraph formatting (ON, however default: off)
      ...but still create line breaks within paragraphs (on)
   HTML Purifier (on)
Wiki
   Allow HTML (on, however default: off)
WYSIWYG
   Content is parsed like wiki page (on)
      Content is partially wiki parsed (off)
      Use Wiki syntax in WYSIWYG (off)

our users use the Anchor icon (flag) to create an anchor at the bottom of a page. The anchor name window comes up and they give it a name, save, a yellow anchor icon is displayed in the editor. If they jump to the top of the page and create a Link (using the Link icon in the toolbar) and select Link Type: "Link to another anchor in the text", Select an Anchor/By Anchor Name and press Ok. At this point everything looks correct in CKEditor.The user presses Save. The Link at the top is correct using the normal syntax
[#myAnchor|Link to bottom]

however the anchor at the bottom is gone as if it never saved or the parser has discarded it.


I have had to instruct our users how to type in manually the anchors using the old plugins http://doc.tiki.org/PluginAlink and http://doc.tiki.org/PluginAname. They are not happy about using long hand plugin notation.

I have tried in both IE 8 and FF 3.6 with the same result.

Since IE is our corp standard our users need to be able to add anchors using that browser. Also, they had no problem in Tiki 5.x but that was a different WYSIWYG system.

May be related to http://dev.tiki.org/tiki-view_tracker_item.php?itemId=1499

Solution

This is the fix but needs to be made optional becasuse allowing IDs is a potential security/integrity problem. See http://htmlpurifier.org/live/configdoc/plain.html#Attr.EnableID for more information.

Index: HTMLPurifier.tiki.php
===================================================================
--- HTMLPurifier.tiki.php	(revision 34555)
+++ HTMLPurifier.tiki.php	(working copy)
@@ -48,8 +48,12 @@
     if ($prefs['feature_wysiwyg'] == 'y' || $prefs['popupLinks'] == 'y') { 
         $conf->set('HTML.DefinitionID', 'allow target');
         $conf->set('HTML.DefinitionRev', 1); 
+        $conf->set('Attr.EnableID', 1);
         $def = $conf->getHTMLDefinition(true);
         $def->addAttribute('a', 'target', 'Enum#_blank,_self,_target,_top');
+        $def->addAttribute('a', 'name', 'CDATA');
+        
+        
     } 
 	return $conf;
 }
Workaround
If I turn Editing and Plugins > HTML Purifier OFF (default: is on) then anchors work. This means to me that the WYSIWYG is inserting bad HTML on save for anchors and the HTML Purifier is stripping it out. This is not ideal however.
Importance
9 high
Demonstrate Bug
Please demonstrate your bug on show2.tikiwiki.org

 About show2.tikiwiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tikiwiki.org instance. To start, simply select a version and click on "Create show2.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tikiwiki.org.

Version: Create show2.tikiwiki.org instance
Ticket ID
3828
Created
Monday 21 March, 2011 15:52:07 GMT-0000
LastModif
Wednesday 22 June, 2011 01:16:03 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools