Hi,
i have a big Problem. I get a Javascript Error when i try to use the editor.pasteHtml Function.
Here is my Code:
ConfigFile.xml
ToolsFile.xml
MOSSEditorTools.js
It is very curious! When i only call alert('test'); without editor.PasteHtml('asdasd'); finally, everything works fine and i get an alert without any errors. But when i try to use the editor.PasteHtml('hello'); function, i always get an Javascript error and nothing happens.
Can someone help please.
regards
yavuz
i have a big Problem. I get a Javascript Error when i try to use the editor.pasteHtml Function.
Here is my Code:
ConfigFile.xml
<configuration> |
<property name="ToolbarMode">ShowOnFocus</property> |
<property name="ToolsWidth">680px</property> |
<property name="AllowScripts">true</property> |
</configuration> |
ToolsFile.xml
<tool name="Inhaltsverzeichnis" /> |
MOSSEditorTools.js
Telerik.Web.UI.Editor.CommandList["Inhaltsverzeichnis"] = function(commandName, editor, args) |
{ |
alert('test'); |
editor.PasteHtml('Hallo!!!'); |
}; |
It is very curious! When i only call alert('test'); without editor.PasteHtml('asdasd'); finally, everything works fine and i get an alert without any errors. But when i try to use the editor.PasteHtml('hello'); function, i always get an Javascript error and nothing happens.
Can someone help please.
regards
yavuz