rte

TinyMCE, allow data attribute

霸气de小男生 提交于 2019-12-01 13:51:31
问题 I have to use the HTML 5 data attribute in Tiny MCE, but the editor always clear them, as it's not an attribute known by the default valid_elements configuration. So I have 2 problems here: the data attribute is dynamic ( it could be data-options, data-test, data-foo, etc... ) So I would need a wildcard value or something. I want to allow the data attribute for all tags. So far, I've tried: extended_valid_elements : '@[id|class|title|style|data-options]', And: extended_valid_elements : '*[id

javascript Rich Text Editors

江枫思渺然 提交于 2019-11-28 03:16:10
There are several (very good) rich text web editors written in Javascript (eg FCKeditor, YUI Texteditor and many many others). However I couldn't find any tutorial on how to build such a component. Something that would explain both high-level considerations (architecture) and/or more details in low-level "critical" points (ie why do most of the editors out there use iFrame, how do you handle keyboard input like Ctrl-B, Ctrl-C when the text is selected and when it is not etc) My main motivation is curiosity; if I had to develop such an editor today I wouldn't know where to start from. Does

javascript Rich Text Editors

瘦欲@ 提交于 2019-11-26 23:59:21
问题 There are several (very good) rich text web editors written in Javascript (eg FCKeditor, YUI Texteditor and many many others). However I couldn't find any tutorial on how to build such a component. Something that would explain both high-level considerations (architecture) and/or more details in low-level "critical" points (ie why do most of the editors out there use iFrame, how do you handle keyboard input like Ctrl-B, Ctrl-C when the text is selected and when it is not etc) My main

Limit the number of character in tinyMCE

牧云@^-^@ 提交于 2019-11-26 22:32:34
Im using tinyMCe for my project.Everything is working fine but now i want to restrict the number of character that will be insert into tinyMce textarea tinyMCE.init({ // General options mode : "textareas", theme : "simple", plugins : "autolink,lists,pagebreak,style,table,save,advhr,advimage,advlink,emotions,media,noneditable,nonbreaking", // Theme options theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect", theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor

Limit the number of character in tinyMCE

北战南征 提交于 2019-11-26 08:24:31
问题 Im using tinyMCe for my project.Everything is working fine but now i want to restrict the number of character that will be insert into tinyMce textarea tinyMCE.init({ // General options mode : \"textareas\", theme : \"simple\", plugins : \"autolink,lists,pagebreak,style,table,save,advhr,advimage,advlink,emotions,media,noneditable,nonbreaking\", // Theme options theme_advanced_buttons1 : \"bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect