Loading...
 
Skip to main content

Plugin Edit removes line breaks in FancyTable

Status
Closed
Subject
Plugin Edit removes line breaks in FancyTable
Version
6.x
7.x
Category
  • Error
  • Dogfood on a *.tiki.org site
Feature
Article
Trackers
Wiki Plugin (extends basic syntax)
WYSIWYG (What You See is What You Get)
Resolution status
Out of Date
Submitted by
Dominic
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

Using Plugin Edit to amend a FancyTable in WYSIWYG submitting a change causes all line breaks in the table body to be removed.

The PluginEdit shows the field "Rows separated by >> in the header; for the table body, one row per line. Cells separated by | in both cases."

Creating a working FancyTable with table body rows like this:

row 1 cell 1 | row 1 cell 2
row 2 cell 2 | row 2 cell 2

after inserting with the plugin edit tool this changes to:

row 1 cell 1 | row 1 cell 2 row 2 cell 2 | row 2 cell 2

Solution

Partial solution by mycroft documented here (fails if more than one Pretty Tracker per Wiki page, and perhaps fails completely in Articles):

Features/Usability ForumQuestion

Insert above Line 759 of tiki-jquery.js
Copy to clipboard
//workaroround for ckEditor if ((typeof form.content !== 'undefined') && (typeof CKEDITOR != 'undefined')) { form.content.value = form.content.value.replace(/(\r\n|[\r\n])/g, '
'); } //end workaround
Workaround
Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
3914
Created
Wednesday 08 June, 2011 02:06:04 UTC
by Dominic
LastModif
Wednesday 01 July, 2026 21:36:23 UTC


Show PHP error messages