internal package
Foswiki::Plugins::EditTablePlugin::Core
On this page:
Work in progress: changing the table based on form parameters
(sub handleTableChangeParams)
Test in topic:
Add rows from table 1
Delete rows from table 1
Initializes variables. Init variables again. If called from INCLUDE this is the first time we init StaticMethod parseTables($text, $topic, $web) Read and parse table data once for each topic. Stores data in hash $tableMatrix{webname}{topicname}. Even if we are just viewing table data (not editing), we can deal with text inside edit tables in a special way. For instance by calling handleTmlInTables on the table text.process( $text, $topic, $web, $includingTopic, $includingWeb )
Called from commonTagsHandler. Pass over to processText in 'no Save' mode.processText( $mode, $saveTableNr, $text, $topic, $web, $includingTopic, $includingWeb )
Process the text line by line. When a EditTablePlugin table is encountered, its contents is rendered according to the view:- View mode - default
- Edit mode - when an Edit button is clicked, renders the rest of the table in edit mode
- Save mode - when called from a Save button: calls processText again, only renders the selected table number, then saves the topic text
- Adding rows:
- param etaddrows_position
- param etaddrows_count
- Deleting rows
- param etdeleterows_position
- param etdeleterows_count
- addRows: existing rows need to shift down
- deleteRows: check limit start and end of table
- create unit test
- write documentation
, and thus might not render their TML So we hack it here so that all TML and HTML tags have spaces around them: - adds spaces around
to render TML around linebreaks - add spaces around TML next to HTML tags, again to render TML - expands variables, for example %CALC% Check Foswikibug:Item1017 StaticMethod addSpacesToTmlNextToHtml( \$text ) So that:
*bold* _italic_ |
bold italic |