Answers for "text editor online html"

27

online html editor

<!-- Answer to: "online html editor" -->

<!--
  A common good "online editor" would be:
  https://jsfiddle.net/

  However, for an online editor focusing specifically on html
  this one is pretty good:
  https://html-online.com/editor/
-->
Posted by: Guest on March-01-2020
1

how to make a text editor in html

function chooseColor(){
      var mycolor = document.getElementById("myColor").value;
      document.execCommand('foreColor', false, mycolor);
    }

    function changeFont(){
      var myFont = document.getElementById("input-font").value;
      document.execCommand('fontName', false, myFont);
    }

    function changeSize(){
      var mysize = document.getElementById("fontSize").value;
      document.execCommand('fontSize', false, mysize);
    }

    function checkDiv(){
      var editorText = document.getElementById("editor1").innerHTML;
      if(editorText === ''){
        document.getElementById("editor1").style.border = '5px solid red';
      }
    }

    function removeBorder(){
      document.getElementById("editor1").style.border = '1px solid transparent';
    }
Posted by: Guest on March-02-2020
0

online html editor

<!-- Use CodePen -->
https://codepen.io/
Posted by: Guest on January-23-2021
0

basic html text editor code

<!DOCTYPE html>
<html lang="en">
<head>
    <style>
        #printcss {
            margin: 6;
            height: 300;
            width: 300;

        };

        #txt {
            width: 100%;
        }
    </style>

    <script>
        function prt() {
            print();
        };

        function ref() {
            document.location.reload();
        }
    </script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>printext</title>
</head>
<body>
    <center>
        <button onclick="ref()">new file</button>
        <button id="printcss" onclick="prt()">print</button>
        
        
    </center>
    <textarea name="txt" id="txt" cols="250" rows="1000"></textarea>
</body>
</html>
Posted by: Guest on February-03-2021
-1

html editor

<figure class="table"><table><tbody><tr><td>2</td><td>32</td></tr><tr><td>32</td><td>32</td></tr></tbody></table></figure>
Posted by: Guest on May-31-2021

Code answers related to "Swift"

Browse Popular Code Answers by Language