Inserting a new paragraph between two existing tables - tinymce

In a TinyMce textarea, I have a content where several tables directly follow each other (there's no content between the tables themselves). Using TinyMce, I want to allow my users to insert a new paragraph between those tables... but that doesn't seem possible?... (Not sure whether I'm missing something or if it's an oversight.)
If I try to click between the tables (even if they have a CSS margin applied), the cursor goes immediately inside the closest cell of one of the tables. Same thing if I move the cursor with the keyboard arrow keys: it jumps from table 1 to table 2 without stopping between them. So there's no way to add a new element between those tables.
I sometimes work with ckEditor on Drupal projects, and it has a sort of red horizontal line that appears on hover, when you move your mouse between block-level elements. Clicking on this red line allows to insert a new paragraph between those blocks. Is there some equivalent for TinyMCE? (Or another solution?)

Use your mouse to target the end of the table and then hit enter. In this fiddle I created http://fiddle.tinymce.com/Vygaab/1 I add one table, add a second table, then use my mouse target the end of the first table.
Note that neither table should be selected, and when you target the end of the first table, it shouldn't show as selected.
Then if you hit enter, you should get a new paragraph. In this fast example, I took the borders off the table so you can see the cursor blinking more easily.
This was built with the latest Cloud Stable version.

Related

Updating slickgrid autocomplete fields without rerendering the grid

I'm using SlickGrid in a sharepoint environment to display and update data. To save on the the load time, I am populating auto complete fields with options that have only been used in previous lines (with tables with more than 50 lines), and then I am wanting to give the user the option to click on a "Metadata refresh button" located at the top of the autocomplete fields that will go and fetch all available options to repopulate the auto complete field.
<table><tr><td>[ TextField ] </td><td>[ AutoComplete1 ] </td><td>[ AutoComplete2]</td></tr>
<tr><td>Entry1</td><td>Hello</td><td>Goodbye</td></tr>
<tr><td>Entry2</td><td>Hi</td><td>Later</td></tr>
</table>
So if, the user was to create a new line, they would have the options of Hello and Hi in column 2, and Goodbye or Later in column 3 to choose from since they have been used before. If they want the option "Hail!" to appear in column 2, they would have to click the "Update MetaData" button for column 2, which would refresh ALL the cells in that column with all available but previously unused selections.
I know its not ideal, but its a requirement that has been given to me.
I know how to add buttons to column headers and I am updating the array of data that the grid needs for the autocomplete column, but I am at a loss on how to update the column choices without redrawing the whole grid.
Any suggestions?
Check out the newer examples in my repo: https://github.com/6pac/SlickGrid/wiki/Examples
This is probably closest to what you want:
http://6pac.github.io/SlickGrid/examples/example-autocomplete-editor.html
What I have done in the past is create a data property of the cell node to store the object, like:
$jqacContainer.data('queryautocomplete', jqac);
It's then easy enough to get the object from the cell node.
However, this requires proper cleanup of the property to avoid a memory leak. This should be able to be done in editor.destroy(), but I don't think I've checked corner cases, for example where the editor is scrolled offscreen before being completed.

How to find a table in a big diagram?

Using MySQL Workbensh 6.3.7 on Windows 10, I am finding the search behavior strange.
There is an entry box that you could use to enter the name of the table, however, this does not work every time! I mean it sometimes finds the table and sometimes it does not! When it works, it is very good. I can enter 1 or more chars from start and the tool would highlight the table in the diagram, for some tables, even entering the full name, it does not find the table!
If I go to a specific table from the tree on the left-hand-side nav, and double click the table, it opens its properties, but it does not select it on the drawing area!
I have generated the DDL and searched it as text to find columns and relations then traced that back manually but this is difficult for large diagrams.
I want to be able to search for a table (even with wild card) and find it in the drawing surface - Also, what does the dot at the right side of the table name in the schema treeview mean?
The search behavior sounds like a bug to me. It should always select the table figures that match. When you file a bug report for that (http://bugs.mysql.com) it can be fixed.
The dot in the catalog treeview is just an indicator which db object has been placed already on the current diagram.
A tip: use layers to organize bigger diagrams. Use colors for different groups of db objects, like this:
You can change the colors on the Properties tab in the lower left corner, even for multiple figures in one step.
And don't forget you can increase the size of the diagram to fit more figures on it. See the menu Model -> Diagram Properties and Size....

Oracle Forms 10g LOV not showing up second time

I have created Oracle Forms 10g form and want to display LOV by pressing the button. On When-Button-Pressed trigger I have:
go_item('MyBlock.Item1');
do_key('LIST_VALUES');
LOV has 6 columns and 2 of them are bound to 2 items: MyBlock.Item1 and MyBlock.Item2. When I press the button LOV appears and I can make a choice. LOV inserts data into MyBlock.Item1 and MyBlock.Item2 and everything is fine.
But if I want to make another choice and press the button again LOV doesn't appear. I don't know what is the problem.
Button and both items are in the same data block, I set Update Allowed and Required to No for both items and Mouse Navigate to No for button (I saw this on few forums).
Try putting synchronize command between these two lines:
go_item('MyBlock.Item1');
Synchronize;
do_key('LIST_VALUES');
I finally found solution (using oracle's OTN discussion).
The problem was stored procedure I call after first popping up of LOV. First time, after I chose a value I delete record of another block using stored procedure. In that procedure I set values of columns MyBlock.Item1 and MyBlock.Item2 are connected with. But on the form the old values remains on items. I removed update this two columns in procedure and it works now. But I needed this two fields to be updated to null automatically.
The solution is that I first change values of those items on form and then I call stored procedure. It works now.

Microsoft Access 2010 How to keep Masterform on new record, while Subform is requery

I have a Masterform, which is open through a button that goes to a new record. Once the form is open, you must select a ITEM from a combo box, which is tied to the Childform. The Childform works perfectly, it loads the data from the combo box bound column. But the fields in the mainform, seem to be loaded some data as well. Which wasn't intended.
As you can see, everything seem normal. But the Lot No. a auto increment field, should be set to (NEW) or at least the next one to be added. In this case 20, not 7. I do not want to modify old data, but add a new Lot to a item.

Selecting different columns in SWT Table, using JFace TableViewer

I have a 2-column SWT Table that uses TableViewer. Trouble is that I can only select (and edit) cells in the first column -- clicking on the second column does nothing.
I read from somewhere (lost the link) that there's no easy way to get such functionality (!) -- you're supposed to mess around with several extra concepts if you want to select (and edit) different columns in your table.
This snippet
(http://www.goneeded.com/snippet/eclipse/JFace/Viewers/Snippet035TableCursorCellHighlighter.html)
seems to be relevant, but it's not clear which part of it is necessary and it has depenendencies to other snippets. I tried to get it working but it did nothing.
Seems that new table editing and cell-selecting features were added in Eclipse 3.3 -- is there a tutorial or smth available on how to use them? The snippets are too cryptic for me.
You should be able to edit and select cells independently. You might have the SWT.FULL_SELECTION style bit set on the Table constructor. That forces every selection to span the whole row instead of a single cell.
I'd check out this tutorial for more on TableViewers:
http://www.eclipse.org/articles/Article-Table-viewer/table_viewer.html