Note that putHTML will also replace the current content style defined by css property. This is particullary useful for paste content from other resource like MS Word. However you can also configure editor to remove any html tags from content pasted into editor using pasteTextOnCtrlV property:.
To hide Google Font dialog, remove "FontDialog" from the buttons confguration. If you do not use Google Fonts, then the following include files are not required can be removed :. You can localize the Editor to be displayed in specific language by adding a language include file before all the required Editor includes, for example:.
Set tag selector position, possible values are bottom and top. Default value is bottom. Define a custom button. Specify this value if you have custom icon file with non standard witdh. Define custom tag options oEdit1. Set editing mode. By default editor always get the focus on first load.
Sometimes this may not be wanted especially of editor is located down the page which will cause the page scroll to editor position. Default value is false. This method has 2 parameters: textarea id, id of textarea to be replaced with editor. This is optional. This parameter is useful especially when loading editor after page load using AJAX mechanism.
Load html content into editor. New content will replace existing content. Insert HTML chunk on cursor position. Make the editor occupy full screen size. You can call this function in page onload event to make the editor full screen size. The content returned is body only content. However you can also configure editor to remove any html tags from content pasted into editor using pasteTextOnCtrlV property:. To hide Google Font dialog, remove "FontDialog" from the buttons confguration.
If you do not use Google Fonts, then the following include files are not required can be removed :. You can localize the Editor to be displayed in specific language by adding a language include file before all the required Editor includes, for example:.
If no language file specified, English version will be used. Note: Most of the available translations are not complete yet. Active 10 years, 11 months ago. Viewed 4k times. Does anybody know what the hell is going on here? Improve this question.
Phil Sturgeon. Phil Sturgeon Phil Sturgeon Add a comment. Active Oldest Votes. Improve this answer. Niklas Niklas 11 1 1 bronze badge. Why don't you use their own initialization code since version 4. The selector can be: Css class name, if class name is specified all textareas with specified class name will be replaced with editor.
Plippie Plippie 2, 30 30 silver badges 27 27 bronze badges. You can also try out Eltre editor.
0コメント