<s> """<STR_LIT>""" <EOL> from lino . api import ad <EOL> TINYMCE_VERSION = '<STR_LIT>' <EOL> """<STR_LIT>""" <EOL> def javascript ( url ) : <EOL> return '<STR_LIT>' . format ( url ) <EOL> class Plugin ( ad . Plugin ) : <EOL> "<STR_LIT>" <EOL> needs_plugins = [ '<STR_LIT>' ] <EOL> site_js_snippets = [ '<STR_LIT>' ] <EOL> url_prefix = '<STR_LIT>' <EOL> document_domain = None <EOL> """<STR_LIT>""" <EOL> window_width = <NUM_LIT> <EOL> """<STR_LIT>""" <EOL> window_height = <NUM_LIT> <EOL> """<STR_LIT>""" <EOL> field_buttons = ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> """<STR_LIT>""" <EOL> window_buttons1 = ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> """<STR_LIT>""" <EOL> window_buttons2 = ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> """<STR_LIT>""" <EOL> window_buttons3 = ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> """<STR_LIT>""" <EOL> media_name = '<STR_LIT>' + TINYMCE_VERSION <EOL> """<STR_LIT>""" <EOL> media_root = None <EOL> def get_used_libs ( self , html = False ) : <EOL> if html is not None : <EOL> yield ( "<STR_LIT>" , TINYMCE_VERSION , "<STR_LIT>" ) <EOL> yield ( "<STR_LIT>" , '<STR_LIT>' , "<STR_LIT>" ) <EOL> def get_js_includes ( self , settings , language ) : <EOL> if TINYMCE_VERSION . startswith ( '<STR_LIT:3>' ) : <EOL> yield self . build_lib_url ( '<STR_LIT>' ) <EOL> else : <EOL> yield self . build_lib_url ( '<STR_LIT>' ) <EOL> yield settings . SITE . build_static_url ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> def get_patterns ( self ) : <EOL> from django . conf . urls import url <EOL> from . import views <EOL> rx = '<STR_LIT>' <EOL> urlpatterns = [ <EOL> url ( rx + r'<STR_LIT>' <EOL> + r'<STR_LIT>' , <EOL> views . Templates . as_view ( ) ) , <EOL> url ( rx + r'<STR_LIT>' <EOL> + r'<STR_LIT>' <EOL> + r'<STR_LIT>' , <EOL> views . Templates . as_view ( ) ) ] <EOL> return urlpatterns <EOL> def get_row_edit_lines ( self , e , panel ) : <EOL> from lino . modlib . extjs . elems import TextFieldElement <EOL> if isinstance ( e , TextFieldElement ) : <EOL> if e . format == '<STR_LIT:html>' : <EOL> yield "<STR_LIT>" % e . as_ext ( ) <EOL> def setup_config_menu ( self , site , profile , m ) : <EOL> if site . user_model is not None : <EOL> mg = site . plugins . office <EOL> m = m . add_menu ( mg . app_label , mg . verbose_name ) <EOL> m . add_action ( '<STR_LIT>' ) <EOL> def setup_explorer_menu ( self , site , profile , m ) : <EOL> if site . user_model is not None : <EOL> mg = site . plugins . office <EOL> m = m . add_menu ( mg . app_label , mg . verbose_name ) <EOL> m . add_action ( '<STR_LIT>' ) </s>
