Hi, I would like to set a Displayed text with the current selection. I used the 'default' to set the value of the field to the selected text.
Like so:
elements: [ { type: 'text', id: 'linkText', label: 'Displayed text', 'default': editor.getSelection().getSelectedText().toString(), },
I think I am doing something wrong here, because although it works the first time, the second time I select text and go to the dialog, the field is set to the former selection; not the current.
Which tutorial could I follow that explains how to solve this issue?
Found the answer: To update
Found the answer: To update the text field with the current selection I had to add the following to the dialog definition:
Great stuff
It worked for me. Thanks (^_^)
I had the same issue. Thanks
I had the same issue. Thanks a lot !
In Firefox ONLY, when you go
In Firefox ONLY, when you go to the button to insert an image, the first thing that shows up is the upload section, but in firefox, the 'browse' button is missing, you actually have to close out the diaglog and reopen it to get the button to show back up. I'm not seeing this as an issue in any other browser.
_______________
FSL: