\n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 6) {
htmltext = " ";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 7) {
htmltext = " ";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 8) {
htmltext = "Right align content
";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 9) {
htmltext = "VIDEO \n \nlatest video Electric Storm \n \n";
htmltext += " VIDEO ";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 10) {
htmltext = " \n";
htmltext += "\n";
htmltext += "\n";
htmltext += "\n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 11) {
htmltext = "\n";
htmltext += "\n";
htmltext += "1 \n";
htmltext += "2 \n";
htmltext += "3 \n";
htmltext += " \n";
htmltext += "\n";
htmltext += "4 \n";
htmltext += "5 \n";
htmltext += "6 \n";
htmltext += " \n";
htmltext += "
\n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 12) {
htmltext = "A normal horizontal line:
\n";
htmltext += " \n";
htmltext += "With CSS:
\n";
htmltext += " \n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 13) {
htmltext = "h0 text \n";
htmltext += "h1 text \n";
htmltext += "h2 text \n";
htmltext += "h3 text \n";
htmltext += "h4 text \n";
htmltext += "h5 text \n";
htmltext += "h6 text \n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 14) {
htmltext = "This text has the font Courier, is rgb(223,15,15), and 20px.
\n";
htmltext += "";
htmltext += "\n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 15) {
htmltext = " \n";
htmltext += "Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
\n";
htmltext += "\n";
htmltext += "";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 16) {
htmltext = " \n";
htmltext += "Russia on Fire \n";
htmltext += "Burn MF burn.
\n";
htmltext += "123
\n";
htmltext += "\n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 17) {
htmltext = "\n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 18) {
// test for mark linenumbers and easy scroll to edit positions
htmltext = "\n";
htmltext += "\n";
htmltext += "\n";
htmltext += "\n";
htmltext += "\n";
htmltext += "\n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
ace.edit("editor").scrollToLine(20, true, true, );
ace.edit("editor").gotoLine(20, 0, true);
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 19) {
htmltext = "\n\n";
htmltext += "";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 20) {
htmltext = " \n";
htmltext += " \n";
htmltext += "\n";
htmltext += " titel of the page \n";
htmltext += "\n";
htmltext += "\n";
htmltext += "\n";
htmltext += "Hello h1 text \n";
htmltext += "h2 text \n";
htmltext += "h3 text \n";
htmltext += "h4 text \n";
htmltext += "h5 text \n";
htmltext += "h6 text \n";
htmltext += " hr is a horizontal line ruler \n";
htmltext += " center text \n";
htmltext += " Paragraph 1
\n";
htmltext += " Paragraph 2
\n";
htmltext += " Paragraph 3
\n";
htmltext += "br break the line to new line \n";
htmltext += " is a space \n";
htmltext += " strike trough text \n";
htmltext += " bold text \n";
htmltext += " italic text \n";
htmltext += "underline text \n";
htmltext += " list item \n";
htmltext += "blockquote \n";
htmltext += " \n";
htmltext += " \n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 21) {
htmltext = " \n";
htmltext += " \n";
htmltext += " \n";
htmltext += " \n";
htmltext += " \n";
htmltext += " \n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 22) {
//https://wtools.io/html-to-javascript-converter
var variable = '\n' +
'\n' +
'\n' +
'\n' +
'\n' +
'\n' +
'\n' +
'\n' +
'Styling a link depending on state \n' +
'\n' +
'https://www.w3schools.com/css/tryit.asp?filename=trycss_link
\n' +
'Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective.
\n' +
'Note: a:active MUST come after a:hover in the CSS definition in order to be effective.
\n' +
'\n' +
'\n' +
'\n' +
'\n' +
'\n' +
'\n';
htmltext = variable;
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 23) {
htmltext = " \n";
htmltext += " \n";
htmltext += " \n";
htmltext += " \n";
htmltext += " \n";
htmltext += " \n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 24) {
htmltext = " \n";
htmltext += " \n";
htmltext += " \n"; // morepastes
htmltext += " \n";
htmltext += " \n";
htmltext += " \n";
ace.edit("editor").session.insert(ace.edit("editor").getCursorPosition(), htmltext);
}
if (myval == 25) {
//https://wtools.io/html-to-javascript-converter
var variable = '' +
'' +
'' +
' \n' +
'\n' +
'';
code += '\n';
code += '\n';
code += '\n';
code += '\n';
code += '\n';
code += '