

{{css=/write/edit/edit.css}}


<article  class="main">
    <div class="header" id="nav">
        <div>
            <button id="code" tool='code' class="iconfont button">代码</button>
            <button id="fromCode" style="display: none" tool='fromCode' class="iconfont button">预览</button>
            <button tool='include' class="iconfont button">引用</button>
            <button tool='size' class="iconfont button">
                字体大小
                <ul class="sizelist">
                    <li onclick="$Edit.fontSize('1')">a1</li>
                    <li onclick="$Edit.fontSize('2')">a2</li>
                    <li onclick="$Edit.fontSize('3')">a3</li>
                    <li onclick="$Edit.fontSize('4')">a4</li>
                    <li onclick="$Edit.fontSize('5')">a5</li>
                    <li onclick="$Edit.fontSize('6')">a6</li>
                    <li onclick="$Edit.fontSize('7')">a7</li>
                </ul>
            </button>
            <button onclick="$Edit.bold()" class="iconfont button">字体粗细</button>
            <button onclick="$Edit.justifyLeft()"  class="iconfont button" >左对齐</button>
            <button onclick="$Edit.justifyCenter()"  class="iconfont button" >居中</button>     
            <button onclick="$Edit.justifyRight()"  class="iconfont button" >右对齐</button>
            <button  onclick="$M.find('#audio').click()"  class="iconfont button" >音乐
                <input min-size=1024 max-size=102400000 type="file" name="file" def="" pattern=".*" 
                accept="audio/mp3,audio/mpeg" audio multiple class="metia" id="audio">
            </button>
            <button onclick="$M.find('#video').click()"  class="iconfont button" >视频
                <input min-size=1024 max-size=102400000 type="file" name="file" def="" pattern=".*"
                accept="video/mp4" video multiple class="metia" id="video">
            </button>
            <button onclick="$M.find('#img').click()" class="iconfont button" >图片
                <input min-size=1024 max-size=1024000000 type="file" name="file" def="" compressto='[imgPre]' compress='0.5'
                accept="image/png,image/jpeg,image/gif,image/jpg" pattern=".*" multiple class="metia" id="img">
            </button>
        </div>
    </div>    
    <div name="content" editPrivateContent edit-content  pattern='.{10,2500}' class="content"  id="edit">
        请输入内容
    </div>
    <notice>内容需要10-2500个字符</notice>
</article>

{{js=/write/edit/edit.js}}


