How to switch between the rich-text editor mode and text/HTML editor mode on Kendo Editor?
The Editor has a built-in viewHtml tool, which can be used for raw HTML editing.
http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-tools
<textarea id="editor">
<p>I am a paragraph.</p>
</textarea>
<script>
$("#editor").kendoEditor({
tools: [
"viewHtml"
]
});
</script>
Related
I've been using script tags for javascript templates like this. (This example uses Handlebars.js but many other templating engines follow the same convention.)
<script id="template" type="text/x-handlebars-template">
<div>
<span>{{ title }}</span>
</div>
</script>
Visual Studio does not color code the HTML inside the <script> tag. Is there a way to do that?
If the type does not need to be explicitly text/x-handlebars-template, you can use text/html instead. Visual Studio understands this is meant to be interpreted as HTML and will thus color code it appropriately.
I use html 5 canvas with some javascript in joomla articles - JCE editor.
When I save the article, the editor removes the canvas element, only javascript remains.
I disabled all cleanup in jce:
Editor global configuration: validate html: no
Editor profiles -> Default -> Editor Parameters -> Cleanup & Output: Validate html: no
In Advanced options all is allowed (javascript, css, php, xhtml)
Joomla text filter: no filtering
and JCE stil removes this canvas line:
<canvas id="name" width="1170" height="400"></canvas>
I currently use Sourcerer plugin, but I don't like it because no code is highlighted.
Joomla 3.4, JCE 2.4.6
Try the following.
Go to
Extensions >> Plugin Manager >> TinyMCE >> Valid Elements
The add canvas to the textarea.
I have build website and added the Ckeditor,
in HTml mode i added the follwoing code:
<iframe width="560" height="315" src="http://www.youtube.com/embed/pe3DH-_uapU" frameborder="0" allowfullscreen></iframe>
but its shwoing empty box in all browser
In the New Version Of the CKEditor You Could ply The YouTube Video in the editor
i tried your code and its working
Down load it from here
http://ckeditor.com/download
Using jQuery add role alert in #div1, read #div2 content even if it is hidden for JAWS.
<div id="div1">
some content
<div id="div2" aria-hidden="true">
some content 2 for div
</div>
</div>
Support for the aria-hidden attribute was added to JAWS in their 13.0.718 update (February 2012). See the full change log below:
http://www.freedomscientific.com/downloads/jaws/JAWS13-previous-enhancements.asp.
JAWS now recognizes the aria-hidden attribute so that text that is
supposed to be hidden is no longer announced.
It seems to work for me, but I've noticed that tabbable content wrapped in a "hidden" container can still be navigated to and read by JAWS.
Currently, JAWS does not support aria-hidden state in both Internet Explorer and Firefox.
You can use role="presentation" though it is not recommended.
See also:
Official JAWS aria support list
Donald Evans's blog
If you run my code in Visual studio script block you will find out that VS IntelliSense does not list out options(DOM collection select reference) following the script variable named lb and Dot. Unlike VS, adobe DreamWeaver IntelliSense lists out the DOM properties
Any ideas to change or improve this behavior?
Thanks
<script type="text/ecmascript">
function LookUpStock() {
var lb = document.getElementById("ListBox1");
var product = lb.options[lb.selectedIndex].text;
}
</script>
<form id="form1" runat="server">
<div>
<asp:ListBox ID="ListBox1" Runat="server"></asp:ListBox>
<button type="Button" onclick="LookUpStock()">Look Up Stock</button>
</div>
...</form>
ListBox1 is server-side control. Visual Studio can't figure out how it will look when transformed to HTML.
However, if you write
<select id="ListBox1" />
it will show Intellisense